Giter Club home page Giter Club logo

dapeng-mesh's Introduction

dapeng-mesh

Language Maven Central GitHub release DockerHub License

基于netty的异步网关和service-mesh方案

详细使用指南

使用指南

dapeng-mesh 开启或者关闭鉴权的环境变量

默认是开启鉴权,可以使用如下环境变量关闭 API 接口鉴权。

soa.open.auth.enable=false

//env
soa_open_auth_enable=false

鉴权方案见: 服务网关鉴权方案

如果开启鉴权,需要启动 dapeng-mesh-auth 服务进行认证 详情请见: dapeng-mesh-auth

选择 zookeeper 连接

soa.zookeeper.host=192.168.10.12:2181

请求示例,不携带API Key

curl 'https://127.0.0.1:800/api/com.to.serviceName/1.0.0/methodName.html?cookieStoreId=1234' \
--data 'parameter={"body":{"code":"SKU_FINANCE_TYPE"}}'

-- 返回包:
{"success":  -- 对应服务返回的数据
	[ {	"id":40894,"parentCode":"", ......},
		......
	]
,"status":1  -- status 为1 表示请求成功
}

失败返回包:
{"responseCode":"error-code",
 "responseMsg":"error-message",
 "success": {},
 "status":0	-- status 为 0 表示请求失败
 }

携带 APIKey

curl 'http://gateway.xxx.cn/api/{serviceName}/{version}/{methodName}/{apikey}?timestamp=1525946628000&secret2=xxxxxx'
--data 'parameter={"body":{"code":"SKU_FINANCE_TYPE"}}'

secret2=MD5(apikey+tmiestamp+password+parameter)

dapeng-mesh's People

Contributors

barbazoo avatar huyongjie avatar leihuazhe avatar struggleyang avatar wangzaixiang avatar zhangever avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.