Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GET /shows Endpoint for Retrieving Broadcast Schedule #2

Open
6 tasks
Lapotor opened this issue Nov 1, 2023 · 0 comments · May be fixed by #103
Open
6 tasks

Implement GET /shows Endpoint for Retrieving Broadcast Schedule #2

Lapotor opened this issue Nov 1, 2023 · 0 comments · May be fixed by #103
Assignees
Milestone

Comments

@Lapotor
Copy link
Collaborator

Lapotor commented Nov 1, 2023

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.
@Lapotor Lapotor added this to the v1.0.0 milestone Nov 1, 2023
@Lapotor Lapotor linked a pull request Dec 29, 2023 that will close this issue
@Lapotor Lapotor self-assigned this Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant