public
get a fact about cats, a meow fact
Changed onBy passing in the appropriate options, you can recieve a specific or more than one fact.
get/
Request
- Base URLhttps://meowfacts.herokuapp.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
factIDstring
pass an optional id to call a specific fact
countinteger
number of facts to return
lang'eng' | 'ukr' | 'rus'
requested locale to retrieve the cat fact in.
Response
You just got some meowfacts
Example response
[
{
"data": [
"In ancient Egypt, killing a cat was a crime punishable by death."
]
}
]Changes
- info
api operation id
queryFactsremoved and replaced withdefaultRoot
- info
- info
added the new optional
queryrequest parameterlang - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info