feat(cw2): /api/v1/droneDetails impl
This commit is contained in:
parent
3c96f9d5af
commit
44d510ddd4
7 changed files with 141 additions and 14 deletions
29
ilp-cw-api/[GET] droneDetails/drone 1 details.bru
Normal file
29
ilp-cw-api/[GET] droneDetails/drone 1 details.bru
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue