API Endpoints
1 min
get access token for authentication get an access token for authentication using x api key and userid { "name" "get announcement", "method" "get", "url" "https //test clayhr com/rm/api/announcement/", "description" "get a cake by its id", "tab" "examples", "examples" { "languages" \[ { "id" "5fohi pkinfs i0wecjt4", "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" "" }, { "id" "i7f3ydo9moopb4rmm6pdd", "language" "json", "code" "", "customlabel" "" } ], "selectedlanguageid" "i7f3ydo9moopb4rmm6pdd" }, "results" { "languages" \[ { "id" "fmpcyf2b1cselrhynlcph", "language" "200", "code" "{\n \\"name\\" \\"cake's name\\",\n}", "customlabel" "" }, { "id" "kgrj1a4cyw8riibxw8fzo", "language" "404", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n}", "customlabel" "" } ], "selectedlanguageid" "fmpcyf2b1cselrhynlcph" }, "request" { "pathparameters" \[ { "name" "annid", "kind" "required", "type" "integer", "description" "the id of the announcement ", "" "the id of the announcement " } ], "queryparameters" \[], "headerparameters" \[ { "name" "userid", "kind" "required", "type" "integer", "description" "the id of the user to authenticate ", "" "required" }, { "name" "x api key", "kind" "required", "type" "string", "description" "api key", "" "api key" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "hastryitout" true, "response" \[ { "name" "200", "kind" "optional", "type" "number", "description" "ok", "children" \[ { "name" "response body", "kind" "optional", "type" "string", "description" "" } ] } ], "autogeneratedanchorslug" "get announcement", "legacyhash" "n7yoze5janxe8iq5wyfbc" }
