CRUD endpoints for an organisation's specialities (the areas of veterinary practice it offers). 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:
SpecialityController.create - Response:
400: keysmessage,500: keysmessage
GET /:organisationId
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
organisationId - Controller:
SpecialityController.getAllByOrganizationId - Response:
400: keysmessage,200: keysmessage,500: keysmessage
PUT /:id
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
id - Controller:
SpecialityController.update - Response:
400: keysmessage,404: keysmessage,200: keysmessage,500: keysmessage
DELETE /:organisationId/:specialityId
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
organisationId,specialityId - Controller:
SpecialityController.deleteSpeciality - Response:
400: keysmessage,200: keysmessage,500: keysmessage