Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[BBL] Fast API

[BBL] Fast API

Caker: Matheus Fernandes

Cheesecake Labs

March 03, 2021
Tweet

More Decks by Cheesecake Labs

Other Decks in Programming

Transcript

  1. FAST API high performance, easy to learn, fast to code,

    ready for production
  2. FastAPI is a modern, fast (high-performance), web framework for building

    APIs with Python 3.6+ based on standard Python type hints. Created and maintained by Sebastián Ramírez @tiangolo What is Fast API
  3. None
  4. • Based on open standards ◦ OpenAPI • Automatic docs

    ◦ Swagger ◦ ReDoc • Just Modern Python ◦ Python 3.6 type declarations • Editor support • Validation • Security and authentication • Dependency Injection • Unlimited "plug-ins" • Tested • All Pydantic features Fast API Features
  5. None
  6. Type Hints

  7. Type Hints

  8. Hello World!

  9. None
  10. Live Coding

  11. Path Parameters

  12. Query Parameters

  13. Header Parameters

  14. Request Body

  15. Body Nested Models

  16. Response model

  17. Response Status

  18. Handling Errors

  19. Testing

  20. Thank you!