Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
To authenticate requests, include a X-API-KEY header with the value "{YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
Schedule
APIs for managing schedule
Create Schedule
requires authentication
Example request:
curl --request POST \
"http://127.0.0.1:8000/api/v1/test/schedule" \
--header "X-API-KEY: {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"unit\": 1,
\"company\": 1,
\"division\": 1,
\"position\": 1,
\"level\": 1
}"
const url = new URL(
"http://127.0.0.1:8000/api/v1/test/schedule"
);
const headers = {
"X-API-KEY": "{YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"unit": 1,
"company": 1,
"division": 1,
"position": 1,
"level": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://127.0.0.1:8000/api/v1/test/schedule';
$response = $client->post(
$url,
[
'headers' => [
'X-API-KEY' => '{YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'unit' => 1.0,
'company' => 1.0,
'division' => 1.0,
'position' => 1.0,
'level' => 1.0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.