You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
, anddays
to allow for flexible scheduling queries.Tasks:
GET /shows
endpoint.Additional Information:
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: