API Documentation
Full API Docs with Swagger/OpenAPI
5 min
{ "tab" "examples", "url" "https //api cakes com", "name" "get cakes", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "optional", "name" "parameter name", "type" "string", "description" "" } ], "bodydataparameters" \[ { "kind" "required", "name" "id", "type" "string", "description" "id of the cake to get" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "nkcs8owtvypc5av5sli0q", "code" "{\n \\"name\\" \\"cake's name\\",\n \\"recipe\\" \\"cake's recipe name\\",\n \\"cake\\" \\"binary cake\\"\n}", "language" "202" }, { "id" "saobxydzq8mqtuze9oudm", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n}", "language" "404" } ], "selectedlanguageid" "nkcs8owtvypc5av5sli0q" }, "examples" { "languages" \[ { "id" "phch99tshs0vnac2g 7aj", "code" "curl request get\n url https //api cakes com/v1/cakes/\ id \n header 'accept application/json'", "language" "curl" }, { "id" "vrjnrk5hkgfjhmzpqxk94", "code" "", "language" "go" }, { "id" "ovgmudplenqmhykwldgk2", "code" "fetch(\\"https //api cakes com/v1/cakes/\ id\\", {\n \\"method\\" \\"get\\",\n \\"headers\\" {\n \\"accept\\" \\"application/json\\"\n }\n})\n then(response => {\n console log(response);\n})\n catch(err => {\n console error(err);\n});", "language" "javascript" }, { "id" "ydmnpm52vsdigmf9vr f2", "code" "const fetch = require('node fetch');\n\nlet url = 'https //api cakes com/v1/cakes/\ id';\nlet options = {\n method 'get', \nheaders {\n accept 'application/json',\n }\n};\nfetch(url, options)\n then(res => res json())\n then(json => console log(json))\n catch(err => console error('error ' + err));", "language" "nodejs" }, { "id" "jws3vk8qu1vzjgpdx6t8q", "code" "import requests\n\nurl = \\"https //api cakes com/v1/cakes/\ id\\"\nheaders = {\\"accept\\" \\"application/json\\"}\nresponse = requests request(\\"get\\", url, headers=headers)\nprint(response text)", "language" "python" }, { "id" "vjycre meprtofoez7qes", "code" "const fetch = require('node fetch');\n\nlet url = 'https //api cakes com/v1/cakes/\ id';\nlet options = {method 'get', headers {accept 'application/json'}};\nfetch(url, options)\n then(res => res json())\n then(json => console log(json))\n catch(err => console error('error ' + err));", "language" "ruby" } ], "selectedlanguageid" "phch99tshs0vnac2g 7aj" }, "responses" \[ { "statuscode" "202", "description" "cake successfully retrieved ", "jsonexample" "{\n \\"name\\" \\"cake's name\\",\n \\"recipe\\" \\"cake's recipe name\\",\n \\"cake\\" \\"binary cake\\"\n}" }, { "statuscode" 404, "description" "could not find a cake matching this query ", "jsonexample" "{\n \\"message\\" \\"ain't no cake like that \\"\n}" } ], "description" "get a cake by its id", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } } environments dev qa live throttling cost per 1000 calls realtime editor with markdown shortcuts! docid\ x 04meqilww4ymhoomc80 sharing lambda layers docid 4ujrxmsxdwgted9zwymwq changelogs and callouts docid s8tpog43tvvdbuzexolh changelogs docid 6pltlcjh3q6hls8og4efx full api docs with swagger/openapi docid\ w0ooel1ohiekrhuzq3fdv
π€
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.