Update XACML Tutorial
[policy/parent.git] / docs / xacml / tutorial / app / src / main / docker / README.txt
1 docker-compose -f docker-compose.yml run --rm start_dependencies
2
3 docker-compose -f docker-compose.yml run --rm start_all
4
5
6 curl -X POST http://0.0.0.0:3904/events/POLICY-PDP-PAP
7
8 Should return JSON similar to this:
9 {"serverTimeMs":0,"count":0}
10
11
12 curl -k -u 'healthcheck:zb!XztG34' 'https://0.0.0.0:6969/policy/pdpx/v1/healthcheck'
13
14 Should return JSON similar to this:
15 {"name":"Policy Xacml PDP","url":"self","healthy":true,"code":200,"message":"alive"}
16
17
18 curl -k -u 'healthcheck:zb!XztG34' 'https://0.0.0.0:6767/policy/api/v1/healthcheck'
19 Should return JSON similar to this:
20 {
21     "name": "Policy API",
22     "url": "policy-api",
23     "healthy": true,
24     "code": 200,
25     "message": "alive"
26 }
27
28 curl -k -u 'healthcheck:zb!XztG34' 'https://0.0.0.0:6868/policy/pap/v1/healthcheck'
29 Should return JSON similar to this:
30 {
31     "name": "Policy PAP",
32     "url": "policy-pap",
33     "healthy": true,
34     "code": 200,
35     "message": "alive"
36 }