Fetch cats
GET {{url}}/cats?offset=1&limit=10
API to fetch cats using paginated API. If the client omits the parameter you should use defaults (like offset=0 and limit=10)
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
offset | number | List offset | |
limit | number | Max number of items that respnse should have |
RESPONSES
status: OK
{"data":[{"id":1,"name":"Taco","breed":"Abyssinian","owner":{"id":1,"name":"John Doe"}},{"id":2,"name":"Snowball","breed":"Birman","owner":{"id":12,"name":"Stuart Little"}},{"id":3,"name":"Fury","breed":"Birman","owner":{"id":12,"name":"Stuart Little"}}],"pagination":{"offset":1,"limit":3,"total":123}}