Skip to content

API is to return a surprising response, according to the parameters passed by the client using node.js

Notifications You must be signed in to change notification settings

NofarVered/RestFul_Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to “surprise me!” API. The purpose of the API is to return a surprising response, according to the parameters passed by the client. The surprising response will be chosen from a list of surprising response types, each type has its own internal logic and conditions.

  • Chuck Norris Joke (user’s birth year is 2000 or before)
  • Kanye West Quote (user’s birth year is after 2000 and the user’s first name doesn’t start with ‘A’ or ‘Z’)
  • User Name’s Sum (user’s first name doesn’t start with ‘Q’)
  • panda-facts (user’s name is Nofar Vered)

In order to run the code, write the commands:

  1. npm install
  2. npm start

For tests (by mocha&chai):

  1. npm test

About

API is to return a surprising response, according to the parameters passed by the client using node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published