Info Open Api document
0 min
{ "id" "qlybwzrmkxjpp0kpzc1d9", "type" "api oas v2", "data" { "method" "get", "url" " https //api archbee com/api/public api/info api reference https //api archbee com/api/public api/info api reference ", "servers" \[ { "url" " https //api archbee com/api/public api/info api reference https //api archbee com/api/public api/info api reference ", "description" "archbee api server" } ], "name" "info open api document", "description" "get info of an existing open api tree", "contenttype" "application/json", "request" { "pathparameters" \[], "headerparameters" \[], "queryparameters" \[], "bodydataparameters" \[], "formdataparameters" \[ { "kind" "optional", "name" "doctreeid", "type" "string", "example" "21 character string0", "description" "doctree id is main category id where open api was imported " } ], "oauthparameters" \[ { "id" "bearerauth", "name" "bearerauth", "kind" "optional", "type" "http", "description" " requires the authorization header in the form authorization bearer {base64(docspaceid apikey)} where the token is base64 encoding of docspaceid, tilde, and apikey ", "scheme" "bearer" } ] }, "responses" \[ { "statuscode" "200", "description" "status", "jsonexample" "", "isexpanded" true, "schema" \[ { "kind" "optional", "type" "object", "description" "status", "schema" \[ { "name" "status", "kind" "optional", "type" "string ", "description" "response status", "example" "ok" }, { "name" "data", "kind" "optional", "type" "object", "description" "", "example" "", "schema" \[ { "name" "result", "kind" "optional", "type" "string", "description" "", "example" "" }, { "name" "importedcontent", "kind" "optional", "type" "string", "description" "", "example" "" } ] } ], "isexpanded" true } ] }, { "statuscode" "400", "description" "invalid request", "jsonexample" "", "isexpanded" true, "schema" \[ { "kind" "optional", "type" "object", "description" "", "customtype" "response400", "schema" \[ { "name" "status", "kind" "optional", "type" "string\<ok | not ok>", "description" "response status", "example" "not ok" }, { "name" "messages", "kind" "optional", "type" "array", "description" "array of messages", "example" "\["some error message"]", "itemtype" "string", "customtype" "string\[]", "itemexample" "some error message", "itemdefault" "" } ], "modelref" "#/components/schemas/response400", "isexpanded" true } ] } ], "hasxcodesamples" false, "examples" { "languages" \[ { "id" "mo5 3 kyywvf1s589 dx", "language" "curl", "label" "curl", "code" "curl request get \\\n url https //api archbee com/api/public api/info api reference https //api archbee com/api/public api/info api reference \\\n header 'accept application/json'" }, { "id" "a1ntcgnljewwsmvigw9ew", "language" "javascript", "label" "javascript", "code" "var myheaders = new headers();\nmyheaders append("accept", "application/json");\nmyheaders append("content type", "application/json");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(" https //api archbee com/api/public api/info api reference https //api archbee com/api/public api/info api reference ", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));" }, { "id" "rme2fl9hb0ermocdxws2b", "language" "ruby", "label" "ruby", "code" "require "uri"\nrequire "json"\nrequire "net/http"\n\nurl = uri(" https //api archbee com/api/public api/info api reference")\n\nhttps https //api archbee com/api/public api/info api reference")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\["accept"] = "application/json"\nrequest\["content type"] = "application/json"\n\nresponse = https request(request)\nputs response read body\n" }, { "id" "4pvbql8t8igo9idosogwd", "language" "python", "label" "python", "code" "import requests\nimport json\n\nurl = " https //api archbee com/api/public api/info api reference"\n\npayload https //api archbee com/api/public api/info api reference"\n\npayload = {}\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request("get", url, headers=headers, data=payload)\n\nprint(response text)\n" } ], "selectedlanguageid" "mo5 3 kyywvf1s589 dx" }, "results" { "languages" \[ { "id" "w2zb2hyacrgabfijlhjv2", "language" "200", "code" "// status\n{\n "status" "ok",\n "data" {\n "result" "",\n "importedcontent" ""\n }\n}" }, { "id" "aa1kh1fjd4eids db4gaq", "language" "400", "code" "// invalid request\n{\n "status" "not ok",\n "messages" \[\n "some error message"\n ]\n}" } ], "selectedlanguageid" "w2zb2hyacrgabfijlhjv2" } }, "children" \[ { "text" "" } ] }