RAML (software) explained

RAML
Mime:application/raml+yaml[1]
Extension:.raml
Extended From:YAML
Latest Release Version:1.0
Latest Release Date:[2]
Owner:RAML Workgroup

RESTful API Modeling Language (RAML) is a YAML-based language for describing static APIs (but not REST APIs).[3] It provides all the information necessary to describe APIs on the level 2 of the Richardson Maturity Model. Although designed with RESTful APIs in mind, RAML is not capable of describing APIs that obey all constraints of REST (it cannot describe an API obeying HATEOAS, in particular). It encourages reuse, enables discovery and pattern-sharing and aims for merit-based emergence of best practices.[4]

History

RAML was first proposed in 2013. The initial RAML specification was authored by Uri Sarid, Emiliano Lesende, Santiago Vacas and Damian Martinez, and garnered support from technology leaders like MuleSoft, AngularJS, Intuit, Box, PayPal, Programmable Web and API Web Science, Kin Lane, SOA Software, and Cisco.[5] Development is managed by the RAML Workgroup.[6] The current workgroup signatories include technology leaders from MuleSoft (Uri Sarid, CTO), AngularJS (Misko Hevery, Project Founder), Intuit (Ivan Lazarov, Chief Enterprise Architect), Airware (Peter Rexer, Director of Product - Developer Platform), Programmable Web and API Science (John Musser, Founder), SOA Software (Tony Gullotta, Director of Development), Cisco (Jaideep Subedar, Senior Manager, Product Management - Application Integration Solutions Group), VMware (Kevin Duffey, Senior MTS Engineer), Akamai Technologies (Rob Daigneau, Director of Architecture for Akamai's OPEN API Platform) and Restlet (Jerome Louvel, CTO and Founder). RAML is a trademark of MuleSoft.[7]

Very few existing APIs meet the precise criteria to be classified as RESTful APIs. Consequently, like most API initiatives in the 2010s, RAML has initially focussed on the basics of APIs including resources, methods, parameters, and response bodies that need not be hypermedia.

There are a number of reasons why RAML has broken out from being a proprietary vendor language and has proven interesting to the broader API community:[8]

A new organization, under the sponsorship of the Linux Foundation, called the Open API Initiative was set up in 2015 to standardize the description of HTTP APIs. A number of companies including SmartBear, Google, IBM and Microsoft were founding members.[12] [13] SmartBear donated the Swagger specification to the new group. RAML and API Blueprint are also under consideration by the group.[14] [15]

Example

This is an example RAML file. As with YAML, indentation shows nesting. #%RAML 0.8

title: World Music API baseUri: http://example.api.com/ version: v1 traits: - paged: queryParameters: pages: description: The number of pages to return type: number - secured: !include http://raml-example.com/secured.yml /songs: is: [paged, secured ] get: queryParameters: genre: description: filter the songs by genre post: /: get: responses: 200: body: application/json: schema: | application/xml: delete: description: | This method will *delete* an **individual song**

Some highlights:

API gateways supporting RAML

Furthermore, you can convert your RAML specification to either OpenAPI or API Blueprint using APIMATIC, thus enabling you to use further API gateways.

See also

Alternative HTTP API Modeling Languages

External links

Notes and References

  1. Not registered with IANA
  2. Web site: Announcing RAML 1.0 GA RAML Blog . 11 August 2016.
  3. Web site: RAML 100.o . . 26 May 2017.
  4. Web site: RAML — RESTful API Modeling Language . 15 July 2014.
  5. Web site: RAML or OpenAPI - How About Both? - DZone Integration. dzone.com. en. 2017-10-04.
  6. Web site: RAML Workgroup.
  7. Web site: RAML - Trademark Details . 26 May 2017.
  8. Web site: Why RAML is More than Another Proprietary Specification . 11 April 2014.
  9. Web site: API Design Tooling From RAML . 3 March 2014.
  10. Web site: Anypoint for APIs: An Interview with Uri Sarid . 25 February 2014.
  11. Web site: An Example of API Design using RAML . 11 April 2014.
  12. News: SmartBear, Linux Foundation launch Open API Initiative to Evolve Swagger. 2015-11-10. ProgrammableWeb. 2016-04-21. 2016-11-09. https://web.archive.org/web/20161109214454/http://www.programmableweb.com/news/%E2%80%8Bsmartbear-linux-foundation-launch-open-api-initiative-to-evolve-swagger/2015/11/10. dead.
  13. Web site: New Collaborative Project to Extend Swagger Specification for Building Connected Applications and Services. www.linuxfoundation.org. 2016-04-22. dead. https://web.archive.org/web/20160427104213/http://www.linuxfoundation.org/news-media/announcements/2015/11/new-collaborative-project-extend-swagger-specification-building. 2016-04-27.
  14. Web site: In 2016, the need for an API meta-language will crystallize. Montcheuil. Yves de. InfoWorld. 14 December 2015 . 2016-04-25.
  15. Web site: Amazon API Gateway Now Supports Swagger Definition Import. InfoQ. 2016-04-25.