Open sbshah97 opened 11 months ago
Right now this returns 4xx
curl --location --request DELETE 'http://localhost:8080/users/{userId}'
/users/:id/delete
handlers/users.go
database.Delete
A user will need to be created via the post method before deleting it. It will output a userID which can be used instead of userId
userId
What happens right now?
Right now this returns 4xx
How do I reproduce / test this
What needs to be done?
/users/:id/delete
/users/:id/delete
calls a new handler called DeleteUsers which is present inhandlers/users.go
.database.Delete
method which needs to be implemented.A user will need to be created via the post method before deleting it. It will output a userID which can be used instead of
userId
Similar PRs to look at