@insightfulio/insightful-test-api-server
v1.0.3
Published
There are mocked data for testing purpose only.
Downloads
2
Maintainers
Keywords
Readme
Insightful Test API Server
There are mocked data for testing purpose only.
Setup
npm install @insightfulio/insightful-test-api-server
Start
Just run command insightful-test-api-server
from the project root directory.
Endpoints
We are using json-server
, so, all features from there are available. You can check it here.
Also, all stats are available on the base url.
Base URL
http://localhost:3000
Employees
Get all employees: GET /employees
Get employees with pagination: GET /employees?_page=2&_limit=10
Get employees sorted by name: GET /employees?_sort=name&_order=asc
Update employee: PATCH /employees/${employeeId}
Shifts
Get all shifts: GET /shifts
Get shifts with pagination: GET /shifts?_page=2&_limit=10
Get shifts sorted by start: GET /shifts?_sort=start&_order=asc
Update shift: PATCH /shifts/${shiftId}