{"id":5733,"date":"2017-05-08T21:14:48","date_gmt":"2017-05-08T21:14:48","guid":{"rendered":"https:\/\/modeling-languages.com\/?p=5733"},"modified":"2018-05-19T14:19:37","modified_gmt":"2018-05-19T14:19:37","slug":"automatic-discovery-web-api-specifications","status":"publish","type":"post","link":"https:\/\/modeling-languages.com\/automatic-discovery-web-api-specifications\/","title":{"rendered":"Automatic discovery of Web API Specifications: an example-driven approach"},"content":{"rendered":"

REpresentational State Transfer (REST) has become the dominant approach to design Web APIs nowadays, resulting in thousands of public REST Web APIs offering access to a variety of data sources (e.g., open-data initiatives) or advanced functionalities (e.g., geolocation services).<\/p>\n

Unfortunately, most of these APIs do not come with any specification that developers (and machines) can rely on to automatically understand and integrate them. Instead, most of the time we have to rely on reading its ad-hoc documentation web pages, despite the existence of languages to model Web APIs<\/a> like Swagger or, more recently, OpenAPI that developers could use to formally describe their APIs.<\/p>\nThere are several languages to describe Web APIs. Unfortunately, they are hardly used <\/a><\/span>Click To Tweet<\/a><\/span>\n

In this post, we present an example-driven discovery process that generates model-based OpenAPI specifications for REST Web APIs by using API call examples<\/strong>. A tool implementing our approach and a community-driven repository for the discovered APIs are also presented.<\/p>\n

This work has been presented at ECMFA’17<\/a>. Feel free to download the paper on pdf <\/a>, check the slides below or keep reading to discover the main parts of the proposal.<\/p>\n