April 2020
Intermediate to advanced
716 pages
18h 55m
English
To enable and handle user CRUD operations on the user database, the backend will implement and expose API endpoints that the frontend can utilize in the views, as follows:
|
Operation |
API route |
HTTP method |
|
Create a user |
/api/users |
POST |
|
List all users |
/api/users |
GET |
|
Fetch a user |
/api/users/:userId |
GET |
|
Update a user |
/api/users/:userId |
PUT |
|
Delete a user |
/api/users/:userId |
DELETE |
|
User sign-in |
/auth/signin |
POST |
|
User signout (optional) |
/auth/signout |
GET |
Some of these user CRUD operations will have protected access, which will require the requesting client to be authenticated, authorized, or both, as defined by the feature specifications. The last two ...