Skip to content

Commit

Permalink
add vehicleRentalsByBbox graphql tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCris654 committed Oct 30, 2024
1 parent b2b69c9 commit 8bfa8e2
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"data": {
"vehicleRentalsByBbox": [
{
"__typename": "VehicleRentalStation",
"allowPickupNow": false,
"lat": 47.51,
"lon": 18.99,
"name": "FooStation",
"operative": false,
"rentalNetwork": {
"networkId": "Network-1",
"url": "https://foo.bar"
},
"rentalUris": null,
"stationId": "Network-1:FooStation",
"vehiclesAvailable": 10,
"availableVehicles": {
"byType": [
{
"vehicleType": {
"formFactor": "BICYCLE",
"propulsionType": "ELECTRIC"
},
"count": 5
},
{
"vehicleType": {
"formFactor": "BICYCLE",
"propulsionType": "HUMAN"
},
"count": 5
}
],
"total": 10
},
"spacesAvailable": 10,
"availableSpaces": {
"byType": [
{
"vehicleType": {
"formFactor": "BICYCLE",
"propulsionType": "ELECTRIC"
},
"count": 3
},
{
"vehicleType": {
"formFactor": "BICYCLE",
"propulsionType": "HUMAN"
},
"count": 7
}
],
"total": 10
},
"allowDropoff": false,
"allowPickup": false,
"allowDropoffNow": false,
"capacity": null,
"allowOverloading": false
},
{
"__typename": "RentalVehicle",
"allowPickupNow": true,
"lat": 47.52,
"lon": 19.01,
"name": "free-floating-bicycle",
"operative": true,
"rentalNetwork": {
"networkId": "Network-1",
"url": "https://foo.bar"
},
"rentalUris": null,
"vehicleId": "Network-1:free-floating-bicycle",
"vehicleType": {
"formFactor": "BICYCLE",
"propulsionType": "HUMAN"
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
vehicleRentalsByBbox(
maximumLatitude: 48.00
maximumLongitude: 19.10
minimumLatitude: 47.50
minimumLongitude: 18.80
) {
__typename
allowPickupNow
lat
lon
name
operative
rentalNetwork {
networkId
url
}
rentalUris {
android
ios
web
}
... on RentalVehicle {
vehicleId
vehicleType {
formFactor
propulsionType
}
}
... on VehicleRentalStation {
stationId
vehiclesAvailable
availableVehicles {
byType {
vehicleType {
formFactor
propulsionType
}
count
}
total
}
spacesAvailable
availableSpaces {
byType {
vehicleType {
formFactor
propulsionType
}
count
}
total
}
allowDropoff
allowPickup
allowDropoffNow
capacity
allowOverloading
}
}
}

0 comments on commit 8bfa8e2

Please # to comment.