Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

MonPlan/api-simulator

Repository files navigation

API Simulator

JavaScript Style Guide

API Server to simulate broken routes as status codes. Awesome for Frontend Developement

Try it out at: api-sim.now.sh

Currently takes in Query Params

Query Definition
status The status code to use to return

For example:

Error 404: https://api-sim.now.sh?status=404

API Calls

Base URI: api-sim.now.sh

GET /?status={statusCode}
{
  status: {
    code: statusCode # or 200 by default
    msg: #status message
  }
}
POST /?status={statusCode}

POST body (application/json)

{
  // whatever you want
}
{
  status: {
    code: statusCode # or 200 by default
    msg: #status message
  }
  ...your response
}

LICENSE

This is licensed under MIT

powered by monPlan

About

API Server to Test out Broken Routes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published