Answer the question
In order to leave comments, you need to log in
How to make REST API with description in Swagger(python) format?
Good afternoon!
I can’t figure out how the swagger works, or rather, in what order to do the work.
The essence of the work: it is necessary to develop an API for managing a hierarchical list, the data for the list must be stored in the DBMS. The server part should be a REST API with a description in the Swagger format. Applications must run inside Docker. And I don't quite understand the procedure and how to work with the swagger. First, write a web application separately, and then work with it in swagger? Or how?
I would be grateful for any useful information, thanks
Answer the question
In order to leave comments, you need to log in
https://github.com/noirbizarre/flask-restplus
https://flask-restplus.readthedocs.io/en/stable/sw...
1. Description of the domain model (entity directory, methods, relationships)
2. Creation of Swagger based on the domain model
3. Implementation of the server side of the API based on the swagger documentation (you can generate a framework based on the swagger schema in the swagger online editor)
4. Client implementation (you can use the same swagger online editor to generate a client)
p.s. 3 and 4 can be done in parallel
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question