feat(query): Implement query endpoint
This commit is contained in:
parent
5d82987cc6
commit
aa9a870e94
9 changed files with 326 additions and 49 deletions
44
ilp-cw-api/[POST] query/GT LT -contradict.bru
Normal file
44
ilp-cw-api/[POST] query/GT LT -contradict.bru
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
meta {
|
||||
name: GT LT -contradict
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE}}/query
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
[
|
||||
{
|
||||
"attribute": "capacity",
|
||||
"operator": ">",
|
||||
"value": "8"
|
||||
},
|
||||
{
|
||||
"attribute": "capacity",
|
||||
"operator": "<",
|
||||
"value": "8"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
res.body: length 0
|
||||
}
|
||||
|
||||
tests {
|
||||
test("Response body is a JSON array", function() {
|
||||
expect(res.getBody()).to.be.an('array');
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue