MENU navbar-image

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

This API is not authenticated.

Endpoints

POST api/firebase/login

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/firebase/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"idToken\": \"architecto\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/firebase/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "idToken": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/firebase/login

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

idToken   string     

Example: architecto

GET api/firebase/login

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/firebase/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/firebase/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (405):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Method not allowed. Use POST."
}
 

Request      

GET api/firebase/login

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/profile

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/profile" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/profile"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/profile

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/update-password

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/update-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"|]|{+-\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/update-password"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "password": "|]|{+-"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/update-password

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

password   string     

Must be at least 8 characters. Example: |]|{+-

POST api/logout

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/logout" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/logout"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/logout

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/dashboard

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/dashboard" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/dashboard"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/dashboard

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/requests

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/requests" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/requests"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/requests

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/users

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/users"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/users

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/users

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"architecto\",
    \"email\": \"zbailey@example.net\",
    \"password\": \"-0pBNvYgxw\",
    \"role\": \"architecto\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/users"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "architecto",
    "email": "zbailey@example.net",
    "password": "-0pBNvYgxw",
    "role": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/users

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

name   string     

Example: architecto

email   string     

Must be a valid email address. Example: zbailey@example.net

password   string     

Must be at least 8 characters. Example: -0pBNvYgxw

role   string  optional    

Example: architecto

GET api/users/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/users/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/users/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/users/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the user. Example: 1

PUT api/users/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/users/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"architecto\",
    \"password\": \"]|{+-0pBNvYg\",
    \"role\": \"architecto\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/users/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "architecto",
    "password": "]|{+-0pBNvYg",
    "role": "architecto"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/users/{id}

PATCH api/users/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the user. Example: 1

Body Parameters

name   string  optional    

Example: architecto

email   string  optional    
password   string  optional    

Must be at least 8 characters. Example: ]|{+-0pBNvYg

role   string  optional    

Example: architecto

DELETE api/users/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/users/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/users/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/users/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the user. Example: 1

GET api/employees

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/employees" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/employees"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/employees

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/employees

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/employees" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"fullname\": \"architecto\",
    \"email\": \"zbailey@example.net\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/employees"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "fullname": "architecto",
    "email": "zbailey@example.net"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/employees

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

fullname   string     

Example: architecto

email   string     

Must be a valid email address. Example: zbailey@example.net

GET api/employees/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/employees/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/employees/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/employees/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the employee. Example: 1

PUT api/employees/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/employees/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"fullname\": \"architecto\",
    \"email\": \"zbailey@example.net\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/employees/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "fullname": "architecto",
    "email": "zbailey@example.net"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/employees/{id}

PATCH api/employees/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the employee. Example: 1

Body Parameters

fullname   string  optional    

Example: architecto

email   string  optional    

Must be a valid email address. Example: zbailey@example.net

DELETE api/employees/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/employees/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/employees/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/employees/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the employee. Example: 1

POST api/requests

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/requests" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"employee_id\": \"architecto\",
    \"request_type_id\": \"architecto\",
    \"start_date\": \"2026-04-06T06:23:28\",
    \"end_date\": \"2026-04-06T06:23:28\",
    \"reason\": \"architecto\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/requests"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "employee_id": "architecto",
    "request_type_id": "architecto",
    "start_date": "2026-04-06T06:23:28",
    "end_date": "2026-04-06T06:23:28",
    "reason": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/requests

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

employee_id   string     

The id of an existing record in the employees table. Example: architecto

request_type_id   string     

The id of an existing record in the request_types table. Example: architecto

start_date   string     

Must be a valid date. Example: 2026-04-06T06:23:28

end_date   string     

Must be a valid date. Example: 2026-04-06T06:23:28

reason   string     

Example: architecto

GET api/requests/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/requests/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/requests/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/requests/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the request. Example: 1

PUT api/requests/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/requests/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-04-06T06:23:28\",
    \"end_date\": \"2026-04-06T06:23:28\",
    \"reason\": \"architecto\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/requests/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "start_date": "2026-04-06T06:23:28",
    "end_date": "2026-04-06T06:23:28",
    "reason": "architecto"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/requests/{id}

PATCH api/requests/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the request. Example: 1

Body Parameters

start_date   string  optional    

Must be a valid date. Example: 2026-04-06T06:23:28

end_date   string  optional    

Must be a valid date. Example: 2026-04-06T06:23:28

reason   string  optional    

Example: architecto

DELETE api/requests/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/requests/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/requests/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/requests/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the request. Example: 1

GET api/overtime

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/overtime" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/overtime"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/overtime

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/overtime

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/overtime" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"employee_id\": \"architecto\",
    \"date\": \"2026-04-06T06:23:28\",
    \"hours\": 4326.41688,
    \"reason\": \"architecto\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/overtime"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "employee_id": "architecto",
    "date": "2026-04-06T06:23:28",
    "hours": 4326.41688,
    "reason": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/overtime

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

employee_id   string     

The id of an existing record in the employees table. Example: architecto

date   string     

Must be a valid date. Example: 2026-04-06T06:23:28

hours   number     

Example: 4326.41688

reason   string     

Example: architecto

GET api/overtime/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/overtime/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/overtime/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/overtime/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the overtime. Example: 1

PUT api/overtime/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/overtime/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"date\": \"2026-04-06T06:23:28\",
    \"hours\": 4326.41688,
    \"reason\": \"architecto\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/overtime/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "date": "2026-04-06T06:23:28",
    "hours": 4326.41688,
    "reason": "architecto"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/overtime/{id}

PATCH api/overtime/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the overtime. Example: 1

Body Parameters

date   string  optional    

Must be a valid date. Example: 2026-04-06T06:23:28

hours   number  optional    

Example: 4326.41688

reason   string  optional    

Example: architecto

DELETE api/overtime/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/overtime/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/overtime/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/overtime/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the overtime. Example: 1

GET api/attendance

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/attendance" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/attendance"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/attendance

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/attendance

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/attendance" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"employee_id\": \"architecto\",
    \"date\": \"2026-04-06T06:23:28\",
    \"type\": \"architecto\",
    \"reason\": \"architecto\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/attendance"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "employee_id": "architecto",
    "date": "2026-04-06T06:23:28",
    "type": "architecto",
    "reason": "architecto"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/attendance

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

employee_id   string     

The id of an existing record in the employees table. Example: architecto

date   string     

Must be a valid date. Example: 2026-04-06T06:23:28

type   string     

Example: architecto

reason   string     

e.g., shift change. Example: architecto

GET api/attendance/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/attendance/16" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/attendance/16"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "No query results for model [App\\Models\\AttendanceRequest] 16"
}
 

