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

Edit (PUT) restaurant #7

Open
10 tasks
gcode-de opened this issue Jun 3, 2024 · 0 comments
Open
10 tasks

Edit (PUT) restaurant #7

gcode-de opened this issue Jun 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gcode-de
Copy link
Contributor

gcode-de commented Jun 3, 2024

As a User
I need to edit the details of a restaurant in my library
to be able to update information for a restaurant

Description

Implement a feature that allows users to edit the details of a restaurant. Users should be able to modify the title and the city, not the id.

Acceptance Criteria

  • A "Edit"-Button is displayed on the details-page for each-restaurant.
  • When the "Edit" button for a restaurant is clicked, the user gets redirected to "/restaurants/:id/edit
  • On the Edit-Page an edit form for that restaurant should appear.
  • When submitting the form, then the restaurant information should be updated in the backend and the user should be redirected to the details page.
  • Create an PUT Endpoint "/api/restaurants/{id} to update the restaurant.

Tasks

  • Add an "Edit" button for each restaurant in the UI.
  • Implement an edit form to modify restaurant details.
  • Create a PUT request to update restaurant details on the backend.
  • Display updated information in the frontend after saving changes.
  • Implement Unit and Integration Test.
@gcode-de gcode-de self-assigned this Jun 3, 2024
@gcode-de gcode-de added wontfix This will not be worked on enhancement New feature or request and removed wontfix This will not be worked on labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant