A FastAPI implementation of AOT Wikis of Characters to understand FastAPI concepts
To start the server locally, run:
uvicorn server:app --host "0.0.0.0" --port 8000 --reload --workers 3
To build the API run docker build:
docker build -t limebrewofficial/aot-wikis:1.0.0 .
To build and run directly, use docker-compose:
docker-compose up -d --build
or with docker compose:
docker compose up -d --build
to down the application:
docker compose down
To build a multi-platform build for a image, use docker buildx and push it to docker hub
docker buildx create --use  # One time step
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag limebrewofficial/aot-wikis:1.0.0 .
- 
/aot-wiki/all: Get All Characters of AOT
- 
/aot-wiki?name=Mikasa: Filter AOT Characters by Name
- 
/aot-wiki/:id: Get a character by ID
- 
/aot-wiki?birth_place=Shinganshina: Filter AOT Characters by Birth Place
- 
/aot-wiki?race=Eldian: Filter AOT Characters by Race
- 
/aot-wiki/add: Add a new character
- 
/aot-wiki/update/:id: Update a character by ID