Posted on Leave a comment

Define Responses in RAML

We will get responses from api or external service . there are two type of responses , we will get .

positive response ->success case

Negative response ->failure case

we have to mention all responses in Raml file.



Create a specific folder for “Response”


Create files like 200.json,401.json,400.json,500.json


We will refer these file into rootfile(main file) and will use “!include” keyword.


validate your responses


Leave a Reply

Your email address will not be published. Required fields are marked *