Request      

GET api/attendance/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the attendance. Example: 16

PUT api/attendance/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/attendance/16" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"date\": \"2026-04-06T06:23:28\",
    \"type\": \"architecto\",
    \"reason\": \"architecto\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/attendance/16"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "date": "2026-04-06T06:23:28",
    "type": "architecto",
    "reason": "architecto"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/attendance/{id}

PATCH api/attendance/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the attendance. Example: 16

Body Parameters

date   string  optional    

Must be a valid date. Example: 2026-04-06T06:23:28

type   string  optional    

Example: architecto

reason   string  optional    

Example: architecto

DELETE api/attendance/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/attendance/16" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/attendance/16"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/attendance/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the attendance. Example: 16

GET api/reimbursements

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/reimbursements" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/reimbursements"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/reimbursements

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/reimbursements

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/reimbursements" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"employee_id\": \"architecto\",
    \"amount\": 4326.41688,
    \"description\": \"Eius et animi quos velit et.\",
    \"date\": \"2026-04-06T06:23:28\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/reimbursements"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "employee_id": "architecto",
    "amount": 4326.41688,
    "description": "Eius et animi quos velit et.",
    "date": "2026-04-06T06:23:28"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/reimbursements

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

employee_id   string     

The id of an existing record in the employees table. Example: architecto

