Info
Welcome to the generated API reference. Get Postman Collection
Approval Limits
View Approval Limits
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/approval-limit/view-list" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/approval-limit/view-list"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/approval-limit/view-list
Update Approval Limit
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/approval-limit/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/approval-limit/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/approval-limit/update/{id}
Update Approval Limit
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/approval-limit/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/approval-limit/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/approval-limit/update/{id}
Disciplinary Case
Create Disciplinary Case
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/disciplinary-case/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/disciplinary-case/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/disciplinary-case/create
Create Disciplinary Cases
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/disciplinary-case/view-list" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/disciplinary-case/view-list"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/disciplinary-case/view-list
View Disciplinary Case
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/disciplinary-case/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/disciplinary-case/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/disciplinary-case/show/{id}
Update Disciplinary Case
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/disciplinary-case/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/disciplinary-case/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/disciplinary-case/update/{id}
Update Disciplinary Case
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/disciplinary-case/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/disciplinary-case/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/disciplinary-case/update/{id}
Disciplinary Cases
Retrieve Disciplinary Cases
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/case/view" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/case/view"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/case/view
Create and Assign Disciplinary Cases
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/case/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/case/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/case/create
View Disciplinary Case
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/case/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/case/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/case/show/{id}
Update Disciplinary Cases
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/case/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/case/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/case/update/{id}
Update Disciplinary Cases
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/case/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/case/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/case/update/{id}
Close disciplinary case
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/case/close/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/case/close/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/case/close/{id}
open disciplinary case
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/case/open/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/case/open/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/case/open/{id}
Freelancers
Retrieve freelancers
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/freelancer/account" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/freelancer/account"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/freelancer/account
Active freelancers
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/freelancer/account/active-freelancers" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/freelancer/account/active-freelancers"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/freelancer/account/active-freelancers
Inactive freelancers
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/freelancer/account/inactive-freelancers" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/freelancer/account/inactive-freelancers"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/freelancer/account/inactive-freelancers
Create freelancer
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/freelancer/account/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/freelancer/account/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/freelancer/account/create
Get freelancer
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/freelancer/account/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/freelancer/account/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/freelancer/account/show/{slug}
Update freelancer
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/freelancer/account/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/freelancer/account/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/freelancer/account/update/{slug}
Update freelancer
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/freelancer/account/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/freelancer/account/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/freelancer/account/update/{slug}
Activate freelancer
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/freelancer/account/activate/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/freelancer/account/activate/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/freelancer/account/activate/{slug}
Deactivate freelancer
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/freelancer/account/deactivate/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/freelancer/account/deactivate/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/freelancer/account/deactivate/{slug}
Holiday Category
Create Holiday Category
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/holiday-category/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday-category/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/holiday-category/create
View Holiday Categories
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/holiday-category/view-list" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday-category/view-list"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/holiday-category/view-list
View Holiday Category
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/holiday-category/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday-category/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/holiday-category/show/{id}
Update Holiday Category
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/holiday-category/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday-category/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/holiday-category/update/{id}
Update Holiday Category
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/holiday-category/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday-category/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/holiday-category/update/{id}
Holiday Management
View Holidays
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/holiday/view" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday/view"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/holiday/view
Create Holiday
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/holiday/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/holiday/create
View Holiday
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/holiday/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/holiday/show/{id}
Update Holiday
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/holiday/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/holiday/update/{id}
Update Holiday
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/holiday/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/holiday/update/{id}
Delete Holiday
Requires authentication
Example request:
curl -X DELETE \
"http://localhost:8000/api/holiday/delete/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/holiday/delete/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/holiday/delete/{id}
Job Stages
Retrieve Job Stages
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/job-stages" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-stages"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/job-stages
Job Title
Create Job Title
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/job-title/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-title/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/job-title/create
View Job Titles
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/job-title/view-list" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-title/view-list"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/job-title/view-list
View Job Title
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/job-title/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-title/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/job-title/show/{id}
Update Job Title
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/job-title/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-title/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/job-title/update/{id}
Update Job Title
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/job-title/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-title/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/job-title/update/{id}
Job Type
Create Job Type
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/job-type/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-type/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/job-type/create
View Job Types
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/job-type/view-list" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-type/view-list"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/job-type/view-list
View Job Type
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/job-type/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-type/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/job-type/show/{id}
Update Job Type
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/job-type/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-type/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/job-type/update/{id}
Update Job Type
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/job-type/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-type/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/job-type/update/{id}
Delete Job Type
Requires authentication
Example request:
curl -X DELETE \
"http://localhost:8000/api/job-type/delete/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/job-type/delete/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/job-type/delete/{id}
Leave Request
View Leave Requests
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/leave-request/view" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave-request/view"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/leave-request/view
Create Leave Request
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/leave-request/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave-request/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/leave-request/create
Approve Leave Request
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/leave-request/approve/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave-request/approve/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/leave-request/approve/{id}
Reject Leave Request
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/leave-request/reject/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave-request/reject/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/leave-request/reject/{id}
View Leave Request
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/leave-request/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave-request/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/leave-request/show/{id}
Update Leave Request
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/leave-request/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave-request/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/leave-request/update/{id}
Update Leave Request
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/leave-request/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave-request/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/leave-request/update/{id}
Delete Leave Request
Requires authentication
Example request:
curl -X DELETE \
"http://localhost:8000/api/leave-request/delete/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave-request/delete/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/leave-request/delete/{id}
Leave Type
Create Leave Type
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/leave/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name":"Public Holiday","role_name":"Principal Partner"}'
const url = new URL(
"http://localhost:8000/api/leave/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Public Holiday",
"role_name": "Principal Partner"
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"success": true,
"data": {
"name": "Annual Test",
"role_name": "Tax Partner",
"leave_days": "20",
"updated_at": "2020-02-25 14:43:42",
"created_at": "2020-02-25 14:43:42",
"id": 1
},
"message": "Created successfully"
}
Example response (401):
{
"message": "Unauthenticated."
}
Example response (500):
{
"message": "Internal server error"
}
HTTP Request
POST api/leave/create
Body Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
name |
string | required | name of leave type. |
role_name |
enum | required | name of the role. |
Fetch Leave Types
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/leave/view-list" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave/view-list"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/leave/view-list
View Leave Type
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/leave/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/leave/show/{id}
Update Leave Type
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/leave/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/leave/update/{id}
Update Leave Type
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/leave/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/leave/update/{id}
Delete Leave Type
Requires authentication
Example request:
curl -X DELETE \
"http://localhost:8000/api/leave/delete/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/leave/delete/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/leave/delete/{id}
Office Asset
Show office assets
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/asset/view-office-asset" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/view-office-asset"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/asset/view-office-asset
Create Office Asset
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/asset/create-office-asset" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/create-office-asset"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/asset/create-office-asset
Show Office Asset
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/asset/show/office-asset/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/show/office-asset/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/asset/show/office-asset/{id}
Edit Office Asset
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/asset/update/office-asset/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/update/office-asset/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/asset/update/office-asset/{id}
Edit Office Asset
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/asset/update/office-asset/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/update/office-asset/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/asset/update/office-asset/{id}
Delete Office Asset
Requires authentication
Example request:
curl -X DELETE \
"http://localhost:8000/api/asset/delete/office-asset/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/delete/office-asset/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/asset/delete/office-asset/{id}
Office Asset Category
Show office assets categories
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/asset/view-asset-category" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/view-asset-category"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/asset/view-asset-category
Create office asset category
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/asset/create-asset-category" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/create-asset-category"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/asset/create-asset-category
Edit office asset category
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/asset/update/asset-category/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/update/asset-category/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/asset/update/asset-category/{id}
Edit office asset category
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/asset/update/asset-category/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/update/asset-category/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/asset/update/asset-category/{id}
Delete office asset category
Requires authentication
Example request:
curl -X DELETE \
"http://localhost:8000/api/asset/delete/asset-category/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/asset/delete/asset-category/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/asset/delete/asset-category/{id}
Office Designation
Create Office Designation
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/office/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/office/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/office/create
View Office Designations
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/office/view-list" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/office/view-list"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/office/view-list
View Office Designation
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/office/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/office/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/office/show/{id}
Update Office Designation
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/office/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/office/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/office/update/{id}
Update Office Designation
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/office/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/office/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/office/update/{id}
Office Structure
Upload Office structure
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/office/upload/office-structure" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/office/upload/office-structure"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/office/upload/office-structure
Password Management
APIs for managing password reset
Send a reset link to the given user.
Example request:
curl -X POST \
"http://localhost:8000/api/password/email" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/password/email"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/password/email
Reset the given user's password.
Example request:
curl -X POST \
"http://localhost:8000/api/password/reset" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/password/reset"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/password/reset
Request Management
View Requests
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/request/view" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/request/view"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/request/view
Create Request
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/request/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/request/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/request/create
View Request
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/request/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/request/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/request/show/{id}
Update Request
Requires authentication
Example request:
curl -X PUT \
"http://localhost:8000/api/request/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/request/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/request/update/{id}
Update Request
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/request/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/request/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/request/update/{id}
Delete Request
Requires authentication
Example request:
curl -X DELETE \
"http://localhost:8000/api/request/delete/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/request/delete/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/request/delete/{id}
Role
Retrieve Roles
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/role" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/role"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"success": true,
"data": [
{
"id": 1,
"name": "Super Admin",
"created_at": "2020-02-25 07:15:27",
"updated_at": null
},
{
"id": 2,
"name": "Principal Partner",
"created_at": "2020-02-25 07:15:27",
"updated_at": null
},
{
"id": 3,
"name": "Managing Partner",
"created_at": "2020-02-25 07:15:27",
"updated_at": null
},
{
"id": 4,
"name": "Audit Partner",
"created_at": "2020-02-25 07:15:27",
"updated_at": null
},
{
"id": 5,
"name": "Tax Partner",
"created_at": "2020-02-25 07:15:27",
"updated_at": null
},
{
"id": 6,
"name": "Business Development Partner",
"created_at": "2020-02-25 07:15:27",
"updated_at": null
},
{
"id": 7,
"name": "HR Manager",
"created_at": "2020-02-25 07:15:27",
"updated_at": null
},
{
"id": 8,
"name": "Employee",
"created_at": "2020-02-25 07:15:27",
"updated_at": null
}
],
"message": "Retrieved successfully"
}
Example response (401):
{
"message": "Unauthenticated."
}
Example response (500):
{
"message": "Internal server error"
}
HTTP Request
GET api/role
User / Employee Management
APIs for managing Employees
Retrieve Employees
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/employee/account" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/employee/account
Create Employee
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/employee/account/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/employee/account/create
Update Employee
Requires authentication
Example request:
curl -X POST \
"http://localhost:8000/api/employee/account/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/employee/account/update/{slug}
Get Employee
Requires authentication
Example request:
curl -X GET \
-G "http://localhost:8000/api/employee/account/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/employee/account/show/{slug}
Update Employee
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/employee/account/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/employee/account/update/{slug}
Activate an Employee
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/employee/account/activate/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account/activate/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/employee/account/activate/{slug}
Deactivate an Employee
Requires authentication
Example request:
curl -X PATCH \
"http://localhost:8000/api/employee/account/deactivate/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account/deactivate/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/employee/account/deactivate/{slug}
api/employee/account/next-of-kin/{slug}
Example request:
curl -X POST \
"http://localhost:8000/api/employee/account/next-of-kin/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account/next-of-kin/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/employee/account/next-of-kin/{slug}
api/employee/account/account-details/{slug}
Example request:
curl -X POST \
"http://localhost:8000/api/employee/account/account-details/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account/account-details/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/employee/account/account-details/{slug}
api/employee/account/update-profile-pic/{slug}
Example request:
curl -X POST \
"http://localhost:8000/api/employee/account/update-profile-pic/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/employee/account/update-profile-pic/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/employee/account/update-profile-pic/{slug}
User Authentication Management
APIs for managing Authentication within the application
Login
Example request:
curl -X POST \
"http://localhost:8000/api/auth/login" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/auth/login"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/auth/login
Logout
Example request:
curl -X GET \
-G "http://localhost:8000/api/auth/logout" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/auth/logout"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/auth/logout
Authenticated User
Example request:
curl -X GET \
-G "http://localhost:8000/api/auth/user" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/auth/user"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/auth/user
First Time Login
Example request:
curl -X POST \
"http://localhost:8000/api/auth/first-login" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/auth/first-login"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/auth/first-login
general
Display a listing of the resource.
Example request:
curl -X GET \
-G "http://localhost:8000/api/client/view" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/client/view"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/client/view
Store a newly created resource in storage.
Example request:
curl -X POST \
"http://localhost:8000/api/client/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/client/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/client/create
Display the specified resource.
Example request:
curl -X GET \
-G "http://localhost:8000/api/client/show/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/client/show/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET api/client/show/{id}
Update the specified resource in storage.
Example request:
curl -X PUT \
"http://localhost:8000/api/client/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/client/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/client/update/{id}
Update the specified resource in storage.
Example request:
curl -X PATCH \
"http://localhost:8000/api/client/update/1" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/client/update/1"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PATCH api/client/update/{id}