I have just started learning RAML and I am having some difficulty understanding how to handle Responses.
To begin with I have downloaded the example api.raml file from this site: http://www.mulesoft.org/documentation/display/current/APIkit+Tutorial
.I have noticed that the Responses are added under ResourceTypes, and Collections as well as under certain verbs.
You will also notice that this particular file only records 200 responses - and only for the GET verbs.
So my confusion is twofold:
1] Where do you need to capture the Responses?
2] How do you capture all the different types of responses? 200, 400 etc
When I run my current WeatherTest project within the online API designer I get an error but it still comes back as a 200 - see this screenshot …
However when I run it from MuleStudio on my local machine I get a 400 even though I have not coded a 400 Response anywhere in the file.
Any advice or perhaps indication of an online tutorial that explains this would be appreciated.