api-stub-server

Use this to stub REST api when testing

Usage no npm install needed!

<script type="module">
  import apiStubServer from 'https://cdn.skypack.dev/api-stub-server';
</script>

README

api-stub-server

A simple http stub server designed for use while developing and testing applications that consume external HTTP based APIs.

Installation

To install globally

npm install -g api-stub-server

Usage

To start the basic server

api-stub-server

To start using some simple sample data

api-stub-server -s

curl http://localhost/api/value/1

Docker

npm run debug