CRUD endpoints for an organisation's rooms (for example consultation or treatment rooms). Called by the PIMS (Practice Information Management System, the clinic-facing web app); every route requires organisation RBAC (role-based access control) permissions.
Endpoints
POST /
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Controller:
OrganisationRoomController.create - Response:
400: keysmessage,500: keysmessage
PUT /:id
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
id - Controller:
OrganisationRoomController.update - Response:
400: keysmessage,404: keysmessage,200: keysmessage,500: keysmessage
GET /organization/:organizationId
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
organizationId - Controller:
OrganisationRoomController.getAllByOrganizationId - Response:
400: keysmessage,200: keysmessage,500: keysmessage
DELETE /:id
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
id - Controller:
OrganisationRoomController.delete - Response:
400: keysmessage,404: keysmessage,200: keysmessage,500: keysmessage