Simple nodejs (expressjs) API example.
To get you started you can simply clone the node-mock-api repository and install the dependencies.
git clone https://github.com/martinbilek/node-mock-api.git
cd node-mock-api
npm install
npm start
Now browse to the app at http://localhost:8989/
.
GET http://localhost:8989/heroes/
# get list of heroes
GET http://localhost:8989/heroes/15
# get detail of hero with id 15
POST http://localhost:8989/heroes/15
# update hero with id 15