random-quote-api
Live Demo: https://randomquote-api.herokuapp.com/api/random-quote
Deployment
To deploy as a new heroku site:
- Install heroku for your operating system and login
- Clone repo
cd
to project cloned repo- Test locally with
heroku local web -p 8000
or-p ####
if 8000 is not free heroku create [appname]
to create the new heroku site, choose anappname
or omit for a random name.- Deploy site by pushing to the heroku remote created in the previous step
git push heroku master
- Navigate to https://appname.herokuapp.com/api/random-quote once deployment has completed in your command line
Usage: retrieve a quote object
REQUEST
GET /api/random-quote
RESPONSE (200 OK)
{
"quote":"Have the courage to face a difficulty lest it kick you harder than you bargain for.",
"author":"Stanislaus I",
"category":"courage"
}