Sunday, 3 July 2016

RAML Definition


RAML (RESTful API Modeling Language) lets you see what your API looks like as you design it, using easy to read plain text. Without having to write a single line of code you can not only perfect your API design.Lets start than
For RAML Definition you Need 
  1. Atom
  2. Nodejs
Step1: Install atom here is link https://atom.io/


Step2: For creating RAML Definition you need to install package api workbench


Step3: Then create a new file with api.raml 

Step4: There are 2 version 0.8 and 1.0

Step5: Then Install Node js here is the link https://nodejs.org/en/
Step6: then install raml2html in nodejs prompt by using cmd npm install raml2html

Step7: To convert api.raml to index.html go to command prompt go to file location and use this command raml2html api.raml>index.html 

Step 8:After executing the command index.html file where you can see the in html.


Here is the link to download the simple example
https://drive.google.com/open?id=0B_9Sb5HbysjMQmo1NmIwaXpLVUU

Reference link: