Skip to content

Commit 3f0850b

Browse files
committed
remove mention to GET request to avoid confusion. Closed #4
1 parent 4f8488c commit 3f0850b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/endpoints.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Some endpoints can include a resource identifier to retrieve a specific resource
4444

4545
An endpoint can retrieve lists of data and individual items. It can also perform actions, for instance, searching. The query parameters are the part of endpoints that allows us to explore the data available in the API. This can include multiple parts used to specify the search. Let's explore this with more detail.
4646

47-
The Cat API has an endpoint to search for cat images. The path of this endpoint is `/v1/images/search`. If we do a GET request to this endpoint we will get a random cat image. However, the developers have included a set of parameters that can delimit the search like the size of the image, the type of the image, the format of the response, if the image has a breed, etc. In that case, instead of just having a random cat image, we can retrieve a list of cat images with a size, media type, and with a specific limit. Then, the part of the endpoint will be like this:
47+
The Cat API has an endpoint to search for cat images. The path of this endpoint is `/v1/images/search`. If we do a request to this endpoint we will get a random cat image. However, the developers have included a set of parameters that can delimit the search like the size of the image, the type of the image, the format of the response, if the image has a breed, etc. In that case, instead of just having a random cat image, we can retrieve a list of cat images with a size, media type, and with a specific limit. Then, the part of the endpoint will be like this:
4848

4949
`search?size=small&mime_types=gif&limit=10`
5050

0 commit comments

Comments
 (0)