diff options
author | 2020-02-26 18:42:16 +0000 | |
---|---|---|
committer | 2020-02-26 18:46:59 +0000 | |
commit | 2c78899f04fd40115d3c4cc606e8380c00cdda0b (patch) | |
tree | 7e27debaccbfc497473b5197978415ebe54f0570 /sliapi/springboot/README.md | |
parent | 7b5d3d08876124b713b12a0b5983752af4b5921b (diff) |
update sliapi-springboot
format source, use provider base and minor changes
Issue-ID: CCSDK-2121
Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
Change-Id: I4066ce5e15b1fa298b6e3de6ed8d7d1794b12013
Diffstat (limited to 'sliapi/springboot/README.md')
-rw-r--r-- | sliapi/springboot/README.md | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/sliapi/springboot/README.md b/sliapi/springboot/README.md index 5737072e..3e47f341 100644 --- a/sliapi/springboot/README.md +++ b/sliapi/springboot/README.md @@ -1,10 +1,29 @@ This directory contains a demo springboot implementation of the SLI-API healthcheck method. To start this server, run: - -java -jar -DserviceLogicDirectory=src/main/resources target/sliapi-springboot-{version}.jar +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/SLI-API:healthcheck -X POST -H "Content-Type: application/json"
\ No newline at end of file +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" + } +} +```
\ No newline at end of file |