mirror of
https://github.com/kristoferssolo/Axium.git
synced 2025-10-21 16:00:34 +00:00
Update README.md
This commit is contained in:
parent
2ff578c908
commit
e94168edb5
14
README.md
14
README.md
@ -73,19 +73,19 @@ rustapi/
|
||||
|
||||
| Method | Endpoint | Auth Required | Allowed Roles | Description |
|
||||
|--------|------------------------|---------------|---------------|--------------------------------------|
|
||||
| POST | `/signin` | No | None | Authenticate user and get JWT token |
|
||||
| POST | `/signin` | No | | Authenticate user and get JWT token |
|
||||
| GET | `/protected` | Yes | 1, 2 | Test endpoint for authenticated users |
|
||||
| GET | `/health` | No | None | System health check with metrics |
|
||||
| GET | `/health` | No | | System health check with metrics |
|
||||
| | | | | |
|
||||
| **User routes** | | | | |
|
||||
| GET | `/users/all` | No* | None | Get all users |
|
||||
| GET | `/users/{id}` | No* | None | Get user by ID |
|
||||
| POST | `/users/` | No* | None | Create new user |
|
||||
| GET | `/users/all` | No* | | Get all users |
|
||||
| GET | `/users/{id}` | No* | | Get user by ID |
|
||||
| POST | `/users/` | No* | | Create new user |
|
||||
| | | | | |
|
||||
| **Todo routes** | | | | |
|
||||
| GET | `/todos/all` | No* | None | Get all todos |
|
||||
| GET | `/todos/all` | No* | | Get all todos |
|
||||
| POST | `/todos/` | Yes | 1, 2 | Create new todo |
|
||||
| GET | `/todos/{id}` | No* | None | Get todo by ID |
|
||||
| GET | `/todos/{id}` | No* | | Get todo by ID |
|
||||
|
||||
**Key:**
|
||||
🔒 = Requires JWT in `Authorization: Bearer <token>` header
|
||||
|
||||
Loading…
Reference in New Issue
Block a user