How soviion/itivp works
This is a small Express clinic-appointment REST API. A client sends appointment requests to the server, which mounts the appointments router; routes dispatch to controller handlers that validate inputs and read or mutate an in-memory appointment collection, then return JSON responses. The API supports listing, status-filtered queries, lookup by ID, creation, full and partial updates, and deletion. The server also formats errors. The README is empty, so this map is based on the supplied tree and sampled source.
Main entry points: server.js Express server · appointmentsController.js Appointment handlers · appointments.js Appointment routes · ApiError.js API error type
Components 6
HTTP entry
- Express server
server.js - Appointment routes
routes/appointments.js
Appointments
- Appointment handlers
controllers/appointmentsController.js - In-memory appointments
models/appointments.js
Error handling
- API error type
utils/ApiError.js
Other components
- API client
Connections 7
- API client → Express server: sends HTTP
- Express server → Appointment routes: mounts router
- Appointment routes → Appointment handlers: dispatches requests
- Appointment handlers → In-memory appointments: reads and mutates
- Appointment handlers → API error type: throws errors
- Express server → API error type: creates errors
- Express server → API client: returns JSON