List of assigned bookings matching given assignment.
curl -X GET \
-H "Accept: application/json" \
"https://rest.route2.aleet.co/assignment/assignedBookings?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&pickUpTimeWindow=&dropOffTimeWindow=&externalId=externalId_example&pickUpLocation=pickUpLocation_example&dropOffLocation=dropOffLocation_example&dateFrom=2013-10-20&dateTo=2013-10-20&attributes=attributes_example&searchText=searchText_example&driverName=driverName_example&plate=plate_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;
import java.io.File;
import java.util.*;
public class RoutingApiExample {
public static void main(String[] args) {
// Create an instance of the API class
RoutingApi apiInstance = new RoutingApi();
UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
Integer offset = 56; // Integer | Index on the list to start with. Default 0.
Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
RangeFilter pickUpTimeWindow = ; // RangeFilter | Filter: match pickup time window.
RangeFilter dropOffTimeWindow = ; // RangeFilter | Filter: match drop off time window.
String externalId = externalId_example; // String | Filter: match by externalId
String pickUpLocation = pickUpLocation_example; // String | Filter: match by pickup location.
String dropOffLocation = dropOffLocation_example; // String | Filter: match by drop off location.
date dateFrom = 2013-10-20; // date | Filter: match bookings with pickup time window starting from given date (inclusive).
date dateTo = 2013-10-20; // date | Filter: match bookings with drop off time window ending at given date (inclusive).
String attributes = attributes_example; // String |
String searchText = searchText_example; // String | Filter: match by name or address.
String driverName = driverName_example; // String | Filter: match by driver name.
String plate = plate_example; // String | Filter: match by vehicle registration plate.
try {
AssignedBookingsPage result = apiInstance.assignedBookings(tenantId, assignmentId, offset, limit, orderBy, pickUpTimeWindow, dropOffTimeWindow, externalId, pickUpLocation, dropOffLocation, dateFrom, dateTo, attributes, searchText, driverName, plate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RoutingApi#assignedBookings");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.RoutingApi;
public class RoutingApiExample {
public static void main(String[] args) {
RoutingApi apiInstance = new RoutingApi();
UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
Integer offset = 56; // Integer | Index on the list to start with. Default 0.
Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
RangeFilter pickUpTimeWindow = ; // RangeFilter | Filter: match pickup time window.
RangeFilter dropOffTimeWindow = ; // RangeFilter | Filter: match drop off time window.
String externalId = externalId_example; // String | Filter: match by externalId
String pickUpLocation = pickUpLocation_example; // String | Filter: match by pickup location.
String dropOffLocation = dropOffLocation_example; // String | Filter: match by drop off location.
date dateFrom = 2013-10-20; // date | Filter: match bookings with pickup time window starting from given date (inclusive).
date dateTo = 2013-10-20; // date | Filter: match bookings with drop off time window ending at given date (inclusive).
String attributes = attributes_example; // String |
String searchText = searchText_example; // String | Filter: match by name or address.
String driverName = driverName_example; // String | Filter: match by driver name.
String plate = plate_example; // String | Filter: match by vehicle registration plate.
try {
AssignedBookingsPage result = apiInstance.assignedBookings(tenantId, assignmentId, offset, limit, orderBy, pickUpTimeWindow, dropOffTimeWindow, externalId, pickUpLocation, dropOffLocation, dateFrom, dateTo, attributes, searchText, driverName, plate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RoutingApi#assignedBookings");
e.printStackTrace();
}
}
}
// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
RangeFilter *pickUpTimeWindow = ; // Filter: match pickup time window. (optional) (default to null)
RangeFilter *dropOffTimeWindow = ; // Filter: match drop off time window. (optional) (default to null)
String *externalId = externalId_example; // Filter: match by externalId (optional) (default to null)
String *pickUpLocation = pickUpLocation_example; // Filter: match by pickup location. (optional) (default to null)
String *dropOffLocation = dropOffLocation_example; // Filter: match by drop off location. (optional) (default to null)
date *dateFrom = 2013-10-20; // Filter: match bookings with pickup time window starting from given date (inclusive). (optional) (default to null)
date *dateTo = 2013-10-20; // Filter: match bookings with drop off time window ending at given date (inclusive). (optional) (default to null)
String *attributes = attributes_example; // (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name or address. (optional) (default to null)
String *driverName = driverName_example; // Filter: match by driver name. (optional) (default to null)
String *plate = plate_example; // Filter: match by vehicle registration plate. (optional) (default to null)
[apiInstance assignedBookingsWith:tenantId
assignmentId:assignmentId
offset:offset
limit:limit
orderBy:orderBy
pickUpTimeWindow:pickUpTimeWindow
dropOffTimeWindow:dropOffTimeWindow
externalId:externalId
pickUpLocation:pickUpLocation
dropOffLocation:dropOffLocation
dateFrom:dateFrom
dateTo:dateTo
attributes:attributes
searchText:searchText
driverName:driverName
plate:plate
completionHandler: ^(AssignedBookingsPage output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Route2RestApi = require('route2_rest_api');
// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.
var opts = {
'offset': 56, // {Integer} Index on the list to start with. Default 0.
'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
'pickUpTimeWindow': , // {RangeFilter} Filter: match pickup time window.
'dropOffTimeWindow': , // {RangeFilter} Filter: match drop off time window.
'externalId': externalId_example, // {String} Filter: match by externalId
'pickUpLocation': pickUpLocation_example, // {String} Filter: match by pickup location.
'dropOffLocation': dropOffLocation_example, // {String} Filter: match by drop off location.
'dateFrom': 2013-10-20, // {date} Filter: match bookings with pickup time window starting from given date (inclusive).
'dateTo': 2013-10-20, // {date} Filter: match bookings with drop off time window ending at given date (inclusive).
'attributes': attributes_example, // {String}
'searchText': searchText_example, // {String} Filter: match by name or address.
'driverName': driverName_example, // {String} Filter: match by driver name.
'plate': plate_example // {String} Filter: match by vehicle registration plate.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.assignedBookings(tenantId, assignmentId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class assignedBookingsExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new RoutingApi();
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to. (default to null)
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment. (default to null)
var offset = 56; // Integer | Index on the list to start with. Default 0. (optional) (default to null)
var limit = 56; // Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
var orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
var pickUpTimeWindow = new RangeFilter(); // RangeFilter | Filter: match pickup time window. (optional) (default to null)
var dropOffTimeWindow = new RangeFilter(); // RangeFilter | Filter: match drop off time window. (optional) (default to null)
var externalId = externalId_example; // String | Filter: match by externalId (optional) (default to null)
var pickUpLocation = pickUpLocation_example; // String | Filter: match by pickup location. (optional) (default to null)
var dropOffLocation = dropOffLocation_example; // String | Filter: match by drop off location. (optional) (default to null)
var dateFrom = 2013-10-20; // date | Filter: match bookings with pickup time window starting from given date (inclusive). (optional) (default to null)
var dateTo = 2013-10-20; // date | Filter: match bookings with drop off time window ending at given date (inclusive). (optional) (default to null)
var attributes = attributes_example; // String | (optional) (default to null)
var searchText = searchText_example; // String | Filter: match by name or address. (optional) (default to null)
var driverName = driverName_example; // String | Filter: match by driver name. (optional) (default to null)
var plate = plate_example; // String | Filter: match by vehicle registration plate. (optional) (default to null)
try {
AssignedBookingsPage result = apiInstance.assignedBookings(tenantId, assignmentId, offset, limit, orderBy, pickUpTimeWindow, dropOffTimeWindow, externalId, pickUpLocation, dropOffLocation, dateFrom, dateTo, attributes, searchText, driverName, plate);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling RoutingApi.assignedBookings: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$pickUpTimeWindow = ; // RangeFilter | Filter: match pickup time window.
$dropOffTimeWindow = ; // RangeFilter | Filter: match drop off time window.
$externalId = externalId_example; // String | Filter: match by externalId
$pickUpLocation = pickUpLocation_example; // String | Filter: match by pickup location.
$dropOffLocation = dropOffLocation_example; // String | Filter: match by drop off location.
$dateFrom = 2013-10-20; // date | Filter: match bookings with pickup time window starting from given date (inclusive).
$dateTo = 2013-10-20; // date | Filter: match bookings with drop off time window ending at given date (inclusive).
$attributes = attributes_example; // String |
$searchText = searchText_example; // String | Filter: match by name or address.
$driverName = driverName_example; // String | Filter: match by driver name.
$plate = plate_example; // String | Filter: match by vehicle registration plate.
try {
$result = $api_instance->assignedBookings($tenantId, $assignmentId, $offset, $limit, $orderBy, $pickUpTimeWindow, $dropOffTimeWindow, $externalId, $pickUpLocation, $dropOffLocation, $dateFrom, $dateTo, $attributes, $searchText, $driverName, $plate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RoutingApi->assignedBookings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $pickUpTimeWindow = ; # RangeFilter | Filter: match pickup time window.
my $dropOffTimeWindow = ; # RangeFilter | Filter: match drop off time window.
my $externalId = externalId_example; # String | Filter: match by externalId
my $pickUpLocation = pickUpLocation_example; # String | Filter: match by pickup location.
my $dropOffLocation = dropOffLocation_example; # String | Filter: match by drop off location.
my $dateFrom = 2013-10-20; # date | Filter: match bookings with pickup time window starting from given date (inclusive).
my $dateTo = 2013-10-20; # date | Filter: match bookings with drop off time window ending at given date (inclusive).
my $attributes = attributes_example; # String |
my $searchText = searchText_example; # String | Filter: match by name or address.
my $driverName = driverName_example; # String | Filter: match by driver name.
my $plate = plate_example; # String | Filter: match by vehicle registration plate.
eval {
my $result = $api_instance->assignedBookings(tenantId => $tenantId, assignmentId => $assignmentId, offset => $offset, limit => $limit, orderBy => $orderBy, pickUpTimeWindow => $pickUpTimeWindow, dropOffTimeWindow => $dropOffTimeWindow, externalId => $externalId, pickUpLocation => $pickUpLocation, dropOffLocation => $dropOffLocation, dateFrom => $dateFrom, dateTo => $dateTo, attributes => $attributes, searchText => $searchText, driverName => $driverName, plate => $plate);
print Dumper($result);
};
if ($@) {
warn "Exception when calling RoutingApi->assignedBookings: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
pickUpTimeWindow = # RangeFilter | Filter: match pickup time window. (optional) (default to null)
dropOffTimeWindow = # RangeFilter | Filter: match drop off time window. (optional) (default to null)
externalId = externalId_example # String | Filter: match by externalId (optional) (default to null)
pickUpLocation = pickUpLocation_example # String | Filter: match by pickup location. (optional) (default to null)
dropOffLocation = dropOffLocation_example # String | Filter: match by drop off location. (optional) (default to null)
dateFrom = 2013-10-20 # date | Filter: match bookings with pickup time window starting from given date (inclusive). (optional) (default to null)
dateTo = 2013-10-20 # date | Filter: match bookings with drop off time window ending at given date (inclusive). (optional) (default to null)
attributes = attributes_example # String | (optional) (default to null)
searchText = searchText_example # String | Filter: match by name or address. (optional) (default to null)
driverName = driverName_example # String | Filter: match by driver name. (optional) (default to null)
plate = plate_example # String | Filter: match by vehicle registration plate. (optional) (default to null)
try:
api_response = api_instance.assigned_bookings(tenantId, assignmentId, offset=offset, limit=limit, orderBy=orderBy, pickUpTimeWindow=pickUpTimeWindow, dropOffTimeWindow=dropOffTimeWindow, externalId=externalId, pickUpLocation=pickUpLocation, dropOffLocation=dropOffLocation, dateFrom=dateFrom, dateTo=dateTo, attributes=attributes, searchText=searchText, driverName=driverName, plate=plate)
pprint(api_response)
except ApiException as e:
print("Exception when calling RoutingApi->assignedBookings: %s\n" % e)
extern crate RoutingApi;
pub fn main() {
let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let offset = 56; // Integer
let limit = 56; // Integer
let orderBy = orderBy_example; // String
let pickUpTimeWindow = ; // RangeFilter
let dropOffTimeWindow = ; // RangeFilter
let externalId = externalId_example; // String
let pickUpLocation = pickUpLocation_example; // String
let dropOffLocation = dropOffLocation_example; // String
let dateFrom = 2013-10-20; // date
let dateTo = 2013-10-20; // date
let attributes = attributes_example; // String
let searchText = searchText_example; // String
let driverName = driverName_example; // String
let plate = plate_example; // String
let mut context = RoutingApi::Context::default();
let result = client.assignedBookings(tenantId, assignmentId, offset, limit, orderBy, pickUpTimeWindow, dropOffTimeWindow, externalId, pickUpLocation, dropOffLocation, dateFrom, dateTo, attributes, searchText, driverName, plate, &context).wait();
println!("{:?}", result);
}