Skip to content
Thanos API: API that returns Thanos quotes. Built in ExpressJS in Node
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
quotes Adding an older but not in movie quote Jun 2, 2019
views
.gitignore Initial Commit Mar 30, 2019
LICENSE Create LICENSE Apr 4, 2019
README.md Endgame is out Apr 28, 2019
handlers.js Improved /random/<integer> algorithm to be a lot more efficient Mar 31, 2019
index.js Removing unneeded second import of quotes file Mar 31, 2019
package-lock.json Initial Commit Mar 30, 2019
package.json adding start command Mar 30, 2019

README.md

Thanos Quotes API!

Built using ExpressJS framework in NodeJS.

Endpoints:

Grab a random Thanos quote!

https://thanosapi.herokuapp.com/random/

Grab a specified number of random Thanos quotes!

https://thanosapi.herokuapp.com/random/<integer>/

Grab all Thanos quotes!

https://thanosapi.herokuapp.com/all/

How these quotes were collected

Googled thanos quotes and wrote a python script through which I could just input a quote and it will automatically form json with correct id and append it to the quotes file.

Make a contribution!

Would love to make the api better and more efficient if someone is willing to help. Also if I missed a thanos quote, submit a Pull Request, with the quote added to the quotes/quotes.json file. Make sure the quote is in this format:

{
  "id": <last joke id + 1>,
  "quote": "<the quote>"
}

Run Locally

  • Clone the repo
  • npm install
  • npm start
  • Visit localhost:3000 on your browser!
You can’t perform that action at this time.