restc

A server-side middleware to visualize REST requests.

Github星跟踪图

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
  }
})

主要指标

概览
名称与所有者ElemeFE/restc
主编程语言HTML
编程语言HTML (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2016-11-07 18:25:55
推送于2022-12-10 07:32:59
最后一次提交2020-12-11 15:31:39
发布数8
最新版本名称v0.5.0 (发布于 )
第一版名称0.0.2 (发布于 )
用户参与
星数1.3k
关注者数49
派生数112
提交数113
已启用问题?
问题数22
打开的问题数3
拉请求数23
打开的拉请求数8
关闭的拉请求数7
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?