blob: f4014aa8ea154f4294cc7c26dca4ef7b17dd023a [file] [log] [blame]
刘洪青483a21f2020-09-07 12:20:33 +08001
2# user-data-service-poa.v1.yaml
3
4curl -i -s -X DELETE 'http://poa-sa-test.paas.newcapec.cn/v1/services/user'
5
6# 1. 创建服务
7curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services' -H 'Content-Type: application/json' -d '{"id": "user", "origin": "http://user-data-service-poa-svc.user-data-service-test.svc.cluster.local:8080", "name": "用户服务", "description": "用户服务"}'
8
9# 2. 创建版本
10curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/user/apiVersions/v1'
11
12# 3. 上传OAS Yaml
13curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/user/apiVersions/v1/apiSpecs' -H 'Content-Type: application/yaml' --data-binary @user-data-service-poa.v1.yaml
14
15# 4. 发布版本
16curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/user/apiVersions/v1/publish'
17
18
19# user-authorization-service-poa.v1.yaml
20
21curl -i -s -X DELETE 'http://poa-sa-test.paas.newcapec.cn/v1/services/authz'
22
23# 1. 创建服务
24curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services' -H 'Content-Type: application/json' -d '{"id": "authz", "origin": "http://user-authorization-poa-svc.user-authorization-service-test.svc.cluster.local:8080", "name": "授权服务", "description": "授权服务"}'
25
26# 2. 创建版本
27curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/authz/apiVersions/v1'
28
29# 3. 上传OAS Yaml
30curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/authz/apiVersions/v1/apiSpecs' -H 'Content-Type: application/yaml' --data-binary @user-authorization-service-poa.v1.yaml
31
32# 4. 发布版本
33curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/authz/apiVersions/v1/publish'
34
35
36# admin-center-poa.v1.yaml
37
38curl -i -s -X DELETE 'http://poa-sa-test.paas.newcapec.cn/v1/services/admincenter'
39
40# 1. 创建服务
41curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services' -H 'Content-Type: application/json' -d '{"id": "admincenter", "origin": "http://admin-center-poa-svc.admin-center-test.svc.cluster.local:8080", "name": "管理中心", "description": "管理中心"}'
42
43# 2. 创建版本
44curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/admincenter/apiVersions/v1'
45
46# 3. 上传OAS Yaml
47curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/admincenter/apiVersions/v1/apiSpecs' -H 'Content-Type: application/yaml' --data-binary @admin-center-poa.v1.yaml
48
49# 4. 发布版本
50curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/admincenter/apiVersions/v1/publish'
51
52
53# communicate-center-poa.v1.yaml
54
55curl -i -s -X DELETE 'http://poa-sa-test.paas.newcapec.cn/v1/services/communicate'
56
57# 1. 创建服务
58curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services' -H 'Content-Type: application/json' -d '{"id": "communicate", "origin": "http://communicate-center-poa-svc.communicate-center-test.svc.cluster.local:8080", "name": "通信服务", "description": "通信服务"}'
59
60# 2. 创建版本
61curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/communicate/apiVersions/v1'
62
63# 3. 上传OAS Yaml
64curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/communicate/apiVersions/v1/apiSpecs' -H 'Content-Type: application/yaml' --data-binary @communicate-center-poa.v1.yaml
65
66# 4. 发布版本
67curl -i -s -X POST 'http://poa-sa-test.paas.newcapec.cn/v1/services/communicate/apiVersions/v1/publish'