aboutsummaryrefslogtreecommitdiffstats
path: root/sliapi/springboot/README.md
blob: 3e47f341fad1ac388920e30aea1d1497df5eba5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
This directory contains a demo springboot implementation of the SLI-API healthcheck method.

To start this server, run:
mvn -DserviceLogicDirectory=src/main/resources spring-boot:run

This will start a servlet on port 8080.  To test to that servlet, post a blank
message to that port:

curl http://127.0.0.1:8080/restconf/operations/SLI-API:healthcheck -X POST -H "Content-Type: application/json"

Requests can also be sent to `http://localhost:8080/executeGraph`

The graph details need to match a graph which has been loaded and activated

An example request
```
{
    "graphDetails": {
        "module": "prov",
        "rpc": "test",
        "mode": "sync"
    },
    "input": {
        "name": "Hello World",
        "test": "one",
        "mixed": "cAsE"
    }
}
```