Skip to content

Implement GET /shows Endpoint for Retrieving Broadcast Schedule #2

@Lapotor

Description

@Lapotor

Description:

The task involves creating a Laravel API endpoint to retrieve the broadcast schedule for a specified time period. This endpoint will enable clients to request information about upcoming shows within a given date range. The API should be designed to accept query parameters such as start_date, end_date, and days to allow for flexible scheduling queries.

Tasks:

  • Set up the Laravel route for the GET /shows endpoint.
  • Create the necessary controller method to handle the request.
  • Implement logic to retrieve the broadcast schedule based on the provided query parameters.
  • Ensure that the response adheres to the specified JSON format.
  • Implement error handling for cases where the request is invalid or the server encounters an error.
  • Write appropriate unit tests to validate the functionality of the endpoint.

Additional Information:

  • The endpoint should return a JSON array containing information about upcoming shows.
  • Validate the input parameters to ensure they are in the correct format and within valid ranges.
  • Pay attention to performance considerations, especially when querying the database for scheduling information.

Acceptance Criteria:

  • The endpoint successfully returns a JSON array of upcoming shows.
  • The endpoint handles invalid input gracefully and returns appropriate error responses.
  • Unit tests provide adequate coverage and pass successfully.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions