simple-express-mock-server
Simple Express.js Mock Server
Last updated 3 years ago by kakchan .
ISC · Original npm · Tarball · package.json
$ cnpm install simple-express-mock-server 
SYNC missed versions from official npm registry.

####API (mock.js) mock.addMockRequests() - allow you to create a mock request(s)

  addMockRequests({
    "POST /todo" : { ok: true, message: 'Success' },
    "GET /todos": [{ task: 'Task 1' }, { task: 'Task 2' } ]
  }).then(done);

####Endpoints GET _requests: to view all the available requests POST _create: create a mock request

Current Tags

  • 0.0.4                                ...           latest (3 years ago)

4 Versions

  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |