Swagger an open-source specification and a framework for describing, producing, consuming, and visualizing RESTful web services. Swagger was developed for Wordnik for their developer use in development.
Swagger framework simultaneously solve server, client and documentation needs.
Swagger allows developers and non developers to intract with the api using swagger UI that gives clear insight into how the api responds to options and parameters.
Swagger utilize JSON and XML.
Swagger have its own editor, where one can specify api data and from that editor can download both server and client side code and can use it.
Swagger also provide swagger ui in which one can test the api made on the server side.
The api specified by swagger can be used in mobile application or in web application.