Implement the following endpoints:
| Method |
Endpoint |
Success Code |
Error Codes |
Description |
| POST |
/feedback |
201 Created |
400 |
Creates a new feedback. |
| GET |
/feedback |
200 OK |
400 |
Retrieves a list of all feedback. |
| GET |
/feedback/{id} |
200 OK |
400, 404 |
Retrieves a specific feedback by its ID. |
| PUT |
/feedback/{id} |
204 No Content |
400, 404 |
Updates an existing feedback by its ID. |
| DELETE |
/feedback/{id} |
204 No Content |
400, 404 |
Deletes a specific feedback by its ID. |
- Protocol: JSON over HTTP.
- Headers: All requests sending data and all responses must include Content-Type: application/json.
- Error Payloads: 400 Bad Request and 404 Not Found responses must return a plain JSON object containing error details (e.g., {"error": "Feedback not found"}).
Implement the following endpoints: