SlideShare a Scribd company logo
Mule RAML
RESTful API Modeling Language
RESTful API Modeling Language (RAML) is a simple and
succinct way of describing practically-RESTful APIs.
RAML is the first standard facilitating the design-first
approach to APIs .
File must be saved as “api.raml”
API Designer
• API providers can use the API Designer to
easily create their API in a human-readable,
easily consumable format, and then socialize
that API definition with key stakeholders.
API Console
• Both during and after the API design process,
an API consumer can quickly and easily
evaluate a RAML-documented API using the
console, gaining a robust understanding of
how the API actually behaves.
API Notebook
• The API Notebook consumes RAML specs and
produces a guided, object-oriented, in-
browser JavaScript development experience
which a developer would use to test real use-
cases, build out proof-of-concept API
mashups, and create shareable examples.
RAML Example File
• #%RAML 0.8
•
• title: World Music API
• baseUri: http://example.api.com/{version}
• version: v1
• traits:
• - paged:
• queryParameters:
• pages:
• description: The number of pages to return
• type: number
• - secured: !include http://raml-example.com/secured.yml
RAML
• /songs:
• is: [ paged, secured ]
• get:
• queryParameters:
• genre:
• description: filter the songs by genre
• post:
• /{songId}:
• get:
• responses:
• 200:
• body:
• application/json:
• schema: |
RAML
• schema: |
• { "$schema": "http://json-schema.org/schema",
• "type": "object",
• "description": "A canonical song",
• "properties": {
• "title": { "type": "string" },
• "artist": { "type": "string" }
• },
• "required": [ "title", "artist" ]
• }
• application/xml:
• delete:
• description: |
• This method will *delete* an **individual song**

More Related Content

PPTX
RAML - APIs By Design
ODP
Mulesoft Raml APIs
PPTX
Using RAML 1.0 Like a Pro
PDF
OpenAPI Spec at Google (Open API Initiative Meetup on 2016-09-15)
PDF
Mocking APIs Collaboratively with Postman
PPTX
Another API-Blueprint, RAML and Swagger Comparison
PDF
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
PDF
apidays LIVE Paris - The Augmented API Design Reviewer by Arnaud Lauret
RAML - APIs By Design
Mulesoft Raml APIs
Using RAML 1.0 Like a Pro
OpenAPI Spec at Google (Open API Initiative Meetup on 2016-09-15)
Mocking APIs Collaboratively with Postman
Another API-Blueprint, RAML and Swagger Comparison
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
apidays LIVE Paris - The Augmented API Design Reviewer by Arnaud Lauret

What's hot (15)

PPTX
How to define an api
PPT
Six Steps To Build A Successful API
PDF
API Description Languages
PPTX
Api application programming interface
PPTX
API Best Practices
PPT
How to design effective APIs
PDF
Moving into API documentation writing
PDF
apidays LIVE Hong Kong 2021 - GraphQL : Beyond APIs, graph your enterprise by...
PDF
Application Programming Interface Implementation For Building Software Applic...
PPTX
API-first development
PPT
apidays LIVE New York 2021 - Designing API's: Less Data is More! by Damir Svr...
PDF
Cross Platform Mobile Development
PDF
Why your APIs should fly first class
PDF
API Docs Made Right / RAML - Swagger rant
PPT
Cross platform mobile application development
How to define an api
Six Steps To Build A Successful API
API Description Languages
Api application programming interface
API Best Practices
How to design effective APIs
Moving into API documentation writing
apidays LIVE Hong Kong 2021 - GraphQL : Beyond APIs, graph your enterprise by...
Application Programming Interface Implementation For Building Software Applic...
API-first development
apidays LIVE New York 2021 - Designing API's: Less Data is More! by Damir Svr...
Cross Platform Mobile Development
Why your APIs should fly first class
API Docs Made Right / RAML - Swagger rant
Cross platform mobile application development
Ad

Similar to Mule raml (20)

PPTX
mulesoft birmingham meetup_api_designing_with_raml
PPTX
Restful api modeling language
PPTX
Mule api gateway overview
PPT
Raml api designer
DOC
Ruby On Rails
ODP
Introduction to Ruby on Rails
PPTX
API design concepts [Intro]
PPTX
API Description Languages: Which is the Right One for Me?
PPTX
API Description Languages: Which is the Right One for Me?
PPTX
Api design part 1
PPTX
Managing api development
PPTX
2.3.anypoint exchange
PPTX
AWS API Framework Overview
PPT
PPTX
Design REST APIs using RAML
PPTX
REST-API's for architects and managers
PPTX
A Journey from API Versioning to Canary Release | APIDays Zurich 2017
PPTX
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...
PPTX
What is an Application programming interface(API)?
PDF
ApiAddicts Meetup Sept 2016, Madrid
mulesoft birmingham meetup_api_designing_with_raml
Restful api modeling language
Mule api gateway overview
Raml api designer
Ruby On Rails
Introduction to Ruby on Rails
API design concepts [Intro]
API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?
Api design part 1
Managing api development
2.3.anypoint exchange
AWS API Framework Overview
Design REST APIs using RAML
REST-API's for architects and managers
A Journey from API Versioning to Canary Release | APIDays Zurich 2017
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...
What is an Application programming interface(API)?
ApiAddicts Meetup Sept 2016, Madrid
Ad

Mule raml

  • 1. Mule RAML RESTful API Modeling Language RESTful API Modeling Language (RAML) is a simple and succinct way of describing practically-RESTful APIs. RAML is the first standard facilitating the design-first approach to APIs . File must be saved as “api.raml”
  • 2. API Designer • API providers can use the API Designer to easily create their API in a human-readable, easily consumable format, and then socialize that API definition with key stakeholders.
  • 3. API Console • Both during and after the API design process, an API consumer can quickly and easily evaluate a RAML-documented API using the console, gaining a robust understanding of how the API actually behaves.
  • 4. API Notebook • The API Notebook consumes RAML specs and produces a guided, object-oriented, in- browser JavaScript development experience which a developer would use to test real use- cases, build out proof-of-concept API mashups, and create shareable examples.
  • 5. RAML Example File • #%RAML 0.8 • • title: World Music API • baseUri: http://example.api.com/{version} • version: v1 • traits: • - paged: • queryParameters: • pages: • description: The number of pages to return • type: number • - secured: !include http://raml-example.com/secured.yml
  • 6. RAML • /songs: • is: [ paged, secured ] • get: • queryParameters: • genre: • description: filter the songs by genre • post: • /{songId}: • get: • responses: • 200: • body: • application/json: • schema: |
  • 7. RAML • schema: | • { "$schema": "http://json-schema.org/schema", • "type": "object", • "description": "A canonical song", • "properties": { • "title": { "type": "string" }, • "artist": { "type": "string" } • }, • "required": [ "title", "artist" ] • } • application/xml: • delete: • description: | • This method will *delete* an **individual song**