Skip to content

Implement GET /requests Endpoint for Retrieving the wishbox requests. #7

Closed
@Lapotor

Description

@Lapotor

Description:

This work item involves implementing the GET /requests endpoint in the RadioRoster API. This endpoint is responsible for retrieving the wishbox requests.

Tasks:

  • Create the route and controller action for handling GET requests to /requests.
  • Implement the logic to retrieve wishbox requests from the database.
  • Serialize the retrieved data into the appropriate response format (JSON).
  • Add appropriate error handling and response codes for various scenarios (e.g., successful retrieval, no requests found, server error).
  • Test the endpoint using appropriate testing frameworks to ensure it functions as expected.
  • Document any specific considerations or details related to this endpoint.

Acceptance Criteria:

  • When a GET request is made to /requests, the API should respond with a JSON array containing wishbox requests.
  • If there are no requests, the API should return an empty array.
  • The endpoint should handle errors gracefully and return appropriate status codes and error messages.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions