What problem does it solve?
It helps you safely extend the Reservations Service API so new routes (tables, reservations, availability, holds, and cancellations) follow the project’s Fastify + Prisma patterns and produce correct, well-documented behavior.
Core Features & Use Cases
- Add new Fastify endpoints with consistent request/response typing and OpenAPI schema metadata.
- Implement business logic in the correct service layer (e.g.,
src/services/table.ts or src/services/reservation.ts) using Prisma models like Table and Reservation.
- Create tests for routes using Vitest with mocked service layers and JWT verification behavior.
Use Case Example: You need a new endpoint to return availability for a table during a specific time range; you’ll add the route, wire it to the appropriate service method, ensure auth is correct (required vs optional), update OpenAPI schema, and add a focused test for status codes and payload shapes.
Quick Start
Use the reservations-service skill to add an endpoint to the Reservations Service under services/reservations, including route schema, auth handling, service-layer logic, and route tests.