May 2018
Intermediate to advanced
470 pages
13h 54m
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 sign-out (optional) |
/auth/signout |
GET |
Some of these user CRUD operations will have protected access, which will require the requesting client to be either authenticated, authorized, or both. The last two routes are for authentication ...
Read now
Unlock full access