4 Replies Latest reply on Mar 7, 2017 9:46 AM by jkaczynski-2 RSS
    njourdan Newbie

    How to use a custom service with JSON input via POST

    Hello everybody,

     

    I created a custom service with a JSON Input called "Data". I am trying to test this service via Postman.

    Data will contain something like this:

    [

    {

    "var1":5,

    "var2":10

    },

     

    {

    "var1":5,

    "var2":10

    }

    ]

    Can someone tell me how i correctly pass this to Thingworx? So how do i have to format my body in postman? And in Thingworx Javascript do I have to parse the json first or is it already passed as i specify the input as json.

     

    Thanks. I think the documentation on these things is really sparse