amount   number     

Example: 4326.41688

description   string     

Example: Eius et animi quos velit et.

date   string     

Must be a valid date. Example: 2026-04-06T06:23:28

GET api/reimbursements/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/reimbursements/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/reimbursements/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/reimbursements/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the reimbursement. Example: 1

PUT api/reimbursements/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/reimbursements/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 4326.41688,
    \"description\": \"Eius et animi quos velit et.\",
    \"date\": \"2026-04-06T06:23:28\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/reimbursements/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "amount": 4326.41688,
    "description": "Eius et animi quos velit et.",
    "date": "2026-04-06T06:23:28"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/reimbursements/{id}

PATCH api/reimbursements/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the reimbursement. Example: 1

Body Parameters

amount   number  optional    

Example: 4326.41688

description   string  optional    

Example: Eius et animi quos velit et.

date   string  optional    

Must be a valid date. Example: 2026-04-06T06:23:28

DELETE api/reimbursements/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/reimbursements/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/reimbursements/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/reimbursements/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the reimbursement. Example: 1

GET api/loans

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/loans" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/loans"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/loans

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/loans

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/loans" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"employee_id\": \"architecto\",
    \"amount\": 4326.41688,
    \"purpose\": \"architecto\",
    \"installments\": 16
}"
const url = new URL(
    "http://127.0.0.1:8000/api/loans"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "employee_id": "architecto",
    "amount": 4326.41688,
    "purpose": "architecto",
    "installments": 16
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/loans

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

employee_id   string     

The id of an existing record in the employees table. Example: architecto

amount   number     

Example: 4326.41688

purpose   string     

Example: architecto

installments   integer     

Example: 16

GET api/loans/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/loans/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/loans/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/loans/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the loan. Example: 1

PUT api/loans/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/loans/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 4326.41688,
    \"purpose\": \"architecto\",
    \"installments\": 16
}"
const url = new URL(
    "http://127.0.0.1:8000/api/loans/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "amount": 4326.41688,
    "purpose": "architecto",
    "installments": 16
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/loans/{id}

PATCH api/loans/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the loan. Example: 1

Body Parameters

amount   number  optional    

Example: 4326.41688

purpose   string  optional    

Example: architecto

installments   integer  optional    

Example: 16

DELETE api/loans/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/loans/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/loans/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/loans/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the loan. Example: 1

GET api/payroll

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/payroll" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/payroll"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/payroll

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/payroll

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/payroll" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"employee_id\": \"architecto\",
    \"salary\": 4326.41688,
    \"period\": \"2026-04-06T06:23:28\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/payroll"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "employee_id": "architecto",
    "salary": 4326.41688,
    "period": "2026-04-06T06:23:28"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/payroll

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

employee_id   string     

The id of an existing record in the employees table. Example: architecto

salary   number     

Example: 4326.41688

period   string     

Must be a valid date. Example: 2026-04-06T06:23:28

GET api/payroll/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/payroll/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/payroll/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/payroll/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the payroll. Example: 1

PUT api/payroll/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/payroll/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"salary\": 4326.41688,
    \"period\": \"2026-04-06T06:23:28\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/payroll/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "salary": 4326.41688,
    "period": "2026-04-06T06:23:28"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/payroll/{id}

PATCH api/payroll/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the payroll. Example: 1

Body Parameters

salary   number  optional    

Example: 4326.41688

period   string  optional    

Must be a valid date. Example: 2026-04-06T06:23:28

DELETE api/payroll/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/payroll/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/payroll/1"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/payroll/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the payroll. Example: 1

GET api/kpi

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/kpi" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/kpi"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/kpi

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/kpi

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/kpi" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"employee_id\": \"architecto\",
    \"period\": \"2026-04-06T06:23:29\",
    \"score\": 4326.41688
}"
const url = new URL(
    "http://127.0.0.1:8000/api/kpi"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "employee_id": "architecto",
    "period": "2026-04-06T06:23:29",
    "score": 4326.41688
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/kpi

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

employee_id   string     

The id of an existing record in the employees table. Example: architecto

period   string     

Must be a valid date. Example: 2026-04-06T06:23:29

score   number     

Example: 4326.41688

GET api/kpi/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/kpi/16" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/kpi/16"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "No query results for model [App\\Models\\KpiScore] 16"
}
 

