Frontend Basics
This commit is contained in:
parent
fde16fa283
commit
3bbfed11fa
28 changed files with 2780 additions and 7 deletions
39
ilp-rest-service/ilp-cw-api/Front-end Test/1 Drone.bru
Normal file
39
ilp-rest-service/ilp-cw-api/Front-end Test/1 Drone.bru
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
meta {
|
||||
name: 1 Drone
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE}}/calcDeliveryPath
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
[
|
||||
{
|
||||
"id": 123,
|
||||
"date": "2025-12-22",
|
||||
"time": "14:30",
|
||||
"requirements": {
|
||||
"capacity": 0.75,
|
||||
"heating": true,
|
||||
"maxCost": 13.5
|
||||
},
|
||||
"delivery": {
|
||||
"lng": -3.191499773625054,
|
||||
"lat": 55.9510924649214
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
53
ilp-rest-service/ilp-cw-api/Front-end Test/2 Drones.bru
Normal file
53
ilp-rest-service/ilp-cw-api/Front-end Test/2 Drones.bru
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
meta {
|
||||
name: 2 Drones
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE}}/calcDeliveryPath
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
[
|
||||
{
|
||||
"id": 123,
|
||||
"date": "2025-12-22",
|
||||
"time": "14:30",
|
||||
"requirements": {
|
||||
"capacity": 0.75,
|
||||
"heating": true,
|
||||
"maxCost": 13.5
|
||||
},
|
||||
"delivery": {
|
||||
"lng": -3.191499773625054,
|
||||
"lat": 55.9510924649214
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 456,
|
||||
"date": "2025-12-25",
|
||||
"time": "11:30",
|
||||
"requirements": {
|
||||
"capacity": 0.75,
|
||||
"heating": true,
|
||||
"maxCost": 13.5
|
||||
},
|
||||
"delivery": {
|
||||
"lng": -3.187986659939753,
|
||||
"lat": 55.97157210129231
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
8
ilp-rest-service/ilp-cw-api/Front-end Test/folder.bru
Normal file
8
ilp-rest-service/ilp-cw-api/Front-end Test/folder.bru
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
meta {
|
||||
name: Front-end Test
|
||||
seq: 8
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue