summaryrefslogtreecommitdiffstats
path: root/sliapi/springboot/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'sliapi/springboot/README.md')
-rw-r--r--sliapi/springboot/README.md25
1 files changed, 22 insertions, 3 deletions
diff --git a/sliapi/springboot/README.md b/sliapi/springboot/README.md
index 5737072ef..3e47f341f 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