DEV Community

Discussion on: Benefits of using the OpenAPI (Swagger) specification for your API?

Collapse
 
dbanty profile image
Dylan Anthony

There are also several frameworks that will generate OpenAPI specs from the implementation. Sort of turns the whole process on its head, but its a great workflow for, say, a Python developer who is very comfortable writing in their framework of choice but doesn’t want to learn the OAS DSL.

FastAPI and Flask-Restplus are the two I use. Great for writing the API in Python then taking advantage of OAS to generate client libraries.

Collapse
 
kayis profile image
K

Good to know!

I read about GraphQL frameworks moving from schema-first design to creating schemas from the implementations, or even directly from the database schema.

Nice that such tools also exist for OpenAPI!

Collapse
 
buinauskas profile image
Evaldas Buinauskas • Edited

Yep. I do development in .NET Core and we can generate OpenAPI spec from code using NSwag or Swashbuckle. Very easy.