Sponsored Links
-->

Sunday, November 12, 2017

RAML Tutorial - YouTube
src: i.ytimg.com

RESTful API Modeling Language (RAML) is a YAML-based language for describing RESTful APIs. It provides all the information necessary to describe RESTful or practically RESTful APIs. Although designed with RESTful APIs in mind, RAML is capable of describing APIs that do not obey all constraints of REST (hence the description "practically RESTful"). It encourages reuse, enables discovery and pattern-sharing and aims for merit-based emergence of best practices.


Video RAML (software)



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. Development is managed by the RAML Workgroup. 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.

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 practically RESTful APIs including resources, methods, parameters, and response bodies that need not be hypermedia. There are plans to move towards more strictly RESTful APIs as the evolution of technology and the market permits.

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:

  • RAML has been open-sourced along with tools and parsers for common languages. The development of RAML will be overseen by a steering committee of API and UX practitioners, and there is an emerging ecosystem of third party tools being developed around RAML
  • MuleSoft originally started using Swagger (now OpenAPI Specification), but decided it was best suited to documenting an existing API, not for designing an API from scratch. RAML evolved out of the need to support up-front API design in a succinct, human-centric language
  • API descriptions are often verbose and repetitive, which can make them difficult to understand and use, and slow adoption of the APIs. RAML has introduced language features that support structured files and inheritance that address cross-cutting concerns

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 RESTful APIs. A number of companies including SmartBear, Google, IBM and Microsoft were founding members. SmartBear donated the Swagger specification to the new group. RAML and API Blueprint are also under consideration by the group.


Maps RAML (software)



Example

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

Some highlights:

  • line 7, 12: defines traits, invoked in multiple places
  • line 12: an Include file
  • line 13, 14: define a "resource" data type"/songs"; uses previously defined traits
  • line 15, 19, 37: defines HTTP methods
  • line 25, 36: MIME types.

raml-webservice-generator
src: img.youtube.com


API gateways supporting RAML

  • MuleSoft
  • AWS API Gateway by AWS (through AWS API Gateway Importer)
  • Akana
  • Restlet

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


Mulesoft RAML Criando uma API do zero - YouTube
src: i.ytimg.com


See also

  • OpenAPI Specification
  • Overview of RESTful API Description Languages including OpenAPI Specification, RAML, WADL, WSDL, and others.
  • MuleSoft
  • Representational State Transfer
  • YAML
  • Java API for RESTful Web Services
  • SoapUI
  • SOAtest
  • Markdown

Design center created RAML files cannot connect to API manager or ...
src: forums.mulesoft.com


Alternative RESTful Modeling Languages

  • OpenAPI Specification
  • API Blueprint
  • WADL

Different RAML 1.0 and 0.8 Behavior in Mule Anypoint Platform ...
src: i.ytimg.com


Notes


Anypoint API Manager - RAML Editor - cannot resolve include files ...
src: forums.mulesoft.com


References


Fátima Casaú - RAML, Specification to documentation and testing ...
src: i.ytimg.com


External links

  • RAML official website
  • RAML RESTful API Creation (YouTube Video) Example
  • RAML Repositories on Github
  • A RAML/APIHub Plugin for SoapUI
  • RAML Open Specification and Tools Released to Aid in API Design
  • MuleSoft founder Ross Mason on avoiding API armageddon
  • MuleSoft Makes API Management More Accessible
  • Spring WebService to RAML maven plugin

Source of article : Wikipedia