Not sure if my title has explained this properly so I will use an example.
Say you have an endpoint where you have the option of submitting one or multiple classes such as:
[
{
"courseNbr": 1234,
"isDeleted": false,
"prefOrder": 1
},
{
"courseNbr": 345,
"isDeleted": false,
"prefOrder": 2
}
]
However, I’m using data files to pass the course information. Sometimes I want to submit one course and other times I want to submit more then that.
Does anyone know of a way I could perhaps use a pre-request script to check the amount of items inside the JSON data file and then submit that as part of the Body?