L'API dont vous êtes le héros is an interactive Java API that brings the adventure of "choose your own adventure" stories to life. Users can embark on unique journeys, make decisions at each step, and create dynamic narratives, all while experiencing the nostalgia of classic adventure books.
GNU General Public License v3.0
2
stars
10
forks
source link
Add a HATEOAS-enabled endpoint to delete a scene from a story in the RESTful API #65
Currently, our API allows access to stories and adding scenes, but it lacks a feature to delete a specific scene from a given story. This feature is essential to enable users to effectively manage the content of their stories.
Add an endpoint that allows deletion of a specific scene within a story, following HATEOAS (Hypermedia as the Engine of Application State) conventions.
Quest:
Create the Endpoint
Implement an HTTP DELETE endpoint with a route like /stories/{storyId}/scenes/{sceneId} to delete a specific scene.
The response should include relevant HATEOAS links for easy navigation to other resources (e.g., self, story, all-scenes).
Response Behavior
On success (204 status), return a confirmation message along with relevant HATEOAS links.
On error (e.g., if the scene or story doesn’t exist), return a 404 status with a clear error message.
Testing
Add unit tests to validate.
Include cases where the scene or story does not exist to verify error handling.
Description:
Currently, our API allows access to stories and adding scenes, but it lacks a feature to delete a specific scene from a given story. This feature is essential to enable users to effectively manage the content of their stories.
Add an endpoint that allows deletion of a specific scene within a story, following HATEOAS (Hypermedia as the Engine of Application State) conventions.
Quest:
The keeper of the repo 🏰