API is running

EN2H Booking Platform API

A REST API for managing bookable services and customer bookings — with JWT auth, business-rule validation and interactive documentation.

Open Interactive API Docs Health check Source on GitHub
01

Register & log in

Create a staff account and receive short-lived access + refresh tokens.

02

Authorize in Swagger

Click Authorize, paste your access token, and test every endpoint live.

03

Create & manage

Add services, take public bookings, and move them through the status flow.

Endpoint reference

All routes are prefixed with /api/v1. PUBLIC needs no token; AUTH requires a Bearer token.

MethodEndpointAccessDescription
POST/auth/registerPUBLICCreate an account, returns user + tokens
POST/auth/loginPUBLICSign in, returns user + tokens
POST/auth/refreshPUBLICRotate token pair
POST/auth/logoutAUTHInvalidate refresh token
POST/servicesAUTHCreate a service
GET/servicesPUBLICList services (search, paginate)
GET/services/:idPUBLICGet one service
PATCH/services/:idAUTHUpdate a service
DELETE/services/:idAUTHDelete a service
POST/bookingsPUBLICCreate a booking as a customer
GET/bookingsAUTHList bookings (filters, paginate)
GET/bookings/:idAUTHGet one booking
PATCH/bookings/:id/statusAUTHChange status (transition rules)
PATCH/bookings/:id/cancelAUTHCancel a booking
GET/healthPUBLICLiveness probe