{"id":13543846,"url":"https://github.com/ElemeFE/restc","last_synced_at":"2025-04-02T13:31:09.558Z","repository":{"id":12893348,"uuid":"73067259","full_name":"ElemeFE/restc","owner":"ElemeFE","description":"A server-side middleware to visualize REST requests.","archived":false,"fork":false,"pushed_at":"2022-12-09T23:32:59.000Z","size":505,"stargazers_count":1352,"open_issues_count":11,"forks_count":113,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-03-30T05:02:29.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://elemefe.github.io/restc/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElemeFE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-07T10:25:55.000Z","updated_at":"2025-03-15T18:47:55.000Z","dependencies_parsed_at":"2023-01-13T17:11:31.881Z","dependency_job_id":null,"html_url":"https://github.com/ElemeFE/restc","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Frestc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Frestc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Frestc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Frestc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElemeFE","download_url":"https://codeload.github.com/ElemeFE/restc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246823675,"owners_count":20839760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T11:00:37.103Z","updated_at":"2025-04-02T13:31:04.540Z","avatar_url":"https://github.com/ElemeFE.png","language":"HTML","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"/docs/images/logo.svg\" alt=\"restc\" width=\"150\" height=\"150\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/circleci/project/github/ElemeFE/restc.svg\" alt=\"CircleCI (all branches)\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://elemefe.github.io/restc/intro/\"\u003e中文文档\u003c/a\u003e\n\u003c/p\u003e\n\n## Introduction\n\nrestc is an HTTP server middleware, aiming to enhance debugging experience on RESTful APIs.\n\nIt can be easily integrated with popular HTTP frameworks. You will see:\n\n- formatted JSON responses in the browser\n- a debug panel with which you can send GET, POST, PUT, PATCH and DELETE requests directly in the browser\n\nYou can even share a request by sharing its URL directly to others and everything will be automatically filled in the panel.\n\n## Getting Started\n\n    npm install --save restc\n\nUse the middleware\n\n```js\nconst restc = require('restc');\n// for express\napp.use(restc.express());\n// for koa\napp.use(restc.koa());\n// ...and koa2\napp.use(restc.koa2());\n// for hapi\nserver.register(restc.hapi)\n// for hapi of legacy version\nserver.register([{\n  register: restc.hapiLegacy\n}], (err) =\u003e {\n  if (err) {\n    throw err\n  }\n})\n```\n","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElemeFE%2Frestc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElemeFE%2Frestc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElemeFE%2Frestc/lists"}