AnsweredAssumed Answered

JSON PUT request with a body containing multiple arrays not being matched

Question asked by gwrogers on Nov 9, 2015
Latest reply on Nov 10, 2015 by sdetweil2

I am trying to simulate a JSON REST endpoint that involves a PUT request parameter and a body with three arrays of data.  I am not able to get this request matched.  Can someone tell me how to make this match, especially if the number of "instruments" can vary?

 

Thanks.

 

The request file for the endpoint contains:

 

PUT /ext/api/sites/f5ca52eb-a93c-435a-a710-3091c11cf247/config  HTTP/1.1

 

 

{

  "assays": [],

  "instruments": [

    {

      "hardwareVersion": "123456",

      "installDate": 1444906244,

      "macAddress": "64:80:99:2a:82:3c",

      "modelNumber": "1234",

      "serialNumber": "10001",

      "softwareVersion": "05.48.08"

    },

    {

      "hardwareVersion": "123456",

      "installDate": 1444906244,

      "macAddress": "00:2a:95:9d:68:16",

      "modelNumber": "1234",

      "serialNumber": "10002",

      "softwareVersion": "07.54.16"

    },

    {

      "hardwareVersion": "1.0",

      "installDate": 1444906244,

      "macAddress": "00:0a:95:9d:68:16",

      "modelNumber": "1234",

      "serialNumber": "serial2",

      "softwareVersion": "07.54.16"

    }

  ],

  "printers": []

}

 

The meta-file for the request / response pairs contains:

username=user

password=password

OTP=

handheld-id=96464954

Outcomes