├── .gitignore ├── README.md ├── alembic.ini ├── alembic ├── README ├── env.py ├── script.py.mako └── versions │ ├── 010043342e1a_adds_to_charachter_model.py │ ├── 518820f9216c_removes_rating.py │ ├── cd18fa91af11_create_star_wars_characters_table.py │ └── e7b1f1b1b1b4_create_star_wars_vehicles_table.py ├── app ├── __init__.py ├── clients │ ├── __init__.py │ ├── database │ │ ├── __init__.py │ │ ├── characters_database_client.py │ │ └── vehicles_database_client.py │ └── networking │ │ ├── __init__.py │ │ └── swapi_networking_client.py ├── domain │ ├── __init__.py │ └── vehicles │ │ ├── __init__.py │ │ └── vehicle_calculations.py ├── errors │ ├── __init__.py │ ├── custom_exceptions.py │ └── exception_handlers.py ├── models │ ├── __init__.py │ ├── star_wars_character_model.py │ └── star_wars_vehicle_model.py ├── routers │ ├── __init__.py │ ├── characters_router.py │ └── vehicles_router.py ├── schemas │ ├── star_wars_character_schema.py │ ├── star_wars_vehicle_schema.py │ ├── swapi_character_schema.py │ └── swapi_vehicle_schema.py ├── services │ ├── __init__.py │ ├── characters_service.py │ └── vehicles_service.py └── utils │ ├── __init__.py │ └── characters_utils.py ├── database.py ├── example.env ├── main.py ├── requirements.txt └── tests ├── __init__.py ├── conftest.py ├── integration_tests ├── __init__.py └── test_star_wars_characters_integration.py └── unit_tests ├── __init__.py ├── client_tests ├── __init__.py ├── database_tests │ ├── __init__.py │ └── test_characters_database_client.py └── networking │ ├── __init__.py │ └── test_swapi_networking_client.py ├── domain_tests ├── __init__.py └── test_vehicle_calculations.py ├── router_tests └── test_characthers_router.py ├── service_tests ├── __init__.py └── test_characters_service.py └── utils_tests ├── __init__.py └── test_characters_utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/README.md -------------------------------------------------------------------------------- /alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/alembic.ini -------------------------------------------------------------------------------- /alembic/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /alembic/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/alembic/env.py -------------------------------------------------------------------------------- /alembic/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/alembic/script.py.mako -------------------------------------------------------------------------------- /alembic/versions/010043342e1a_adds_to_charachter_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/alembic/versions/010043342e1a_adds_to_charachter_model.py -------------------------------------------------------------------------------- /alembic/versions/518820f9216c_removes_rating.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/alembic/versions/518820f9216c_removes_rating.py -------------------------------------------------------------------------------- /alembic/versions/cd18fa91af11_create_star_wars_characters_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/alembic/versions/cd18fa91af11_create_star_wars_characters_table.py -------------------------------------------------------------------------------- /alembic/versions/e7b1f1b1b1b4_create_star_wars_vehicles_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/alembic/versions/e7b1f1b1b1b4_create_star_wars_vehicles_table.py -------------------------------------------------------------------------------- /app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/clients/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/clients/database/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/clients/database/characters_database_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/clients/database/characters_database_client.py -------------------------------------------------------------------------------- /app/clients/database/vehicles_database_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/clients/database/vehicles_database_client.py -------------------------------------------------------------------------------- /app/clients/networking/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/clients/networking/swapi_networking_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/clients/networking/swapi_networking_client.py -------------------------------------------------------------------------------- /app/domain/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/domain/vehicles/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/domain/vehicles/vehicle_calculations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/domain/vehicles/vehicle_calculations.py -------------------------------------------------------------------------------- /app/errors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/errors/custom_exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/errors/custom_exceptions.py -------------------------------------------------------------------------------- /app/errors/exception_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/errors/exception_handlers.py -------------------------------------------------------------------------------- /app/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/star_wars_character_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/models/star_wars_character_model.py -------------------------------------------------------------------------------- /app/models/star_wars_vehicle_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/models/star_wars_vehicle_model.py -------------------------------------------------------------------------------- /app/routers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/routers/characters_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/routers/characters_router.py -------------------------------------------------------------------------------- /app/routers/vehicles_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/routers/vehicles_router.py -------------------------------------------------------------------------------- /app/schemas/star_wars_character_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/schemas/star_wars_character_schema.py -------------------------------------------------------------------------------- /app/schemas/star_wars_vehicle_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/schemas/star_wars_vehicle_schema.py -------------------------------------------------------------------------------- /app/schemas/swapi_character_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/schemas/swapi_character_schema.py -------------------------------------------------------------------------------- /app/schemas/swapi_vehicle_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/schemas/swapi_vehicle_schema.py -------------------------------------------------------------------------------- /app/services/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/services/characters_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/services/characters_service.py -------------------------------------------------------------------------------- /app/services/vehicles_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/services/vehicles_service.py -------------------------------------------------------------------------------- /app/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/utils/characters_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/app/utils/characters_utils.py -------------------------------------------------------------------------------- /database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/database.py -------------------------------------------------------------------------------- /example.env: -------------------------------------------------------------------------------- 1 | DATABASE_URL=postgresql://@localhost/star_wars -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/main.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/requirements.txt -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/integration_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/integration_tests/test_star_wars_characters_integration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/tests/integration_tests/test_star_wars_characters_integration.py -------------------------------------------------------------------------------- /tests/unit_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/client_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/client_tests/database_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/client_tests/database_tests/test_characters_database_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/tests/unit_tests/client_tests/database_tests/test_characters_database_client.py -------------------------------------------------------------------------------- /tests/unit_tests/client_tests/networking/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/client_tests/networking/test_swapi_networking_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/tests/unit_tests/client_tests/networking/test_swapi_networking_client.py -------------------------------------------------------------------------------- /tests/unit_tests/domain_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/domain_tests/test_vehicle_calculations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/tests/unit_tests/domain_tests/test_vehicle_calculations.py -------------------------------------------------------------------------------- /tests/unit_tests/router_tests/test_characthers_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/tests/unit_tests/router_tests/test_characthers_router.py -------------------------------------------------------------------------------- /tests/unit_tests/service_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/service_tests/test_characters_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/tests/unit_tests/service_tests/test_characters_service.py -------------------------------------------------------------------------------- /tests/unit_tests/utils_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit_tests/utils_tests/test_characters_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/betaacid/FastAPI-Reference-App/HEAD/tests/unit_tests/utils_tests/test_characters_utils.py --------------------------------------------------------------------------------