{ "response": { "status": 200, "startRow": 0, "endRow": 1, "totalRows": 1, "next": "", "data": { "id": "workflow-1", "name": "SampleWorkflow", "tasks": [ { "id": "task-0", "name": "AWX", "triggered_by": ["task-5"] }, { "id": "task-1", "name": "BrainStorming", "triggered_by": ["task-2", "task-5"] }, { "id": "task-2", "name": "OnHold", "triggered_by": ["task-0", "task-4", "task-7", "task-8", "task9"] }, { "id": "task-3", "name": "InvestigateSuggestions", "triggered_by": ["task-6"] }, { "id": "task-4", "name": "Mistral", "triggered_by": ["task-3"] }, { "id": "task-5", "name": "Ansible", "triggered_by": ["task-3"] }, { "id": "task-6", "name": "Integration", "triggered_by": [] }, { "id": "task-7", "name": "Tower", "triggered_by": ["task-5"] }, { "id": "task-8", "name": "Camunda", "triggered_by": ["task-3"] }, { "id": "task-9", "name": "HungOnMistral", "triggered_by": ["task-0", "task-7"] }, { "id": "task-10", "name": "MistralIsChosen", "triggered_by": ["task-1"] } ] } }}given().when().get("http://localhost:8080/workflow-1").then().extract().path("response.data.tasks.findAll{ it.triggered_by.contains('task-3') }.name")[Mistral, Ansible, Camunda]
given().when().get("http://localhost:8080/workflow-1").then().extract().path("response.data.tasks.findAll{ it.triggered_by.contains(response.data.tasks.find{ it.name.equals('InvestigateSuggestions')}.id) }.name")--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rest-assured/948ef784-0715-4015-b141-bfd8df04940do%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-a...@googlegroups.com.