-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Types for the FastAPI API and API refactor (#748)
* feat: add response models to items.py * feat: ignore ruff linter raising exceptions in except block * refactor: ruff format all the api files * feat: add response models to scrape.py * feat: add response models to settings.py * feat: add response models to tmdb.py * feat: add missing type annotations to tmdb.py * fix: add default values for some pydantic models * feat: add types to default.py * fix: bad pydantic types causing serialization error * fix: add some model validation where needed * feat: add mypy to dev dependencies for static type checking * fix: wrong type in realdebrid * feat: add some options for easier querying of items * fix: pass with_streams argument in to_extended_dict to chidren * feat: remove the old json response format from services and stats endpoints * feat: migrate the settings api to the new response types * feat: add type annotation to get_all_settings * feat: migrate the rest of the APIs to the new response schema * fix: remove old imports
- Loading branch information
Filip Trplan
authored
Oct 10, 2024
1 parent
24904fc
commit 9eec02d
Showing
14 changed files
with
803 additions
and
256 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.