{"id":22140939,"url":"https://github.com/dapeng-soa/dapeng-mesh","last_synced_at":"2026-04-27T12:03:09.701Z","repository":{"id":45363285,"uuid":"145813188","full_name":"dapeng-soa/dapeng-mesh","owner":"dapeng-soa","description":"Dapeng Async Gateway","archived":false,"fork":false,"pushed_at":"2021-12-17T20:03:38.000Z","size":313,"stargazers_count":0,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-29T16:28:43.095Z","etag":null,"topics":["api-gateway","async","dapeng","dapeng-soa","netty","service-mesh"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dapeng-soa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-23T06:51:26.000Z","updated_at":"2024-08-23T12:18:46.000Z","dependencies_parsed_at":"2022-09-01T21:02:38.569Z","dependency_job_id":null,"html_url":"https://github.com/dapeng-soa/dapeng-mesh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapeng-soa%2Fdapeng-mesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapeng-soa%2Fdapeng-mesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapeng-soa%2Fdapeng-mesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapeng-soa%2Fdapeng-mesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dapeng-soa","download_url":"https://codeload.github.com/dapeng-soa/dapeng-mesh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245258213,"owners_count":20585977,"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":["api-gateway","async","dapeng","dapeng-soa","netty","service-mesh"],"created_at":"2024-12-01T21:08:43.682Z","updated_at":"2026-04-27T12:03:04.678Z","avatar_url":"https://github.com/dapeng-soa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dapeng-mesh\n\n[![Language](https://img.shields.io/badge/language-Java-orange.svg)](https://www.oracle.com)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.dapeng-soa/dapeng-parent/badge.svg)](https://search.maven.org/search?q=com.github.dapeng-soa)\n[![GitHub release](https://img.shields.io/github/release/dapeng-soa/dapeng-soa.svg)](https://github.com/dapeng-soa/dapeng-soa/releases)\n[![DockerHub](https://img.shields.io/badge/docker-dapengsoa-yellow.svg)](https://hub.docker.com/r/dapengsoa/dapeng-container/)\n[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)\n\n基于`netty`的异步网关和`service-mesh`方案\n\n## 详细使用指南\n\n[使用指南](USER_GUIDE.md)\n\n\n### dapeng-mesh 开启或者关闭鉴权的环境变量\n\n\n\u003e 默认是开启鉴权，可以使用如下环境变量关闭 `API` 接口鉴权。\n\n```\nsoa.open.auth.enable=false\n\n//env\nsoa_open_auth_enable=false\n```\n\n\u003e鉴权方案见: [服务网关鉴权方案](https://github.com/dapeng-soa/dapeng-soa/wiki/dapeng-mesh%E9%89%B4%E6%9D%83%E6%96%B9%E6%A1%88)\n\n\u003e 如果开启鉴权,需要启动 dapeng-mesh-auth 服务进行认证\n\u003e 详情请见: [dapeng-mesh-auth](https://github.com/dapeng-soa/dapeng-mesh-auth)\n\n### 选择 zookeeper 连接\n\n```\nsoa.zookeeper.host=192.168.10.12:2181\n\n```\n\n## 请求示例，不携带API Key\n```\ncurl 'https://127.0.0.1:800/api/com.to.serviceName/1.0.0/methodName.html?cookieStoreId=1234' \\\n--data 'parameter={\"body\":{\"code\":\"SKU_FINANCE_TYPE\"}}'\n\n-- 返回包：\n{\"success\":  -- 对应服务返回的数据\n\t[ {\t\"id\":40894,\"parentCode\":\"\", ......},\n\t\t......\n\t]\n,\"status\":1  -- status 为1 表示请求成功\n}\n\n失败返回包：\n{\"responseCode\":\"error-code\",\n \"responseMsg\":\"error-message\",\n \"success\": {},\n \"status\":0\t-- status 为 0 表示请求失败\n }\n```\n\n## 携带 APIKey\n```\ncurl 'http://gateway.xxx.cn/api/{serviceName}/{version}/{methodName}/{apikey}?timestamp=1525946628000\u0026secret2=xxxxxx'\n--data 'parameter={\"body\":{\"code\":\"SKU_FINANCE_TYPE\"}}'\n\nsecret2=MD5(apikey+tmiestamp+password+parameter)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapeng-soa%2Fdapeng-mesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdapeng-soa%2Fdapeng-mesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapeng-soa%2Fdapeng-mesh/lists"}