feat: add full project - backend, frontend, docker, specs and configs
This commit is contained in:
parent
b77c7d5a01
commit
e6cb06255b
24489 changed files with 61341 additions and 36 deletions
77
.specify/features/007-admin-panel/contracts/clientes.md
Normal file
77
.specify/features/007-admin-panel/contracts/clientes.md
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
# Contract: Admin Clientes Endpoints
|
||||
|
||||
**Prefix:** `/api/v1/admin/client-users`
|
||||
**Auth:** JWT Bearer (admin)
|
||||
|
||||
---
|
||||
|
||||
## GET /api/v1/admin/client-users
|
||||
Lista todos os clientes.
|
||||
|
||||
### Response 200
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "uuid",
|
||||
"name": "João",
|
||||
"email": "joao@email.com",
|
||||
"role": "client"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## POST /api/v1/admin/client-users
|
||||
Cria um novo cliente.
|
||||
|
||||
### Request
|
||||
```json
|
||||
{
|
||||
"name": "João",
|
||||
"email": "joao@email.com",
|
||||
"password": "senha123",
|
||||
"role": "client"
|
||||
}
|
||||
```
|
||||
|
||||
### Response 201
|
||||
```json
|
||||
{
|
||||
"id": "uuid",
|
||||
"name": "João",
|
||||
"email": "joao@email.com",
|
||||
"role": "client"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## PUT /api/v1/admin/client-users/:id
|
||||
Atualiza um cliente existente.
|
||||
|
||||
### Request
|
||||
```json
|
||||
{
|
||||
"name": "João",
|
||||
"email": "joao@email.com",
|
||||
"role": "client"
|
||||
}
|
||||
```
|
||||
|
||||
### Response 200
|
||||
```json
|
||||
{
|
||||
"id": "uuid",
|
||||
"name": "João",
|
||||
"email": "joao@email.com",
|
||||
"role": "client"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## DELETE /api/v1/admin/client-users/:id
|
||||
Remove um cliente.
|
||||
|
||||
### Response 204
|
||||
Loading…
Add table
Add a link
Reference in a new issue