feat(endpoints): queryAvailableDrones
This commit is contained in:
parent
9fbc2f3a14
commit
ec0d9087dd
10 changed files with 291 additions and 18 deletions
41
ilp-cw-api/[POST] queryAvailableDrones/Complex.bru
Normal file
41
ilp-cw-api/[POST] queryAvailableDrones/Complex.bru
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
meta {
|
||||
name: Complex
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE}}/queryAvailableDrones
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
[
|
||||
{
|
||||
"id": 123,
|
||||
"date": "2025-12-22",
|
||||
"time": "14:30",
|
||||
"requirements": {
|
||||
"capacity": 0.75,
|
||||
"heating": true,
|
||||
"maxCost": 13.5
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 456,
|
||||
"date": "2025-12-25",
|
||||
"time": "11:30",
|
||||
"requirements": {
|
||||
"capacity": 0.75,
|
||||
"heating": true,
|
||||
"maxCost": 13.5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
32
ilp-cw-api/[POST] queryAvailableDrones/Example.bru
Normal file
32
ilp-cw-api/[POST] queryAvailableDrones/Example.bru
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
meta {
|
||||
name: Example
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE}}/queryAvailableDrones
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
[
|
||||
{
|
||||
"id": 123,
|
||||
"date": "2025-12-22",
|
||||
"time": "14:30",
|
||||
"requirements": {
|
||||
"capacity": 0.75,
|
||||
"cooling": false,
|
||||
"heating": true,
|
||||
"maxCost": 13.5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
meta {
|
||||
name: Treat Null as False (Cooling)
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE}}/queryAvailableDrones
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
[
|
||||
{
|
||||
"id": 123,
|
||||
"date": "2025-12-22",
|
||||
"time": "14:30",
|
||||
"requirements": {
|
||||
"capacity": 0.75,
|
||||
"heating": true,
|
||||
"maxCost": 13.5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
8
ilp-cw-api/[POST] queryAvailableDrones/folder.bru
Normal file
8
ilp-cw-api/[POST] queryAvailableDrones/folder.bru
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
meta {
|
||||
name: [POST] queryAvailableDrones
|
||||
seq: 5
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue