asilvadesigns / apifun

experimenting with fake api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dev

Environment
OS X    10.11.6
NodeJS  6.11.4
npm     3.10.10

NOTE: If you have NVM - run nvm use to set correct NodeJS version.

Build
  1. npm install to download dependencies.
  2. npm run prepare to run any build scripts.
  3. npm -- --host <host> --port <port> to run server or...
    • npm start will default to localhost:3000.
Tests

npm test will run tests using Mocha and Chai.

Reference

Documentation
Some HTTP status codes
  • 200 – ok: request was successful
  • 201 - created: a new resource was successfully created
  • 204 - server successfully processed request, but is not returning any content
  • 400 - bad request: the request was malformed or invalid
  • 404 - not found: request resource could not be found
  • 409 - request could not be completed due to a conflict with the current state of the target resource
  • 500 - internal server error: unknown server error has occurred

About

experimenting with fake api

License:MIT License


Languages

Language:JavaScript 100.0%