By creating the documentation with Swagger, we were able to simplify not only the development of our API and the squad as a whole, but also the relationship with the other parts of the project (front-end squad, infra...).
Swagger-UI running on:
http://localhost:3002/docs
Swagger is an interface description language for describing RESTful APIs expressed using JSON. Swagger is used in conjunction with a set of open source software tools to design, build, document, and use RESTful web services.
Swagger is a framework composed of several tools that, regardless of language, help the description, consumption and visualization of services from a REST API.
-
Automatically: Simultaneously with the development of the API, the documentation is generated.
-
Manually: Allows the developer to freely write the API specifications and publish them later on their own server.
-
Codegen: Converts all annotations contained in the REST APIs source code into documentation.
-
Simple interface;
-
Organization of routes;
-
Performance of tests, without having to resort to other means;
-
API modeling;
-
Generation of API documentation;
-
Client and Server code generation, with support for several programming languages.