An open API service indexing awesome lists of open source software.

https://github.com/khaledalam/cruid_api

CRUID Python FastAPI Alembic.
https://github.com/khaledalam/cruid_api

alembic docker docker-compose fastapi python rest-api

Last synced: 3 months ago
JSON representation

CRUID Python FastAPI Alembic.

Awesome Lists containing this project

README

          

# For coding assignment purpose.

## Simple CRUD APIs
#### No middlewares, security, logging, validations(except email) handled.

### Requirements
- Docker and docker-compose `apt install docker.io docker-compose`
- Make sure 8888 and 3306 ports are not in use.

### Run
1. Env & run containers: `./setup.sh`
2. Migration: `docker exec -it api alembic upgrade head`

Ping to validate setup is done correctly:
```curl
curl -X 'GET' 'http://0.0.0.0:8888/' -H 'accept: application/json'
```

### URLs
- Documentation: http://0.0.0.0:8888/documentation
- Re-Documentation: http://0.0.0.0:8888/re-documentation
- Openapi.json: http://0.0.0.0:8888/openapi.json

### Demo
Containers


Docs


Structure


#### Postman APIs:
1. Get all

2. Get one

3. Create new

4. Update one

5. Delete one