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
94
.specify/features/007-admin-panel/contracts/boletos.md
Normal file
94
.specify/features/007-admin-panel/contracts/boletos.md
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
# Contract: Admin Boletos Endpoints
|
||||
|
||||
**Prefix:** `/api/v1/admin/boletos`
|
||||
**Auth:** JWT Bearer (admin)
|
||||
|
||||
---
|
||||
|
||||
## GET /api/v1/admin/boletos
|
||||
Lista todos os boletos.
|
||||
|
||||
### Response 200
|
||||
```json
|
||||
[
|
||||
{
|
||||
"id": "uuid",
|
||||
"user_id": "uuid",
|
||||
"property_id": "uuid",
|
||||
"description": "Aluguel Maio",
|
||||
"amount": 3500.00,
|
||||
"due_date": "2026-05-10",
|
||||
"status": "pending",
|
||||
"url": "https://boleto.banco.com.br/abc123"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## POST /api/v1/admin/boletos
|
||||
Cria um novo boleto.
|
||||
|
||||
### Request
|
||||
```json
|
||||
{
|
||||
"user_id": "uuid",
|
||||
"property_id": "uuid",
|
||||
"description": "Aluguel Maio",
|
||||
"amount": 3500.00,
|
||||
"due_date": "2026-05-10",
|
||||
"url": "https://boleto.banco.com.br/abc123"
|
||||
}
|
||||
```
|
||||
|
||||
### Response 201
|
||||
```json
|
||||
{
|
||||
"id": "uuid",
|
||||
"user_id": "uuid",
|
||||
"property_id": "uuid",
|
||||
"description": "Aluguel Maio",
|
||||
"amount": 3500.00,
|
||||
"due_date": "2026-05-10",
|
||||
"status": "pending",
|
||||
"url": "https://boleto.banco.com.br/abc123"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## PUT /api/v1/admin/boletos/:id
|
||||
Atualiza um boleto existente.
|
||||
|
||||
### Request
|
||||
```json
|
||||
{
|
||||
"user_id": "uuid",
|
||||
"property_id": "uuid",
|
||||
"description": "Aluguel Maio",
|
||||
"amount": 3500.00,
|
||||
"due_date": "2026-05-10",
|
||||
"url": "https://boleto.banco.com.br/abc123"
|
||||
}
|
||||
```
|
||||
|
||||
### Response 200
|
||||
```json
|
||||
{
|
||||
"id": "uuid",
|
||||
"user_id": "uuid",
|
||||
"property_id": "uuid",
|
||||
"description": "Aluguel Maio",
|
||||
"amount": 3500.00,
|
||||
"due_date": "2026-05-10",
|
||||
"status": "pending",
|
||||
"url": "https://boleto.banco.com.br/abc123"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## DELETE /api/v1/admin/boletos/:id
|
||||
Remove um boleto.
|
||||
|
||||
### Response 204
|
||||
Loading…
Add table
Add a link
Reference in a new issue