Swagger is a web-based API documentation framework . It is used to create interactive documents for APIs which are built to serve a specific purpose. Swagger UI documents enjoy many advantages when compared to other document types: It’s open-source. Enable you to create and share API documentation.