Closed YanniAlshoufiHTL closed 5 months ago
Allow user to delete their account and to log out.
isloggedin
Add endpoints for creating (registering), deleting and editing users. Add two further ones for logging in and out. These should be:
For adding, this should return the id if adding was successful.
POST /users { "email": string, "name": string, "password": string }
For editing:
PUT /users/:id { "email": string, "name": string, "password": string }
For deleting: DELETE /users/:id
DELETE /users/:id
For logging out: PUT /users/logout/:id
PUT /users/logout/:id
For logging in:
POST /users/login { "email": string, "name": string, "password": string, }
yay
Allow user to delete their account and to log out.
Data structure
isloggedin
(boolean value, google how to do that in postgreSQL).Endpoints
Add endpoints for creating (registering), deleting and editing users. Add two further ones for logging in and out. These should be:
For adding, this should return the id if adding was successful.
For editing:
For deleting:
DELETE /users/:id
For logging out:
PUT /users/logout/:id
For logging in: