List all turtles
GET
/turtles
const url = 'https://example.com/api/turtles';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/turtles \ --header 'Authorization: Bearer <token>'Returns all turtles
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”A paged array of turtles
Media typeapplication/json
Array<object>
object
id
required
integer format: int64
name
required
Name of the animal
A friendly name for the animal.
string
tag
string
Example
[ { "id": 1, "name": "dog", "tag": "pet" }]default
Section titled “default”Unexpected error
Media typeapplication/json
object
code
required
integer format: int32
message
required
string
Examplegenerated
{ "code": 1, "message": "example"}