From d249eaf6364e7f457883ac76dd0056fda0897498 Mon Sep 17 00:00:00 2001 From: Simon Cotterell Date: Mon, 11 Mar 2019 18:37:34 +0000 Subject: [PATCH] Update to intro.md Hi Adam, I am new to this library and struggled with what a 'JSON' hash was :) I have added a small amount of extra text to this which may help? Si --- doc/api/intro.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/intro.md b/doc/api/intro.md index 49200514..3842570f 100644 --- a/doc/api/intro.md +++ b/doc/api/intro.md @@ -18,6 +18,15 @@ To send parameters you should send a JSON hash containing your parameters in the body of your request. Be sure to set the request content type to `application/json`. +For example, to retrieve information for a service called 'webapp' you can send the following +request + +```POST /api/v1/services/info``` + +and then use the following JSON hash in the body of your request. + +```{ "service" : "webapp" }``` + ## Ruby Library You can use any Moonrope-compatible API client to interact with