You have successfully deployed your first API. You are seeing this HTML page because the GET
method to the root resource of your API returns this content as a Mock integration.
The Pet Store API contains the /pets
and /pets/{petId}
resources. By making a GET
request to /pets
you can retrieve a list of Pets in your API. If you are looking for a specific pet, for example the pet with ID 1, you can make a GET
request to /pets/1
.
You can use a REST client such as Postman to test the POST
methods in your API to create a new pet. Use the sample body below to send the POST
request:
{ "type" : "cat", "price" : 123.11 }