{"id":15091522,"url":"https://github.com/egomobile/node-swagger-proxy","last_synced_at":"2025-10-06T11:30:34.405Z","repository":{"id":65524941,"uuid":"504600843","full_name":"egomobile/node-swagger-proxy","owner":"egomobile","description":"Extension for @egomobile/http-server, which connects to multiply Swagger / OpenAPI instances and merge their documents to one.","archived":true,"fork":false,"pushed_at":"2022-08-19T07:27:14.000Z","size":416,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-09-25T10:42:00.742Z","etag":null,"topics":["docker","file","http","http-server","kubernetes","merge","microservice","nodejs","openapi3","proxy","swagger-ui"],"latest_commit_sha":null,"homepage":"https://egomobile.github.io/node-swagger-proxy/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egomobile.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-06-17T16:21:27.000Z","updated_at":"2024-05-22T17:48:19.000Z","dependencies_parsed_at":"2023-01-27T08:01:22.491Z","dependency_job_id":null,"html_url":"https://github.com/egomobile/node-swagger-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egomobile%2Fnode-swagger-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egomobile%2Fnode-swagger-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egomobile%2Fnode-swagger-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egomobile%2Fnode-swagger-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egomobile","download_url":"https://codeload.github.com/egomobile/node-swagger-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877262,"owners_count":16554852,"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":["docker","file","http","http-server","kubernetes","merge","microservice","nodejs","openapi3","proxy","swagger-ui"],"created_at":"2024-09-25T10:41:35.254Z","updated_at":"2025-10-06T11:30:29.105Z","avatar_url":"https://github.com/egomobile.png","language":"TypeScript","readme":"[![npm](https://img.shields.io/npm/v/@egomobile/swagger-proxy.svg)](https://www.npmjs.com/package/@egomobile/swagger-proxy)\n[![last build](https://img.shields.io/github/workflow/status/egomobile/node-swagger-proxy/Publish)](https://github.com/egomobile/node-swagger-proxy/actions?query=workflow%3APublish)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/egomobile/node-swagger-proxy/pulls)\n\n# @egomobile/swagger-proxy\n\n\u003e Extension for [@egomobile/http-server](https://github.com/egomobile/node-http-server), which connects to multiply [Swagger / OpenAPI](https://swagger.io/docs/specification/about/) instances and merge their documents to one.\n\n## Install\n\nExecute the following command from your project folder, where your\n`package.json` file is stored:\n\n```bash\nnpm install --save @egomobile/swagger-proxy\n```\n\n## Usage\n\n```typescript\nimport createServer from \"@egomobile/http-server\";\nimport { setupSwaggerProxy } from \"@egomobile/swagger-proxy\";\n\nasync function main() {\n  const app = createServer();\n\n  setupSwaggerProxy(app, {\n    baseDocument: {\n      info: {\n        title: \"My merged API\",\n        version: \"1.0.0\",\n      },\n    },\n\n    sources: [\n      {\n        url: \"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/link-example.json\",\n      },\n      {\n        url: \"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/callback-example.yaml\",\n      },\n      {\n        url: \"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml\",\n      },\n    ],\n  });\n\n  await app.listen(8080);\n\n  const baseURL = `http://localhost:${app.port}/swagger`;\n\n  console.log(\"You should now be able to access documentation at:\");\n  console.log(`- ${baseURL}`);\n\n  console.log();\n\n  console.log(\"You can download documentation as files from:\");\n  console.log(`- JSON: ${baseURL}/json`);\n  console.log(`- YAML: ${baseURL}/yaml`);\n}\n\nmain().catch(console.error);\n```\n\n## Documentation\n\nThe API documentation can be found\n[here](https://egomobile.github.io/node-swagger-proxy/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegomobile%2Fnode-swagger-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegomobile%2Fnode-swagger-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegomobile%2Fnode-swagger-proxy/lists"}