Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
et-nik committed Apr 17, 2024
1 parent 8cfe391 commit 6890af0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/web-api/paths/servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ get:
console.log(body);
}
});
- lang: "JavaScript"
label: "JavaScript fetch"
source: |
fetch("https://demo.gameap.ru/api/servers", {
"headers": {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Bearer " + YOUR_API_KEY
}
})
.then(response => {
console.log(response);
})
.catch(err => {
console.error(err);
});
post:
summary: Create Game Server
Expand Down
1 change: 1 addition & 0 deletions docs/web-api/paths/servers_id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ put:
print_r($response);
- lang: JavaScript
label: JavaScript fetch
source: |
fetch("https://demo.gameap.ru/api/servers/6", {
"headers": {
Expand Down

0 comments on commit 6890af0

Please sign in to comment.