Request      

GET api/kpi/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the kpi. Example: 16

PUT api/kpi/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/kpi/16" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"period\": \"2026-04-06T06:23:29\",
    \"score\": 4326.41688
}"
const url = new URL(
    "http://127.0.0.1:8000/api/kpi/16"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "period": "2026-04-06T06:23:29",
    "score": 4326.41688
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/kpi/{id}

PATCH api/kpi/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the kpi. Example: 16

Body Parameters

period   string  optional    

Must be a valid date. Example: 2026-04-06T06:23:29

score   number  optional    

Example: 4326.41688

DELETE api/kpi/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/kpi/16" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/kpi/16"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/kpi/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the kpi. Example: 16

GET api/reprimands

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/reprimands" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/reprimands"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/reprimands

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/reprimands

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/reprimands" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"employee_id\": \"architecto\",
    \"type\": \"architecto\",
    \"reason\": \"architecto\",
    \"date\": \"2026-04-06T06:23:29\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/reprimands"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "employee_id": "architecto",
    "type": "architecto",
    "reason": "architecto",
    "date": "2026-04-06T06:23:29"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/reprimands

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

Body Parameters

employee_id   string     

The id of an existing record in the employees table. Example: architecto

type   string     

Example: architecto

reason   string     

Example: architecto

date   string     

Must be a valid date. Example: 2026-04-06T06:23:29

GET api/reprimands/{id}

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/reprimands/16" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/reprimands/16"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "No query results for model [App\\Models\\CompanyReprimand] 16"
}
 

Request      

GET api/reprimands/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the reprimand. Example: 16

PUT api/reprimands/{id}

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/reprimands/16" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"architecto\",
    \"reason\": \"architecto\",
    \"date\": \"2026-04-06T06:23:29\"
}"
const url = new URL(
    "http://127.0.0.1:8000/api/reprimands/16"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "architecto",
    "reason": "architecto",
    "date": "2026-04-06T06:23:29"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PUT api/reprimands/{id}

PATCH api/reprimands/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the reprimand. Example: 16

Body Parameters

type   string  optional    

Example: architecto

reason   string  optional    

Example: architecto

date   string  optional    

Must be a valid date. Example: 2026-04-06T06:23:29

DELETE api/reprimands/{id}

Example request:
curl --request DELETE \
    "http://127.0.0.1:8000/api/reprimands/16" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/reprimands/16"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/reprimands/{id}

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   integer     

The ID of the reprimand. Example: 16

POST api/approvals/{id}/approve

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/approvals/architecto/approve" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/approvals/architecto/approve"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/approvals/{id}/approve

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   string     

The ID of the approval. Example: architecto

POST api/approvals/{id}/reject

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/approvals/architecto/reject" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/approvals/architecto/reject"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/approvals/{id}/reject

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

URL Parameters

id   string     

The ID of the approval. Example: architecto

GET api/approvals

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/approvals" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/approvals"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/approvals

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/my-requests

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/my-requests" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/my-requests"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/my-requests

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/my-overtime

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/my-overtime" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/my-overtime"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/my-overtime

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/my-attendance

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/my-attendance" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/my-attendance"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/my-attendance

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/my-reimbursements

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/my-reimbursements" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/my-reimbursements"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/my-reimbursements

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/my-loans

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/my-loans" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/my-loans"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/my-loans

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/my-payroll

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/my-payroll" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/my-payroll"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/my-payroll

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/my-kpi

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/my-kpi" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/my-kpi"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/my-kpi

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/pending-approvals

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/pending-approvals" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/pending-approvals"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Unauthorized"
}
 

Request      

GET api/pending-approvals

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json