mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-24 17:44:50 +03:00
corrected api docs to be clearer
This commit is contained in:
parent
28d6ad3b56
commit
bd3cbb4c4e
@ -131,6 +131,7 @@ const EXAMPLE_GET_SLATE = (
|
||||
key,
|
||||
slateId
|
||||
) => `const response = await fetch('https://slate.host/api/v1/get-slate', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
// NOTE: your API key
|
||||
@ -146,6 +147,7 @@ const json = await response.json();
|
||||
console.log(json);`;
|
||||
|
||||
const EXAMPLE_GET = (key) => `const response = await fetch('https://slate.host/api/v1/get', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
// NOTE: your API key
|
||||
|
Loading…
Reference in New Issue
Block a user