To Simulate Calling a RAML API
This procedure builds on the Placeholder API example to test the API. You see the response example from the JSON example when you preview the /users resource.
After entering RAML code in the editor, click the hamburger menu to display resources.
Turn on Mocking Service on the top, right to simulate calls to the API.
In your RAML definition, the baseUri changes to a mocking service URI.
Expand resources to see methods. Click GET. Try It appears.
Click Try It. Click Send to return the example data.
The user information in the
Click the GET tab for the
/userbyidresource. Click Try it.
Check Show Optional Parameters, and accept the default query parameter ID = 3. Click Send.
The user information appears for the user having an ID 3.