Quotes API
Api address : https://mighty-poet.glitch.me/api.quotes/random
Method : GET
Required Params : none
Returns : one random quote
Format : json
Example : https://mighty-poet.glitch.me/api.quotes/random
Example data:
{
"_id": "5a1ea59b16db4f1a7da7e053",
"quote": "Self-complacency is fatal to progress.",
"author": "Margaret Sangster"
}
Api address : https://mighty-poet.glitch.me/api.quotes/authors
Method : Get
Required params : none
Returns : list of authors
Format : json
Api address : https://mighty-poet.glitch.me/api.quotes/author-starts-with
Method : Get
Required params : startswith - string
Returns : list of authors that start with parameter
Format : json
Example : https://mighty-poet.glitch.me/api.quotes/author-starts-with?startswith=a
Api address : https://mighty-poet.glitch.me/api.quotes/author
Method : Get
Required params : author - string
Returns : list of quotes by given author
Format : json
Example : https://mighty-poet.glitch.me/api.quotes/author?author=Abraham Lincoln
Development and Build
Install packages Create .env file with Database and Port
Dev
Start server - npm run startdev Start client - npm run clientdev
Build