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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?