Get Food

GET {{url}}/allowed_food

Get a list of approved food items for Cooper

Test Script:

tests["Status code is 200"] = (responseCode.code === 200);

if (responseCode.code === 200) {
    // Store the array of available food items for the dog in the environment
    Qodex.setEnvironmentVariable("items", responseBody);
    // Set an ID for this execution
    Qodex.setEnvironmentVariable("run_id", _.random(0,100000));
    // As defined in the workflow, set the next request to be executed to Create Day Log
    Qodex.setNextRequest("Create Day Log");
}
else {
    // Stop execution
    Qodex.setNextRequest(null);
}