Closed Jul-S closed 2 years ago
Hi @Jul-S . I think that issue need to be PUT method. Because the purpose of this part is to update the user address. from database
Hey @semih1239 i think we need POST user anyway to add new user to our DB, maybe you can create it
Hey @semih1239 i think we need POST user anyway to add new user to our DB, maybe you can create it
Yes @Jul-S . You are right. I create an issue for it
User story
Who: As a developer What: I want to be able to update delivery info for user Why: so that we can use form to update delivery info
Acceptance criteria
The endpoint needs to return a result that allows user to update delivery info through the form marked red below:
Implementation details
PUT
endpoint for 'api/users/{user_id}'Check the README file here https://github.com/HackYourFuture-CPH/fp-class18/#-working-with-api-documentation---swagger and this article should also help you with that https://blog.logrocket.com/documenting-your-express-api-with-swagger/