A simple API to retrieve some quotes of Attack On Titan
🌐 Website and demo: https://aot-quotes-api.herokuapp.com/
Check out python version of this project by Nishant Sensei : https://github.com/thenishantsapkota/aot-api-py
git clone https://github.com/thestuti/aot-api
cd aot-api
- create .env file, add variables according to .env.example
cp .env.example .env
npm install
npm run dev
https://aot-quotes-api.herokuapp.com/
Get a random quote in this format:
{
"id": 26,
"quote": "Everyone can make a choice after they have learned what it will result in. It is so easy to say we should have done it this way afterwards. But you can’t know what your choice will result in before actually choosing."
}
Returns an array with {number}
quotes e.g. GET /random?count=5
.
[
{
"id": 61,
"quote": "Asking me for compassion is mistaken. After all I have no heart or time to spare."
},
{
"id": 41,
"quote": "Some scouts’ lives are more valuable than others, only those dumb enough to acknowledge that join us."
},
{
"id": 23,
"quote": "I don’t like the terms good person or bad person because it’s impossible to be entirely good to everyone, or entirely bad to everyone. To some, you are a good person, while to others you are a bad person."
},
{
"id": 27,
"quote": "I was, I am, and I remain a soldier, sworn to devote my heart and soul to the restoration of humankind. There is no greater glory than dying for that belief!"
},
{
"id": 20,
"quote": "To surpass monsters, you must be willing to abandon your humanity."
}
]
If you want to add some quotes, just add them in quotes/quotes.js
file and do a pull request !
Contributors
- Better UI
- Make site responsive for mobile
- Add authors in API