/Quote-Vuer

Random quotes - Vuejs client - Node Mongoose API

Primary LanguageJavaScript

Build Status

Quotes API

Get random quote

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"
}

Get list of all authors

Api address : https://mighty-poet.glitch.me/api.quotes/authors

Method : Get

Required params : none

Returns : list of authors

Format : json

Example : https://mighty-poet.glitch.me/api.quotes/authors

Get List of all authors that start with given parameter

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

Get all quotes by given author parameter

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