1
1
# Creates the services.
2
- curl -S -s -i -X POST --url http://api-gateway:8001/services --data " name=counterparty-service" --data " url=http://counterparty-service:8080/counterparties"
3
- curl -S -s -i -X POST --url http://api-gateway:8001/services --data " name=instrument-service" --data " url=http://instrument-service:8080/instrument"
4
- curl -S -s -i -X POST --url http://api-gateway:8001/services --data " name=valuation-service" --data " url=http://valuation-service:8080/valuation"
5
- curl -S -s -i -X POST --url http://api-gateway:8001/services --data " name=regulatory-service" --data " url=http://regulatory-service:8080/regulatory"
2
+ curl -S -s -i -X POST --url http://api-gateway:8001/services --data " name=counterparty-service" --data-urlencode " url=http://counterparty-service:8080/counterparties"
3
+ curl -S -s -i -X POST --url http://api-gateway:8001/services --data " name=instrument-service" --data-urlencode " url=http://instrument-service:8080/instrument"
4
+ curl -S -s -i -X POST --url http://api-gateway:8001/services --data " name=init-instrument-service" --data-urlencode " url=http://instrument-service:8080/instrument/propagateAllInstruments"
5
+ curl -S -s -i -X POST --url http://api-gateway:8001/services --data " name=valuation-service" --data-urlencode " url=http://valuation-service:8080/valuation"
6
+ curl -S -s -i -X POST --url http://api-gateway:8001/services --data " name=regulatory-service" --data-urlencode " url=http://regulatory-service:8080/regulatory"
6
7
# Creates the routes
7
- curl -S -s -i -X POST --url http://api-gateway:8001/services/counterparty-service/routes --data " paths[]=/api/v1/counterparty"
8
- curl -S -s -i -X POST --url http://api-gateway:8001/services/instrument-service/routes --data " paths[]=/api/v1/instrument"
9
- curl -S -s -i -X POST --url http://api-gateway:8001/services/valuation-service/routes --data " paths[]=/api/v1/valuation"
10
- curl -S -s -i -X POST --url http://api-gateway:8001/services/regulatory-service/routes --data " paths[]=/api/v1/regulatory"
8
+ curl -S -s -i -X POST --url http://api-gateway:8001/services/counterparty-service/routes --data-urlencode " paths[]=/api/v1/counterparty"
9
+ curl -S -s -i -X POST --url http://api-gateway:8001/services/instrument-service/routes --data-urlencode " paths[]=/api/v1/instrument"
10
+ curl -S -s -i -X POST --url http://api-gateway:8001/services/init-instrument-service/routes --data-urlencode " paths[]=/api/v1/init-instrument"
11
+ curl -S -s -i -X POST --url http://api-gateway:8001/services/valuation-service/routes --data-urlencode " paths[]=/api/v1/valuation"
12
+ curl -S -s -i -X POST --url http://api-gateway:8001/services/regulatory-service/routes --data-urlencode " paths[]=/api/v1/regulatory"
11
13
# Enable the Open ID Plugin
12
- curl -S -s -i -X POST --url http://api-gateway:8001/plugins --data " name=oidc" --data " config.client_id=api-gateway" --data " config.client_secret=798751a9-d274-4335-abf6-80611cd19ba1" --data " config.discovery=https%3A%2F%2Flocalhost%2Fauth%2Frealms%2Fapigw%2F.well-known%2Fopenid-configuration"
14
+ curl -S -s -i -X POST --url http://api-gateway:8001/plugins --data " name=oidc" --data " config.client_id=api-gateway" --data " config.client_secret=798751a9-d274-4335-abf6-80611cd19ba1" --data " config.discovery=https%3A%2F%2Flocalhost%2Fauth%2Frealms%2Fapigw%2F.well-known%2Fopenid-configuration"
15
+ # curl -S -s -i -X POST --url http://api-gateway:8001/plugins --data "name=oidc" --data "config.client_id=api-gateway" --data "config.client_secret=798751a9-d274-4335-abf6-80611cd19ba1" --data "config.discovery=http%3A%2F%2Fiam:8080%2Fauth%2Frealms%2Fapigw%2F.well-known%2Fopenid-configuration"
0 commit comments