#api
Study materials by tag "api" from expert practitioners. Current articles and useful tips for development.
Articles with tag "#api"
All materials on the topic api
Middleware and CORS in FastAPI
Allows browser clients to make requests to an API from a different domain.
HTTPException in FastAPI
Охватываемые темы: Basic Usage, Status Codes, Error Details, Custom Headers.
Dependency Injection in FastAPI
Depends — FastAPI's dependency injection system for reusing code across endpoints.
Testing FastAPI with pytest
Охватываемые темы: Installation, TestClient (synchronous), Test database, Tests with fixtures.
Lifespan Events in FastAPI
Lifespan — manage application startup and shutdown (DB initialization, ML models, connection pools).
Background Tasks in FastAPI
BackgroundTasks — execute tasks after the response has been sent to the client.
FastAPI: Basics
FastAPI is a modern Python framework for building APIs. Automatic documentation, type hints, high performance.
SQLModel CRUD in FastAPI
SQLModel combines SQLAlchemy and Pydantic — a single model for both the database and the API.
OAuth2 Bearer in FastAPI
OAuth2PasswordBearer is FastAPI's Bearer token authentication scheme.
Swagger Documentation in FastAPI
FastAPI automatically generates OpenAPI documentation from your code.
Deploying FastAPI with Docker
Railway will also automatically detect a Dockerfile if one is present.
Path and Query Parameters in FastAPI
FastAPI determines automatically: if the parameter appears in the path {} it is a path param, otherwise it is a...
Similar tags
Study related topics
Looking for more on the topic?
Study all our materials or subscribe to updates