All Projects → DTeam-Top → Dgate

DTeam-Top / Dgate

Licence: apache-2.0
an API Gateway based on Vert.x

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects

Projects that are alternatives of or similar to Dgate

Serverless Sinatra Sample
Demo code for running Ruby Sinatra on AWS Lambda
Stars: ✭ 195 (-12.16%)
Mutual labels:  api-gateway
Vue Blog
🎉 基于vue全家桶 + element-ui 构建的一个后台管理集成解决方案
Stars: ✭ 208 (-6.31%)
Mutual labels:  mock
Openapi Backend
Build, Validate, Route, Authenticate and Mock using OpenAPI
Stars: ✭ 216 (-2.7%)
Mutual labels:  mock
Moleculer Web
🌍 Official API Gateway service for Moleculer framework
Stars: ✭ 198 (-10.81%)
Mutual labels:  api-gateway
Openapi Mock
OpenAPI mock server with random data generation
Stars: ✭ 202 (-9.01%)
Mutual labels:  mock
Yoyo
A dead simple comment engine built on top of AWS lambda and React, alternative comment service to Disqus.
Stars: ✭ 210 (-5.41%)
Mutual labels:  api-gateway
Kanali
A Kubernetes Native API Management Solution
Stars: ✭ 192 (-13.51%)
Mutual labels:  api-gateway
Goku Api Gateway
A Powerful HTTP API Gateway in pure golang!Goku API Gateway (中文名:悟空 API 网关)是一个基于 Golang开发的微服务网关,能够实现高性能 HTTP API 转发、服务编排、多租户管理、API 访问权限控制等目的,拥有强大的自定义插件系统可以自行扩展,并且提供友好的图形化配置界面,能够快速帮助企业进行 API 服务治理、提高 API 服务的稳定性和安全性。
Stars: ✭ 2,773 (+1149.1%)
Mutual labels:  api-gateway
Ts Auto Mock
Typescript transformer to unlock automatic mock creation for interfaces and classes
Stars: ✭ 204 (-8.11%)
Mutual labels:  mock
Express Gateway
A microservices API Gateway built on top of Express.js
Stars: ✭ 2,583 (+1063.51%)
Mutual labels:  api-gateway
Aws Mobile React Native Starter
AWS Mobile React Native Starter App https://aws.amazon.com/mobile
Stars: ✭ 2,247 (+912.16%)
Mutual labels:  api-gateway
Sample Zuul Filters
Samples of custom Zuul 1 filters for use in Spring Cloud Netflix
Stars: ✭ 201 (-9.46%)
Mutual labels:  api-gateway
Pegomock
Pegomock is a powerful, yet simple mocking framework for the Go programming language
Stars: ✭ 215 (-3.15%)
Mutual labels:  mock
Charlatan
Go Interface Mocking Tool
Stars: ✭ 195 (-12.16%)
Mutual labels:  mock
Apilogs
Easy logging and debugging for Amazon API Gateway and AWS Lambda Serverless APIs
Stars: ✭ 216 (-2.7%)
Mutual labels:  api-gateway
Product Microgateway
A cloud native, developer centric and decentralized API gateway for microservices
Stars: ✭ 194 (-12.61%)
Mutual labels:  api-gateway
Python Mocket
a socket mock framework - for all kinds of socket animals, web-clients included
Stars: ✭ 209 (-5.86%)
Mutual labels:  mock
Mockery
A mock code autogenerator for Golang
Stars: ✭ 3,138 (+1313.51%)
Mutual labels:  mock
Fake Xrm Easy
The testing framework for Dynamics CRM and Dynamics 365 which runs on an In-Memory context and deals with mocks or fakes for you
Stars: ✭ 216 (-2.7%)
Mutual labels:  mock
Nx Admin
👍 A magical 🐮 ⚔ vue admin,记得star
Stars: ✭ 2,497 (+1024.77%)
Mutual labels:  mock

dgate:an API Gateway based on Vert.x

badge

dgate是基于Vertx的API Gateway。运行dgate的命令如下:

java -jar dgate-version-fat.jar -Dconf=conf

其中,conf中定义了路由规则,下面是一个简单的例子:

apiGateway {
    port = 7000
    host = 'localhost'
    urls {
        "/url1" {
            required = ['param1', 'param2']
            methods = ['GET', 'POST']
            upstreamURLs = [
                [host: 'localhost', port: 8080, url: '/test']
            ]
        }
        "/url2" {
            required = ['param1', 'param2']
            methods = ['GET', 'POST']
            upstreamURLs = [
                [host: 'localhost', port: 8080, url: '/test1'],
                [host: 'localhost', port: 8080, url: '/test2']
            ]
        }
    }
}

dgate的主要特性:

  • 轻量级配置,无需后端DB
  • DSL为groovy语法
  • 支持mock:HTTP和EventBusBridge
  • 支持url的转发和组合(即一个外部url对应后端多个url),并支持before(向后端发送请求前)和after(收到后端全部响应后)闭包。
  • 支持request透传:form和upload用这种模式。
  • 支持URL Path Parameters
  • 支持JWT
  • 支持CORS
  • 灵活的login配置(此时,在启动时需要先设置环境变量,请参见手册)
  • 支持断路器
  • 灵活的请求缓存策略
  • 支持集群

详细的用户指南请访问这里

开发指南

  • git clone
  • ./gradlew shadowJar,生成dgate的fatjar
  • ./gradlew test,运行测试代码

在发起Pull Request时,请同时提交测试代码,并保证现有测试代码【对于测试,我们推荐Spock】能全部通过,;)。

友情支持

如果觉得我们的工具对您有帮助,可以考虑支持我们,;)

情怀支持

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].