OpenAPI & Swagger for Python Tutorial: Test, Document & Create REST APIs for Flask & FastAPI

Publicado em: 11 Novembro 2024
no canal de: Swimming in Mojo
808
25

This Swagger for Python tutorial is the crash course you need to learn all of the most important parts of Swagger UI and the OpenAPI specification.


In this tutorial we start off by creating a simple REST API in Flask, but we don't waste a lot of time there. We then use the Swagger online editor to document the Python REST API.


Once the Swagger UI comes up in the browser, we then test our API to prove that everything works.From there? We add to the OpenAPI specification, we add more methods and we even use the OpenAPI Generator to take an API first approach to RESTful APIs and have Swagger create Python code for us.If you wanted to learn how Swagger for Python works, this tutorial is for you!

00:00 Intro to Swagger for Python
00:51 Python REST API & Flask
05:33 Swagger OpenAPI Editor
10:47 Add Swagger UI to Flask
12:45 Test Swagger UI & Python
14:10 Advanced REST API Endpoints
16:14 Advanced OpenAPI Specification
18:03 Component in Swagger
21:21 Test POST in Swagger UI
22:33 Python OpenAPI Generator
24:06 Auto-Generated Flask Code
25:30 End of Swagger UI for Python


Nesta página do site você pode assistir ao vídeo on-line OpenAPI & Swagger for Python Tutorial: Test, Document & Create REST APIs for Flask & FastAPI duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Swimming in Mojo 11 Novembro 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 808 vezes e gostou 25 espectadores. Boa visualização!