restc

A server-side middleware to visualize REST requests.

  • Owner: ElemeFE/restc
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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());
// for hapi
server.register(restc.hapi)
// for hapi of legacy version
server.register([{
  register: restc.hapiLegacy
}], (err) => {
  if (err) {
    throw err
  }
})

Main metrics

Overview
Name With OwnerElemeFE/restc
Primary LanguageHTML
Program languageHTML (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2016-11-07 10:25:55
Pushed At2022-12-09 23:32:59
Last Commit At2020-12-11 15:31:39
Release Count8
Last Release Namev0.5.0 (Posted on )
First Release Name0.0.2 (Posted on )
用户参与
Stargazers Count1.4k
Watchers Count50
Fork Count112
Commits Count113
Has Issues Enabled
Issues Count22
Issue Open Count3
Pull Requests Count23
Pull Requests Open Count8
Pull Requests Close Count7
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private