Nietzsche's Preposterous Moustache

npm

Need private packages and team management tools?Check out npm Orgs. »

stub-server-with-ui

0.5.9 • Public • Published

Stub Server with UI

Development tool for serving static json files or custom HTTP errors with a user-friendly UI and developer-friendly API - useful for local development and end to end testing.

An example of stub endpoints configuration can be found in stub-server.json:

{
  "stubsPath": "stubs",
  "endpoints": [
    {
      "id": "id1",
      "method": "GET",
      "url": "simple-get",
      "stubFilePaths": ["stub1.json"]
    },
    {
      "id": "id2",
      "method": "GET",
      "url": "get/with/params",
      "queryParams": {
        "param1": "value1-exact-match"
      },
      "stubFilePaths": ["stub2.json", "stub3.json"]
    },
    {
      "id": "id3",
      "method": "POST",
      "url": "post/url",
      "postBodyParams": {
        "param1": "value1-exact-match",
        "param2": "value2-exact-match"
      },
      "stubFilePaths": ["stub4.json"]
    }
  ]
}```

install

npm i stub-server-with-ui

Downloadsweekly downloads

62

version

0.5.9

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability