summaryrefslogtreecommitdiffstats
path: root/infra/footprint/footprint-impl/asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'infra/footprint/footprint-impl/asciidoc')
-rw-r--r--infra/footprint/footprint-impl/asciidoc/Readme.adoc19
1 files changed, 19 insertions, 0 deletions
diff --git a/infra/footprint/footprint-impl/asciidoc/Readme.adoc b/infra/footprint/footprint-impl/asciidoc/Readme.adoc
new file mode 100644
index 000000000..79306b52e
--- /dev/null
+++ b/infra/footprint/footprint-impl/asciidoc/Readme.adoc
@@ -0,0 +1,19 @@
+= impl
+
+== To read footprint
+
+[source,java]
+----
+HttpResponse<String> response = Unirest.get("http://localhost:8183/restconf/operational/footprint:memory-footprint-state")
+ .header("authorization", "Basic YWRtaW46YWRtaW4=")
+ .header("content-type", "application/json")
+ .asString();
+----
+
+[source,shell]
+----
+curl --request GET \
+ --url http://localhost:8183/restconf/operational/footprint:memory-footprint-state \
+ --header 'authorization: Basic YWRtaW46YWRtaW4=' \
+ --header 'content-type: application/json'
+---- \ No newline at end of file