3 Replies Latest reply on Dec 11, 2015 10:31 AM by bluefunelemental

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

    ashishmgupta

      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?