N
N
NickTheBuilder2019-05-20 22:10:20
Python
NickTheBuilder, 2019-05-20 22:10:20

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

2 answer(s)
A
Astrohas, 2019-05-20
@Astrohas

https://github.com/noirbizarre/flask-restplus
https://flask-restplus.readthedocs.io/en/stable/sw...

D
dmitriy, 2019-05-21
@dmitriylanets

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 question

Ask a Question

731 491 924 answers to any question