BasicCat Facts
Cat Facts
These endpoints allow you to retrieve all cat facts, a single cat fact by its id, or a random cat fact. The response will be an array of JSON objects if you request all facts, or a single JSON object if you request a single fact or a random fact.
The Cat Fact model
Prop | Type | Default |
---|---|---|
id | integer | - |
text | string | - |
All cat facts
GET/cat-facts
Retrieve all cat facts.
Single cat fact
GET/cat-facts/<id>
Retrieve a single cat fact by its id.
Random cat fact
GET/cat-facts/random
Retrieve a random cat fact.