Saturday 23 October 2021

FastAPI tutorial


      Introduction to FastAPI
      Setting up FastAPI
      FastAPI: Hello world application
      FastAPI: uvicorn: make the server restart after code changes
      FastAPI: Working with path parameters
      FastAPI: Add description to the path parameter
      FastAPI: Add numeric validations on path parameter
      FastAPI: Order matter while defining path parameter
      FastAPI: enum: Specify predefined values to path parameter
      FastAPI: Path parameter can contain /
      FastAPI: Working with query parameters
      FastAPI: make the query parameters optional
      FastAPI: Provide default values to the query parameter
      FastAPI: Required and optional query parameters
      FastAPI: enum: Specify predefined values to query parameter
      FastAPI: POST, Request body example
      FastAPI: PUT request example
      FastAPI: Delete method example
      FastAPI: Add metadata and validations to path parameters
      FastAPI: Add metadata and validations to query parameters
      FastAPI: Query parameter can take take list of values
      FastAPI: specify alias name to a query parameter
      Deprecate a query parameter
      FastAPI: Mix path, query and request body in one request
      FastAPI: Send multiple body payloads
      FastAPI: Singular values in request body
      FastAPI: Add validations to request payload
      FastAPI: Define request sample payload
      FastAPI: Specify sample payload using Field
      FastAPI: Add sample data to request payload using Body function
      FastAPI: Add multiple examples of request payload
      FastAPI: Specify headers
      FastAPI: Declare a header with multiple values
      FastAPI: Declare Response model object
      FastAPI: Declare response model with default values
      FastAPI: response_model_exclude_unset: exclude unset values
      FastAPI: response_model_include and response_model_exclude: Exclude and include fields from response model
      FastAPI: status_code: Specify response status code
      FastAPI: define request to receive form data (x-www-form-urlencoded)
      FastAPI: Upload a file
      FastAPI: Multiple file uploads example
      FastAPI: Upload file and additional form parameters
      FastAPI: HTTPException: Return response with errors
      Can I pass a dictionary, list or any object while raising HttpException?
      FastAPI: HTTPException: Return response with errors
      Can I pass a dictionary, list or any object while raising HttpException?
      FastAPI: HTTPException: Return response with errors

Previous                                                    Next                                                    Home

No comments:

Post a Comment