INTEGRATION / REST API
OpsDesk API
The REST API uses the same incident services and database rules as the web UI.
API lifecycle
Client request ↓ Django REST Framework ↓ Serializer validation ↓ Business service layer ↓ PostgreSQL ↓ JSON response
| Endpoint | Purpose | Open |
|---|---|---|
| /api/v1/ | API root | Open |
| /api/v1/incidents/ | List, filter, search, create incidents | Open |
| /api/v1/incidents/<id>/ | Retrieve or patch an incident | |
| /api/v1/incidents/<id>/comments/ | Add comment | |
| /api/v1/incidents/<id>/assign/ | Assign incident | |
| /api/v1/incidents/<id>/status/ | Change status | |
| /api/v1/incidents/<id>/audit/ | Read audit events | |
| /api/v1/applications/ | Read applications | Open |
| /api/v1/statistics/ | Read operational metrics | Open |
What is happening?Request lifecycle
- Browser requested API documentation
- Django rendered the REST API explanation page
- Generated schema is available at /api/schema/
Database writesNone