API reference / facility
facility
/api/v1/facilitiesList facilities
- Auth:
- required
- Query:
- limit, offset, type
- Response:
- { data }
/api/v1/facilitiesCreate facility
- Auth:
- required (min role: admin)
- Request:
- { name, type, address, capacity, priority, notes }
- Response:
- { data }
/api/v1/facilities/:idGet facility by ID
- Auth:
- required
- Response:
- { data }
/api/v1/facilities/:idUpdate facility
- Auth:
- required (min role: admin)
- Request:
- { name, type, address, capacity, priority, notes }
- Response:
- { data }
/api/v1/facilities/:idDelete facility
- Auth:
- required (min role: admin)
- Response:
- { success, message }
/api/v1/facilities/:id/slotsGet slots for facility
- Auth:
- required (min role: admin)
- Response:
- { data }
/api/v1/facilities/:id/slotsCreate slot
- Auth:
- required (min role: admin)
- Response:
- { data }
/api/v1/facilities/:id/slots/:slotIdUpdate slot
- Auth:
- required (min role: admin)
- Response:
- { data }
/api/v1/facilities/:id/slots/:slotIdDelete slot
- Auth:
- required (min role: admin)
- Response:
- { success, message }