A server-side middleware to visualize REST requests.
HTML JavaScript Shell
Latest commit 3a566b4 Dec 11, 2016 @lujjjh lujjjh 0.0.4
Permalink
Failed to load latest commit information.
docs Fix #3 Nov 27, 2016
examples Update examples Nov 17, 2016
faas Enhance horizontal scrolling experience Dec 2, 2016
lib Update the condition to handle requests which fixes #10 Dec 11, 2016
.editorconfig Initial commit Nov 14, 2016
.gitignore Update examples Nov 17, 2016
LICENSE Initial commit Nov 14, 2016
README.md Fix type Dec 11, 2016
index.js Add extra newline after "use strict" Nov 28, 2016
package.json 0.0.4 Dec 11, 2016

README.md

restc

中文文档

Introduction

restc is an HTTP server middleware, aiming to enhance debugging experience on RESTful APIs.

It can be easily integrated with popular HTTP frameworks. You will see:

  • formatted JSON responses in the browser
  • a debug panel with which you can send GET, POST, PUT, PATCH and DELETE requests directly in the browser

You can even share a request by sharing its URL directly to others and everything will be automatically filled in the panel.

Getting Started

npm install --save restc

Use the middleware

const restc = require('restc');
// for express
app.use(restc.express());
// for koa
app.use(restc.koa());
// ...and koa2
app.use(restc.koa2());