page de test
1 min
{ "name" "obtenir des gâteaux", "method" "get", "url" "https //api cakes com", "description" "obtenir un gâteau par son id", "tab" "exemples", "examples" { "languages" \[ { "id" "uzh5cmyhmr1hnglyimofi", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"id\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api cakes com\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" } ], "selectedlanguageid" "uzh5cmyhmr1hnglyimofi" }, "results" { "languages" \[ { "id" "bpntxpdpoy0 3 ft6xrdd", "language" "200", "code" "{\n \\"name\\" \\"nom du gâteau\\",\n}", "customlabel" "" }, { "id" "dzvgqhprp5 q3jafidooo", "language" "404", "code" "{\n \\"message\\" \\"il n'y a pas de gâteau comme ça \\"\n}", "customlabel" "" } ], "selectedlanguageid" "bpntxpdpoy0 3 ft6xrdd" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "id", "kind" "required", "type" "array", "description" "id du gâteau à obtenir", "" "array" }, { "name" "nom du paramètre", "kind" "optional", "type" "object", "description" "", "" "object", "children" \[ { "name" "nom du paramètre", "kind" "optional", "type" "string", "description" "" } ], "schema" \[ { "name" "nom du paramètre", "kind" "optional", "type" "string", "description" "" } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "paramètre de corps", "value" "bodydataparameters" }, "hastryitout" false, "autogeneratedanchorslug" "obtenir des gteaux", "legacyhash" "zm2yxrc7cpbyv9bnopyeh" }