Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

How can we monitor homegrown custom REST based service based on request/response

$
0
0

We have few homegrown REST based services and we wanted to leverage Solarwinds to periodically monitor If the transactions to those services are successful.

Question 1

Can we compose a JSON request like below and expect a JSON response like below and alert If the response  is not as expected?

 

Endpoint : http://<hostname>:<port>/<path>

JSON Request :-

{

"userName":"john.doe","password":"f7zzzzf2302f8f00dc16ab688bbbd8fa","salt":"de0aaaaa885d9a4851b441b19b9f380dfe"

}

 

JSON response:-

{

  "responsestatus":"success",

  "statusMessage":"Request was successful",

  "details":{

    "loginStatus":"SuccessfulLogin",

    "token":"71zzE8B23C694AC6974D68981FED1467"

   }

  }

}

 

Question 2:-

From the service response, can we extract the dynamic token [highlighted in green above] and pass the same for another service call which needs the token in the request?


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>