Tech test for Orbital Witness
- Clone the repo
- Make sure you have poetry installed (https://python-poetry.org/docs/#installation) and it is on your path
- Run
poetry install
to install dependencies - Run
poetry run uvicorn src:app --reload
to start the server - Go to http://localhost:8000/docs to see the docs
- To run tests, run
poetry run pytest
- I want to build a rest API using FastAPI
- I will try not to use a database because this is a read only app and it will save time
- Order of implementation of features:
- Handle list endpoint ✅
- Handle pagination ✅
- Handle custom page size pagination ✅
- Handle detail endpoint ✅
- Handle ordering by ID ✅
- Handle desc and asc ordering ✅
- Handle ordering by title_number ✅
- Handle filtering by title_class ✅
- Now I need to add the app creation step with the loaded json and do a quick manual test to see if it works fine ✅