An API that provides you with Sun Tzu quotes
- sun-tzu-quotes - The main library used in making of this API
GET /quotesReturns an array of all the quotes
GET /quote/${id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of quote to fetch |
Returns 200 and the quote of that ID if the ID is valid
Returns 404 if the ID is invalid
GET /quoteReturns a random quote
Also, dont forget to checkout the Swagger Documentation
Clone the project
git clone https://github.com/OneByteGH/SunTzuAPIGo to the project directory
cd SunTzuAPIInstall dependencies
npm installStart the server
node index.js