All Projects → thanhson1085 → Swagger Combined

thanhson1085 / Swagger Combined

Licence: mit
Combines all swagger documents in microservices

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Swagger Combined

Danby
A webserver that's also a grpc proxy for browsers
Stars: ✭ 26 (-75.93%)
Mutual labels:  microservice, proxy
Dubbo Go Pixiu
Based on the proxy gateway service of dubbo-go, it solves the problem that the external protocol calls the internal Dubbo cluster. At present, it supports HTTP and gRPC[developing].
Stars: ✭ 124 (+14.81%)
Mutual labels:  microservice, proxy
Nassh Relay
Relay Server for the Secure Shell Chromium plugin
Stars: ✭ 118 (+9.26%)
Mutual labels:  microservice, proxy
Tree Gateway
This is a full featured and free API Gateway
Stars: ✭ 160 (+48.15%)
Mutual labels:  microservice, proxy
Rocky
Full-featured, middleware-oriented, programmatic HTTP and WebSocket proxy for node.js
Stars: ✭ 357 (+230.56%)
Mutual labels:  microservice, proxy
Manba
HTTP API Gateway
Stars: ✭ 3,000 (+2677.78%)
Mutual labels:  microservice, proxy
Confluence
Torrent client as a HTTP service
Stars: ✭ 126 (+16.67%)
Mutual labels:  microservice, proxy
Servicecomb Mesher
A high performance service mesh implementation written in go
Stars: ✭ 676 (+525.93%)
Mutual labels:  microservice, proxy
Docker Nginx Image Proxy
on the fly image cropping with gravity, resize and compression microservice
Stars: ✭ 79 (-26.85%)
Mutual labels:  microservice, proxy
Surging.hero
基于Surging框架实现的权限管理系统
Stars: ✭ 105 (-2.78%)
Mutual labels:  microservice
Wdaproxy
WebDriverAgent Proxy
Stars: ✭ 107 (-0.93%)
Mutual labels:  proxy
Forward Proxy
150 LOC Ruby forward proxy using only standard libraries.
Stars: ✭ 105 (-2.78%)
Mutual labels:  proxy
Dev Stuff
😎 Programming stuff for everyone. Collection of articles, videos about architecture, Domain Driven Design, microservices, testing etc.
Stars: ✭ 105 (-2.78%)
Mutual labels:  microservice
Libqtshadowsocks
A lightweight and ultra-fast shadowsocks library written in C++14 with Qt framework
Stars: ✭ 1,455 (+1247.22%)
Mutual labels:  proxy
Freeproxy
免费、高速的 V2Ray 代理和订阅。
Stars: ✭ 104 (-3.7%)
Mutual labels:  proxy
Serverless
⚡ Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! –
Stars: ✭ 41,584 (+38403.7%)
Mutual labels:  microservice
Spinal
A node.js microservices framework that designs for scalability, simple to code and easy to maintenance
Stars: ✭ 104 (-3.7%)
Mutual labels:  microservice
Earlyap
Proxy specifically available for AP scores to enable simple early access to your scores without any storing of your College Board account details or dealing with untrustable proxies.
Stars: ✭ 104 (-3.7%)
Mutual labels:  proxy
Pysocket
PySocket ,一个通过猴子补丁(monkey patch)动态修改 socket 的项目。在不修改源码的情况下给 socket 增加一些诸如限制客户端数量、前置代理之类的功能。让我们将 Monkey Patch 进行到底吧!
Stars: ✭ 108 (+0%)
Mutual labels:  proxy
V2ray Core
A platform for building proxies to bypass network restrictions.
Stars: ✭ 38,782 (+35809.26%)
Mutual labels:  proxy

Build Status

NPM

If you are building a microservice system and using Swagger.

This packet is able to help you combine all swagger documents to only one document.

For example, you have the swagger documents at http://service1/docs, http://service2/docs

This will help you combine all links above to only one link http://service/docs

NOTE: If you need Gulp, ES6 and somethings more, please see branch added_gulp

Installation & Run from Docker

docker run -d -p 3000:3000 thanhson1085/swagger-combined

Configuration file

See config/default.json as below:

{
    "list_url": [
        {
            "docs": "http://petstore.swagger.io/v2/swagger.json",
            "base_path": "http://petstore.swagger.io/v2",
            "route_match": ["/user*", "/pet*", "/store*"]
        }
    ],
    "info": { "title": "Example API", "version": "1.0" },
    "port": 3000
}
  • docs: swagger document links
  • base_path: Proxy Target
  • route_match: Routes for proxy

Please make note that you changed config/default.json to match all swagger document links you have

Installation & Run from Source Code

git clone https://github.com/thanhson1085/swagger-combined.git

Run:

cd swagger-combined
npm install
node index.js

Test

In the default, swagger-combined run on port 3000 and included swagger-ui. So you just run http://localhost:3000?url=http://localhost:3000/docs to see everything you need. Or you can see swagger api at http://localhost:3000/docs

Example & Demo

With config/default.json:

{
    "list_url": [
        {
            "docs": "http://petstore.swagger.io/v2/swagger.json",
            "base_path": "http://petstore.swagger.io/v2",
            "route_match": ["/user*", "/pet*", "/store*"]
        },
        {
            "docs": "https://angular-admin-seed.sonnguyen.ws/docs",
            "base_path": "https://angular-admin-seed.sonnguyen.ws",
            "route_match": ["/api/v1*"]
        }
    ],
    "info": { "title": "Example API", "version": "1.0" },
    "port": 3000
}

License (MIT)

Copyright (c) 2015 Nguyen Sy Thanh Son [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].