the show
2 min
and still mais je suis lambada heu heu heu heu
a
a
a
a
a
a
a
deflkjewf;lkjwef;lkjwe;lkfjwl;ekfj;lkwkejf;lkwjef;lkjwe;lkfjw;lkfjew;lkjf;lwkjf;lwkjf;lkwjf;lkewjf;lkejwf;lkejw;lfkjwe;lkfjwe;lkfjw;lkfjew;lkjfew;lqkjfw;lqkjfe;lkwqjfa
https://app.archbee.com/api/graphql
{
status,
people
}a
a
a
a
Code Section Title
dejdwel;fkjwq;lkejf;lkwejf;lkjw;lkjf;lwakjf;lkjw;lkfja;lwkjel;fkjwl;fkjwal;kfjwlkajfwalkjfwa;lkjfaw;lkjfwal;kj
ew
f
waf
ewf
w
ef
wef
wae
fw
afe
wf
waf
wa
fw
af
waf
wa
fw
af
waf
aew
fewa
fewa
a
a
a
a
a
a
a
Get Cakes
Get a cake by its ID
GET
https://api.cakes.com
Body Parameters
- idstringrequiredDescription
javascript
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"id": "string"
});
var requestOptions = {
method: 'GET',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.cakes.com", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));curl
curl --location --request GET 'https://api.cakes.com' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"id":"string"}'nodejs
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://api.cakes.com',
'headers': {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"id": "string"
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
javascript
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"id": "string"
});
var requestOptions = {
method: 'GET',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.cakes.com", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));python
import requests
import json
url = "https://api.cakes.com"
payload = json.dumps({
"id": "string"
})
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.cakes.com")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"id": "string"
})
response = https.request(request)
puts response.read_body
200
{
"name": "Cake's name",
}404
{
"message": "Ain't no cake like that."
}