Skip to content
Declarative, stateful, fast, and reusable HTTP mocks
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
src
testutils
.gitignore
.npmignore
LICENSE.txt
README.md
jest.config.js
jest.setup.js
package-lock.json
package.json

README.md

Endpoint Imposter

Just create a file containing your mocks,

// mocks.js
module.exports = [
  {
    request: { path: '/todos' },
    response: { json: ['a', 'b', 'c'] },
  }
]

tell Endpoint Imposter where to find this file,

$ npx endpoint-imposter --port 3000 --mocks mocks.js

and enjoy your mocked server!

$ curl http://localhost:3000/sessionId/todos     
["a","b","c"]%

For a detailed description and more examples, please check out 📖 the documentation.

You can’t perform that action at this time.