- The following table summarizes the CRUD endpoints for a user entity:
HTTP Verb | Path | Expects (JSON) | Returns (JSON) | HTTP Status | Description |
POST | /users | A user entry | The new user entry and its ID | 200 (success) or 201 (created) | Create a new user |
GET | /users | Nothing | An array with user entries | 200 (success) | Get a list of users |
GET | /users/:id | Nothing | The user with the specified ID | 200 (success) or 404 (not found) | Get user by ID |
PUT | /users/:id | A user entry | The updated user entry | 200 (success) or 404 (not found) | Update user by ID |
PATCH | /users/:id | A partial user entry | The updated user entry | 200 (success) or 404 (not found) | Update individual fields for a user by ID |
DELETE | /users/:id | Nothing | Nothing | 200 (success) or 404 (not found) | Delete user by ID |
- Basic authentication headers are transmitted as plaintext. By ensuring this information is transmitted over a TLS...