SlideShare une entreprise Scribd logo
1  sur  7
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**

Contenu connexe

Tendances

Six Steps To Build A Successful API
Six Steps To Build A Successful APISix Steps To Build A Successful API
Six Steps To Build A Successful APIChris Haddad
 
API Description Languages
API Description LanguagesAPI Description Languages
API Description LanguagesAkana
 
Api application programming interface
Api application programming interfaceApi application programming interface
Api application programming interfaceMohit Bishnoi
 
API Best Practices
API Best PracticesAPI Best Practices
API Best PracticesSai Koppala
 
Moving into API documentation writing
Moving into API documentation writingMoving into API documentation writing
Moving into API documentation writingEllis Pratt
 
apidays LIVE Hong Kong 2021 - GraphQL : Beyond APIs, graph your enterprise by...
apidays LIVE Hong Kong 2021 - GraphQL : Beyond APIs, graph your enterprise by...apidays LIVE Hong Kong 2021 - GraphQL : Beyond APIs, graph your enterprise by...
apidays LIVE Hong Kong 2021 - GraphQL : Beyond APIs, graph your enterprise by...apidays
 
Application Programming Interface Implementation For Building Software Applic...
Application Programming Interface Implementation For Building Software Applic...Application Programming Interface Implementation For Building Software Applic...
Application Programming Interface Implementation For Building Software Applic...SlideTeam
 
API-first development
API-first developmentAPI-first development
API-first developmentVasco Veloso
 
apidays LIVE New York 2021 - Designing API's: Less Data is More! by Damir Svr...
apidays LIVE New York 2021 - Designing API's: Less Data is More! by Damir Svr...apidays LIVE New York 2021 - Designing API's: Less Data is More! by Damir Svr...
apidays LIVE New York 2021 - Designing API's: Less Data is More! by Damir Svr...apidays
 
Why your APIs should fly first class
Why your APIs should fly first classWhy your APIs should fly first class
Why your APIs should fly first classLibbySchulze
 
API Docs Made Right / RAML - Swagger rant
API Docs Made Right / RAML - Swagger rantAPI Docs Made Right / RAML - Swagger rant
API Docs Made Right / RAML - Swagger rantVladimir Shulyak
 
Cross platform mobile application development
Cross platform mobile application developmentCross platform mobile application development
Cross platform mobile application developmentwebprogr.com
 

Tendances (15)

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

Similaire à Mule raml

mulesoft birmingham meetup_api_designing_with_raml
mulesoft birmingham meetup_api_designing_with_ramlmulesoft birmingham meetup_api_designing_with_raml
mulesoft birmingham meetup_api_designing_with_ramlmohammadsakifuddin
 
Restful api modeling language
Restful api modeling languageRestful api modeling language
Restful api modeling languagePrabhat gangwar
 
Mule api gateway overview
Mule api gateway overviewMule api gateway overview
Mule api gateway overviewSanjeet Pandey
 
Ruby On Rails
Ruby On RailsRuby On Rails
Ruby On Railsiradarji
 
Introduction to Ruby on Rails
Introduction to Ruby on RailsIntroduction to Ruby on Rails
Introduction to Ruby on Railshasan2000
 
API design concepts [Intro]
API design concepts [Intro]API design concepts [Intro]
API design concepts [Intro]Anas Jamil
 
API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?Akana
 
API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?Akana
 
AWS API Framework Overview
AWS API Framework OverviewAWS API Framework Overview
AWS API Framework OverviewAPI Talent
 
REST-API's for architects and managers
REST-API's for architects and managersREST-API's for architects and managers
REST-API's for architects and managersPatrick Savalle
 
A Journey from API Versioning to Canary Release | APIDays Zurich 2017
A Journey from API Versioning to Canary Release | APIDays Zurich 2017A Journey from API Versioning to Canary Release | APIDays Zurich 2017
A Journey from API Versioning to Canary Release | APIDays Zurich 2017Patrice Krakow
 
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...Patrice Krakow
 
What is an Application programming interface(API)?
What is an Application programming interface(API)?What is an Application programming interface(API)?
What is an Application programming interface(API)?Akmal Ali
 

Similaire à Mule raml (20)

mulesoft birmingham meetup_api_designing_with_raml
mulesoft birmingham meetup_api_designing_with_ramlmulesoft birmingham meetup_api_designing_with_raml
mulesoft birmingham meetup_api_designing_with_raml
 
Restful api modeling language
Restful api modeling languageRestful api modeling language
Restful api modeling language
 
Mule api gateway overview
Mule api gateway overviewMule api gateway overview
Mule api gateway overview
 
Raml api designer
Raml   api designerRaml   api designer
Raml api designer
 
Ruby On Rails
Ruby On RailsRuby On Rails
Ruby On Rails
 
Introduction to Ruby on Rails
Introduction to Ruby on RailsIntroduction to Ruby on Rails
Introduction to Ruby on Rails
 
API design concepts [Intro]
API design concepts [Intro]API design concepts [Intro]
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 Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?
 
API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?API Description Languages: Which is the Right One for Me?
API Description Languages: Which is the Right One for Me?
 
Api design part 1
Api design part 1Api design part 1
Api design part 1
 
Managing api development
Managing api developmentManaging api development
Managing api development
 
2.3.anypoint exchange
2.3.anypoint exchange2.3.anypoint exchange
2.3.anypoint exchange
 
AWS API Framework Overview
AWS API Framework OverviewAWS API Framework Overview
AWS API Framework Overview
 
Raml
RamlRaml
Raml
 
Design REST APIs using RAML
Design REST APIs using RAMLDesign REST APIs using RAML
Design REST APIs using RAML
 
REST-API's for architects and managers
REST-API's for architects and managersREST-API's for architects and managers
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 | APIDays Zurich 2017A Journey from API Versioning to Canary Release | APIDays Zurich 2017
A Journey from API Versioning to Canary Release | APIDays Zurich 2017
 
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...
 
What is an Application programming interface(API)?
What is an Application programming interface(API)?What is an Application programming interface(API)?
What is an Application programming interface(API)?
 
ApiAddicts Meetup Sept 2016, Madrid
ApiAddicts Meetup Sept 2016, MadridApiAddicts Meetup Sept 2016, Madrid
ApiAddicts Meetup Sept 2016, Madrid
 

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**