Employees, office pranks and quotes from a fictional paper company mockumentary. Practice CRUD, Bearer auth, nested resources, pagination and optimistic concurrency.
The Office API covers a paper company: employees, the pranks played on them and a quote collection. It is one of the gentler CRUD surfaces in the catalog and a reasonable first target when you are teaching someone the request/response loop before introducing auth, concurrency or error injection.
Base URL: https://funapi.dev/api/office/v1 · 8 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.
eight desks, one regional manager
GET /office/v1/employees — List employees (paginated, filter by department)GET /office/v1/employees/{id} — Get one employeeGET /office/v1/employees/{id}/pranks — Get pranks involving an employee (nested resource)POST /office/v1/employees — Hire a new employee (requires Bearer auth)PUT /office/v1/employees/{id} — Update an employee (requires Bearer auth)DELETE /office/v1/employees/{id} — Fire an employee (requires Bearer auth)mostly aimed at one assistant (to the) regional manager
GET /office/v1/pranks — List pranks, filter by severitythat's what she said
GET /office/v1/quotes/random — A random quote