1 Star 0 Fork 69

istorkbox / DiscoveryGuide

forked from Nepxion / DiscoveryGuide 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
postman.json 23.85 KB
一键复制 编辑 原始数据 按行查看 历史
Nepxion 提交于 2020-03-18 16:09 . 修改脚本
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053
{
"info": {
"_postman_id": "cf16d585-798d-4643-84ef-518c335fba14",
"name": "Nepxion",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Discovery指南网关接口",
"item": [
{
"name": "Gateway网关调用示例",
"request": {
"method": "GET",
"header": [
{
"key": "n-d-version",
"value": "{\"discovery-guide-service-a\":\"1.0\", \"discovery-guide-service-b\":\"1.0\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-version-weight",
"value": "{\"discovery-guide-service-a\":\"1.0=90;1.1=10\", \"discovery-guide-service-b\":\"1.0=20;1.1=80\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-region",
"value": "qa",
"type": "text",
"disabled": true
},
{
"key": "n-d-region-weight",
"value": "dev=99;qa=1",
"type": "text",
"disabled": true
},
{
"key": "n-d-address",
"value": "{\"discovery-guide-service-a\":\"3001\", \"discovery-guide-service-b\":\"4002\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-env",
"value": "env1",
"type": "text",
"disabled": true
},
{
"key": "app-version",
"value": "2.0",
"type": "text",
"disabled": true
},
{
"key": "mobile",
"value": "13312345678",
"type": "text",
"disabled": true
},
{
"key": "user",
"value": "zhangsan",
"type": "text",
"disabled": true
},
{
"key": "trace-id",
"value": "c0zs78kcze5z",
"type": "text",
"disabled": true
},
{
"key": "span-id",
"value": "1589",
"type": "text",
"disabled": true
},
{
"key": "a",
"value": "1",
"type": "text",
"disabled": true
},
{
"key": "b",
"value": "2",
"type": "text",
"disabled": true
}
],
"url": {
"raw": "http://localhost:5001/discovery-guide-service-a/invoke/gateway",
"protocol": "http",
"host": [
"localhost"
],
"port": "5001",
"path": [
"discovery-guide-service-a",
"invoke",
"gateway"
]
}
},
"response": []
},
{
"name": "Gateway网关全链路侦测示例",
"request": {
"method": "POST",
"header": [
{
"key": "n-d-version",
"type": "text",
"value": "{\"discovery-guide-service-a\":\"1.1\", \"discovery-guide-service-b\":\"1.1\"}"
},
{
"key": "n-d-version-weight",
"type": "text",
"value": "{\"discovery-guide-service-a\":\"1.0=90;1.1=10\", \"discovery-guide-service-b\":\"1.0=20;1.1=80\"}",
"disabled": true
},
{
"key": "n-d-region",
"type": "text",
"value": "qa",
"disabled": true
},
{
"key": "n-d-region-weight",
"type": "text",
"value": "dev=99;qa=1",
"disabled": true
},
{
"key": "n-d-address",
"type": "text",
"value": "{\"discovery-guide-service-a\":\"3001\", \"discovery-guide-service-b\":\"4002\"}",
"disabled": true
},
{
"key": "n-d-env",
"type": "text",
"value": "env1",
"disabled": true
},
{
"key": "app-version",
"type": "text",
"value": "2.0",
"disabled": true
},
{
"key": "mobile",
"type": "text",
"value": "13312345678",
"disabled": true
},
{
"key": "user",
"type": "text",
"value": "zhangsan",
"disabled": true
},
{
"key": "trace-id",
"type": "text",
"value": "c0zs78kcze5z",
"disabled": true
},
{
"key": "span-id",
"type": "text",
"value": "1589",
"disabled": true
},
{
"key": "a",
"type": "text",
"value": "1",
"disabled": true
},
{
"key": "b",
"type": "text",
"value": "2",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\"serviceIdList\":[\"discovery-guide-service-b\"]}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5001/discovery-guide-service-a/inspector/inspect",
"protocol": "http",
"host": [
"localhost"
],
"port": "5001",
"path": [
"discovery-guide-service-a",
"inspector",
"inspect"
]
}
},
"response": []
},
{
"name": "Zuul网关全链路侦测示例",
"request": {
"method": "POST",
"header": [
{
"key": "n-d-version",
"type": "text",
"value": "{\"discovery-guide-service-a\":\"1.1\", \"discovery-guide-service-b\":\"1.1\"}"
},
{
"key": "n-d-version-weight",
"type": "text",
"value": "{\"discovery-guide-service-a\":\"1.0=90;1.1=10\", \"discovery-guide-service-b\":\"1.0=20;1.1=80\"}",
"disabled": true
},
{
"key": "n-d-region",
"type": "text",
"value": "qa",
"disabled": true
},
{
"key": "n-d-region-weight",
"type": "text",
"value": "dev=99;qa=1",
"disabled": true
},
{
"key": "n-d-address",
"type": "text",
"value": "{\"discovery-guide-service-a\":\"3001\", \"discovery-guide-service-b\":\"4002\"}",
"disabled": true
},
{
"key": "n-d-env",
"type": "text",
"value": "env1",
"disabled": true
},
{
"key": "app-version",
"type": "text",
"value": "2.0",
"disabled": true
},
{
"key": "mobile",
"type": "text",
"value": "13312345678",
"disabled": true
},
{
"key": "user",
"type": "text",
"value": "zhangsan",
"disabled": true
},
{
"key": "trace-id",
"type": "text",
"value": "c0zs78kcze5z",
"disabled": true
},
{
"key": "span-id",
"type": "text",
"value": "1589",
"disabled": true
},
{
"key": "a",
"type": "text",
"value": "1",
"disabled": true
},
{
"key": "b",
"type": "text",
"value": "2",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\"serviceIdList\":[\"discovery-guide-service-b\"]}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5002/discovery-guide-service-a/inspector/inspect",
"protocol": "http",
"host": [
"localhost"
],
"port": "5002",
"path": [
"discovery-guide-service-a",
"inspector",
"inspect"
]
}
},
"response": []
},
{
"name": "Zuul网关调用示例",
"request": {
"method": "GET",
"header": [
{
"key": "n-d-version",
"value": "{\"discovery-guide-service-a\":\"1.0\", \"discovery-guide-service-b\":\"1.0\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-version-weight",
"value": "{\"discovery-guide-service-a\":\"1.0=90;1.1=10\", \"discovery-guide-service-b\":\"1.0=20;1.1=80\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-region",
"value": "qa",
"type": "text",
"disabled": true
},
{
"key": "n-d-region-weight",
"value": "dev=99;qa=1",
"type": "text",
"disabled": true
},
{
"key": "n-d-address",
"value": "{\"discovery-guide-service-a\":\"3001\", \"discovery-guide-service-b\":\"4002\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-env",
"value": "env1",
"type": "text",
"disabled": true
},
{
"key": "app-version",
"value": "1.0",
"type": "text",
"disabled": true
},
{
"key": "mobile",
"value": "13812345678",
"type": "text",
"disabled": true
},
{
"key": "user",
"value": "lisi",
"type": "text",
"disabled": true
},
{
"key": "trace-id",
"value": "lochmbu18nfo",
"type": "text",
"disabled": true
},
{
"key": "span-id",
"value": "6913",
"type": "text",
"disabled": true
},
{
"key": "a",
"value": "1",
"type": "text",
"disabled": true
},
{
"key": "b",
"value": "2",
"type": "text",
"disabled": true
}
],
"url": {
"raw": "http://localhost:5002/discovery-guide-service-a/invoke/zuul",
"protocol": "http",
"host": [
"localhost"
],
"port": "5002",
"path": [
"discovery-guide-service-a",
"invoke",
"zuul"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "4f8553f1-7d6f-4b5c-a8e4-2693dcc4340b",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "ea52c4e3-7098-4b11-a19a-68b8da9aeffd",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Discovery原生网关接口",
"item": [
{
"name": "Gateway网关调用示例",
"request": {
"method": "POST",
"header": [
{
"key": "n-d-version",
"value": "{\"discovery-springcloud-example-a\":\"1.0\", \"discovery-springcloud-example-b\":\"1.0\", \"discovery-springcloud-example-c\":\"1.0;1.2\"}",
"disabled": true
},
{
"key": "n-d-region",
"value": "{\"discovery-springcloud-example-a\":\"qa;dev\", \"discovery-springcloud-example-b\":\"dev\", \"discovery-springcloud-example-c\":\"qa\"}",
"disabled": true
},
{
"key": "n-d-address",
"value": "{\"discovery-springcloud-example-a\":\"192.168.43.101:1100\", \"discovery-springcloud-example-b\":\"192.168.43.101:1201\", \"discovery-springcloud-example-c\":\"192.168.43.101:1300\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-version-weight",
"value": "{\"discovery-springcloud-example-a\":\"1.0=90;1.1=10\", \"discovery-springcloud-example-b\":\"1.0=90;1.1=10\", \"discovery-springcloud-example-c\":\"1.0=90;1.1=10\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-region-weight",
"value": "dev=85;qa=15",
"type": "text",
"disabled": true
},
{
"key": "mobile",
"value": "133",
"type": "text",
"disabled": true
},
{
"key": "user",
"value": "zhangsan",
"type": "text",
"disabled": true
},
{
"key": "token",
"value": "ab",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "ab"
},
"url": {
"raw": "http://localhost:1500/discovery-springcloud-example-a/invoke",
"protocol": "http",
"host": [
"localhost"
],
"port": "1500",
"path": [
"discovery-springcloud-example-a",
"invoke"
]
}
},
"response": []
},
{
"name": "Zuul网关调用示例",
"request": {
"method": "POST",
"header": [
{
"key": "n-d-version",
"value": "{\"discovery-springcloud-example-a\":\"1.0\", \"discovery-springcloud-example-b\":\"1.0\", \"discovery-springcloud-example-c\":\"1.0;1.2\"}",
"disabled": true
},
{
"key": "n-d-region",
"value": "{\"discovery-springcloud-example-a\":\"qa;dev\", \"discovery-springcloud-example-b\":\"dev\", \"discovery-springcloud-example-c\":\"qa\"}",
"disabled": true
},
{
"key": "n-d-address",
"value": "{\"discovery-springcloud-example-a\":\"192.168.43.101:1100\", \"discovery-springcloud-example-b\":\"192.168.43.101:1201\", \"discovery-springcloud-example-c\":\"192.168.43.101:1300\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-version-weight",
"value": "{\"discovery-springcloud-example-a\":\"1.0=90;1.1=10\", \"discovery-springcloud-example-b\":\"1.0=90;1.1=10\", \"discovery-springcloud-example-c\":\"1.0=90;1.1=10\"}",
"type": "text",
"disabled": true
},
{
"key": "n-d-region-weight",
"value": "dev=85;qa=15",
"type": "text",
"disabled": true
},
{
"key": "mobile",
"value": "138",
"type": "text",
"disabled": true
},
{
"key": "user",
"value": "lisi",
"type": "text",
"disabled": true
},
{
"key": "token",
"value": "ab",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "ab"
},
"url": {
"raw": "http://localhost:1400/discovery-springcloud-example-a/invoke",
"protocol": "http",
"host": [
"localhost"
],
"port": "1400",
"path": [
"discovery-springcloud-example-a",
"invoke"
]
}
},
"response": []
},
{
"name": "Gateway网关获取全路径的路由信息树",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "discovery-springcloud-example-a;discovery-springcloud-example-b;discovery-springcloud-example-c"
},
"url": {
"raw": "http://localhost:1500/router/routes/",
"protocol": "http",
"host": [
"localhost"
],
"port": "1500",
"path": [
"router",
"routes",
""
]
}
},
"response": []
},
{
"name": "Zuul网关获取全路径的路由信息树",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "discovery-springcloud-example-a;discovery-springcloud-example-b;discovery-springcloud-example-c"
},
"url": {
"raw": "http://localhost:1400/router/routes/",
"protocol": "http",
"host": [
"localhost"
],
"port": "1400",
"path": [
"router",
"routes",
""
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "0745ce05-be91-4aca-9dfa-b2e3d4b903b5",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "8cb32baa-41c5-4d08-8a99-e4e9d0f67f8a",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Discovery服务接口",
"item": [
{
"name": "查看本地和更新的规则配置信息",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:1100/config/view",
"protocol": "http",
"host": [
"localhost"
],
"port": "1100",
"path": [
"config",
"view"
]
}
},
"response": []
},
{
"name": "查看服务的本地版本和动态版本",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:1100/version/view",
"protocol": "http",
"host": [
"localhost"
],
"port": "1100",
"path": [
"version",
"view"
]
}
},
"response": []
},
{
"name": "获取全路径的路由信息树",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "discovery-springcloud-example-b;discovery-springcloud-example-c"
},
"url": {
"raw": "http://localhost:1100/router/routes/",
"protocol": "http",
"host": [
"localhost"
],
"port": "1100",
"path": [
"router",
"routes",
""
]
}
},
"response": []
},
{
"name": "服务调用示例",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "Start"
},
"url": {
"raw": "http://localhost:1100/invoke",
"protocol": "http",
"host": [
"localhost"
],
"port": "1100",
"path": [
"invoke"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "9c473e26-3065-49ef-bb64-718d1f8917ec",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "a7fbb188-ca44-423d-b345-85a27a88eaef",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Discovery控制台接口",
"item": [
{
"name": "批量同步推送更新规则配置信息",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<rule>\r\n <discovery>\r\n <version>\r\n <service consumer-service-name=\"discovery-springcloud-example-b\" provider-service-name=\"discovery-springcloud-example-c\" consumer-version-value=\"1.0\" provider-version-value=\"3.0\"/>\r\n </version>\r\n </discovery>\r\n</rule>"
},
"url": {
"raw": "http://localhost:2222/console/config/update-sync/discovery-springcloud-example-b",
"protocol": "http",
"host": [
"localhost"
],
"port": "2222",
"path": [
"console",
"config",
"update-sync",
"discovery-springcloud-example-b"
]
}
},
"response": []
},
{
"name": "批量同步清除更新的规则配置信息",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:2222/console/config/clear-sync/discovery-springcloud-example-b",
"protocol": "http",
"host": [
"localhost"
],
"port": "2222",
"path": [
"console",
"config",
"clear-sync",
"discovery-springcloud-example-b"
]
}
},
"response": []
},
{
"name": "批量同步更新服务的动态版本",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "1.1"
},
"url": {
"raw": "http://localhost:2222/console/version/update-sync/discovery-springcloud-example-zuul",
"protocol": "http",
"host": [
"localhost"
],
"port": "2222",
"path": [
"console",
"version",
"update-sync",
"discovery-springcloud-example-zuul"
]
}
},
"response": []
},
{
"name": "批量同步清除服务的动态版本",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:2222/console/version/clear-sync/discovery-springcloud-example-zuul",
"protocol": "http",
"host": [
"localhost"
],
"port": "2222",
"path": [
"console",
"version",
"clear-sync",
"discovery-springcloud-example-zuul"
]
}
},
"response": []
},
{
"name": "推送更新规则配置信息到远程配置中心",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<rule>\r\n <discovery>\r\n <version>\r\n <service consumer-service-name=\"discovery-springcloud-example-b\" provider-service-name=\"discovery-springcloud-example-c\" consumer-version-value=\"1.0\" provider-version-value=\"3.0\"/>\r\n </version>\r\n </discovery>\r\n</rule>"
},
"url": {
"raw": "http://localhost:2222/console/remote-config/update/example-service-group/discovery-springcloud-example-b",
"protocol": "http",
"host": [
"localhost"
],
"port": "2222",
"path": [
"console",
"remote-config",
"update",
"example-service-group",
"discovery-springcloud-example-b"
]
}
},
"response": []
},
{
"name": "清除规则配置信息到远程配置中心",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:2222/console/remote-config/clear/example-service-group/discovery-springcloud-example-b",
"protocol": "http",
"host": [
"localhost"
],
"port": "2222",
"path": [
"console",
"remote-config",
"clear",
"example-service-group",
"discovery-springcloud-example-b"
]
}
},
"response": []
},
{
"name": "查看远程配置中心的规则配置信息",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:2222/console/remote-config/view/example-service-group/discovery-springcloud-example-b",
"protocol": "http",
"host": [
"localhost"
],
"port": "2222",
"path": [
"console",
"remote-config",
"view",
"example-service-group",
"discovery-springcloud-example-b"
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
},
{
"name": "Nacos服务接口",
"item": [
{
"name": "获取服务实例",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://127.0.0.1:8848/nacos/v1/ns/instances?serviceName=discovery-springcloud-example-c",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8848",
"path": [
"nacos",
"v1",
"ns",
"instances"
],
"query": [
{
"key": "serviceName",
"value": "discovery-springcloud-example-c"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
},
{
"name": "Permission服务接口",
"item": [
{
"name": "权限验证调用",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "abcd12345"
},
{
"key": "user-id",
"value": "lisi"
},
{
"key": "user-type",
"value": "LDAP"
}
],
"url": {
"raw": "http://localhost:1212/doC/abc",
"protocol": "http",
"host": [
"localhost"
],
"port": "1212",
"path": [
"doC",
"abc"
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}
],
"protocolProfileBehavior": {}
}
Java
1
https://gitee.com/istorkbox_istorkbox/DiscoveryGuide.git
git@gitee.com:istorkbox_istorkbox/DiscoveryGuide.git
istorkbox_istorkbox
DiscoveryGuide
DiscoveryGuide
master

搜索帮助