https://github.com/henriquesebastiao/madr
Projeto final do curso FastAPI do Zero.
https://github.com/henriquesebastiao/madr
api-rest fastapi fastapi-crud pydantic pytest
Last synced: over 1 year ago
JSON representation
Projeto final do curso FastAPI do Zero.
- Host: GitHub
- URL: https://github.com/henriquesebastiao/madr
- Owner: henriquesebastiao
- License: gpl-3.0
- Created: 2024-08-19T00:27:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T16:30:42.000Z (almost 2 years ago)
- Last Synced: 2025-03-02T01:48:53.630Z (over 1 year ago)
- Topics: api-rest, fastapi, fastapi-crud, pydantic, pytest
- Language: Python
- Homepage: https://madr.henriquesebastiao.com
- Size: 104 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Meu Acervo Digital de Romances
[](https://github.com/henriquesebastiao/madr/actions/workflows/ci.yml)
[](https://codecov.io/gh/henriquesebastiao/madr)
[]()
[]()
Link do deploy: [https://madr.henriquesebastiao.com/](https://madr.henriquesebastiao.com/)
Projeto final do curso [FastAPI do Zero](https://fastapidozero.dunossauro.com/)
## Endpoints
### Autenticação e autorização
- POST `/token`
- POST `/token_refresh`
### Contas
- POST `/contas/`
```json
{
"username": "string",
"email": "user@example.com",
"password": "string"
}
```
- PUT `/contas/{user_id}`
```json
{
"username": "string",
"email": "user@example.com",
"password": "string"
}
```
- DELETE `/contas/{user_id}`
### Romancistas
- POST `/romancistas/`
```json
{
"nome": "string"
}
```
- GET `/romancistas?nome=xxx`
- GET `/romancistas/{romancista_id}`
- PATCH `/romancistas/{romancista_id}`
```json
{
"nome": "string"
}
```
- DELETE `/romancistas/{romancista_id}`
### Livros
- POST `/livros/`
```json
{
"ano": 0,
"titulo": "string",
"romancista_id": 0
}
```
- GET `/livros/{livro_id}`
- GET `/livros?titulo=xxx&ano=iiii`
- PATCH `/livros/{livro_id}`
```json
{
"ano": 0,
"titulo": "string",
"romancista_id": 0
}
```
- DELETE `/livros/{livro_id}`