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 implementing a GET endpoint to retrieve a specific show based on its unique ID. This endpoint will provide a detailed representation of the show, including its title, start and end dates, live status, and associated moderators.
Tasks:
Set up the route and controller for the GET /shows/{id} endpoint.
Validate the id parameter to ensure it corresponds to an existing show.
Retrieve the show details from the database based on the provided id.
Serialize the show data in accordance with the specified response format.
Handle cases where the requested show is not found and return an appropriate error response.
Additional Considerations:
Ensure that the response follows the defined Swagger/OpenAPI specification for the GET /shows/{id} endpoint.
Implement proper error handling and response codes for various scenarios (e.g., show not found, server error).
Write unit tests to validate the functionality of the endpoint.
Acceptance Criteria:
The GET /shows/{id} endpoint successfully retrieves and returns the details of the specified show.
Proper error responses are provided in case of invalid or non-existent show IDs.
The text was updated successfully, but these errors were encountered:
Description:
The task involves implementing a
GET
endpoint to retrieve a specific show based on its unique ID. This endpoint will provide a detailed representation of the show, including its title, start and end dates, live status, and associated moderators.Tasks:
GET /shows/{id}
endpoint.id
parameter to ensure it corresponds to an existing show.id
.Additional Considerations:
GET /shows/{id}
endpoint.Acceptance Criteria:
GET /shows/{id}
endpoint successfully retrieves and returns the details of the specified show.The text was updated successfully, but these errors were encountered: