summaryrefslogtreecommitdiffstats
path: root/ms/sliboot/README.md
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-06-05 15:46:39 -0400
committerKAPIL SINGAL <ks220y@att.com>2020-06-09 14:24:12 +0000
commit31172d602ff8bce4b4680c3a2da58b6db2e8d9f0 (patch)
treebf66bc083d8f1a46c17132c990c7e725e828514d /ms/sliboot/README.md
parentc2fac23347ee5dd3f8b6e3180a0206eb979b965e (diff)
Refactor sliapi springboot
Moved sli-api springboot microservice from ccsdk/sli/core to ccsdk/apps Change-Id: Ibecae568cf90b71575403052111e7be9ff543376 Issue-ID: CCSDK-2096 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'ms/sliboot/README.md')
-rw-r--r--ms/sliboot/README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/ms/sliboot/README.md b/ms/sliboot/README.md
new file mode 100644
index 00000000..38be1c2f
--- /dev/null
+++ b/ms/sliboot/README.md
@@ -0,0 +1,33 @@
+This directory contains a demo springboot implementation of the SLI-API healthcheck method.
+
+To start this server with out AAF authentication, run:
+mvn -DserviceLogicDirectory=src/main/resources spring-boot:run
+
+To start this server with AAF authentication, run:
+mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dcadi_prop_files=/opt/onap/sdnc/data/properties/org.onap.sdnc.props -DserviceLogicDirectory=src/main/resources"
+
+
+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"
+ }
+}
+```