A RESTful API for managing incident reports with full CRUD functionality, built with Flask and PostgreSQL.
- Create new incident reports
- List all reported incidents
- Get specific incident details
- Update incident status
- Delete incident reports
- Data validation and error handling
- PostgreSQL database integration
| Method | Endpoint | Description |
|---|---|---|
| POST | /incidents |
Create new incident |
| GET | /incidents |
List all incidents |
| GET | /incidents/{id} |
Get specific incident |
| PUT | /incidents/{id} |
Update incident status |
| DELETE | /incidents/{id} |
Delete incident |
Each incident contains:
{
"id": 1,
"reporter": "John Doe",
"description": "Server is not responding",
"status": "pending",
"created_at": "2023-05-20T12:00:00.000000"
}