HackYourFuture-CPH / rate-my-cv

MIT License
1 stars 2 forks source link

patch users controllers and router changes implemented #103

Closed DiegoRuiz454 closed 3 years ago

DiegoRuiz454 commented 3 years ago

Description

PATCH api/users/{id} query parameters implemented. the users can edit and update : full_name , position, linkedin, github, website, profile_image_url. What if the id doesn't exist? the following message will appear: User ID '${req.params.id}' does not exist.`

Fixes # https://github.com/HackYourFuture-CPH/rate-my-cv/issues/29

How to test?

type in the terminal npm run dev. after that open POSTMAN select PATCH and type this url http://localhost:5000/api/users/{id}

Checklist