ilpcw/ilp-cw-api/[GET] droneDetails/drone 1 details.bru

29 lines
385 B
Text

meta {
name: drone 1 details
type: http
seq: 1
}
get {
url: {{API_BASE}}/droneDetails/1
body: none
auth: inherit
}
assert {
res.body.id: eq "1"
res.body.capability.capacity: eq 4.0
res.body.capability.heating: eq true
}
tests {
test("Status code is 200", function() {
expect(res.status).to.equal(200);
});
}
settings {
encodeUrl: true
timeout: 0
}