-
-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
ZYROUGE edited this page Apr 13, 2022
·
6 revisions
- GitHub Pages:
https://zyrouge.github.io/upright-quotes/api
- Github Raw:
https://raw.githubusercontent.com/zyrouge/upright-quotes/gh-pages/api
- JsDelivr:
https://cdn.jsdelivr.net/gh/zyrouge/upright-quotes@gh-pages/api
- Method:
GET
- Path:
/meta.json
- Success Response:
IMeta
- Method:
GET
- Path:
/quotes/{index}.json
- Parameters:
-
index
:number
- Index of the quote.
-
- Success Response:
IQuote
- Method:
GET
- Path:
/quotes/{index}.png
- Parameters:
-
index
:number
- Index of the quote.
-
- Success Response:
Image
- Method:
GET
- Path:
/quotes/all.json
- Success Response:
IQuote[]
{
size: number, // Total size of quotes
generatedAt: number, // Milliseconds from epoch
}
{
index: number,
quote: string,
author: string,
color: {
primary: string, // Hex code (eg. #000000)
contrast: string // Hex code (eg. #ffffff)
}
}