bookingAssignments
Get booking assignments
/booking/bookingAssignments
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json" \
"https://rest.route2.aleet.co/booking/bookingAssignments?offset=56&limit=56&orderBy=orderBy_example&tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;
import java.io.File;
import java.util.*;
public class BookingsApiExample {
public static void main(String[] args) {
// Create an instance of the API class
BookingsApi apiInstance = new BookingsApi();
UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.
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.
try {
array[BookingAssignment] result = apiInstance.bookingAssignments(tenantId, id, offset, limit, orderBy);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BookingsApi#bookingAssignments");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.BookingsApi;
public class BookingsApiExample {
public static void main(String[] args) {
BookingsApi apiInstance = new BookingsApi();
UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.
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.
try {
array[BookingAssignment] result = apiInstance.bookingAssignments(tenantId, id, offset, limit, orderBy);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BookingsApi#bookingAssignments");
e.printStackTrace();
}
}
}
// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (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)
[apiInstance bookingAssignmentsWith:tenantId
id:id
offset:offset
limit:limit
orderBy:orderBy
completionHandler: ^(array[BookingAssignment] 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.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.
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.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.bookingAssignments(tenantId, id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class bookingAssignmentsExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new BookingsApi();
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to. (default to null)
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to. (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)
try {
array[BookingAssignment] result = apiInstance.bookingAssignments(tenantId, id, offset, limit, orderBy);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling BookingsApi.bookingAssignments: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.
$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.
try {
$result = $api_instance->bookingAssignments($tenantId, $id, $offset, $limit, $orderBy);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookingsApi->bookingAssignments: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.
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.
eval {
my $result = $api_instance->bookingAssignments(tenantId => $tenantId, id => $id, offset => $offset, limit => $limit, orderBy => $orderBy);
print Dumper($result);
};
if ($@) {
warn "Exception when calling BookingsApi->bookingAssignments: $@\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.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (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)
try:
api_response = api_instance.booking_assignments(tenantId, id, offset=offset, limit=limit, orderBy=orderBy)
pprint(api_response)
except ApiException as e:
print("Exception when calling BookingsApi->bookingAssignments: %s\n" % e)
extern crate BookingsApi;
pub fn main() {
let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let offset = 56; // Integer
let limit = 56; // Integer
let orderBy = orderBy_example; // String
let mut context = BookingsApi::Context::default();
let result = client.bookingAssignments(tenantId, id, offset, limit, orderBy, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Name | Description |
---|---|
offset |
Integer
Index on the list to start with. Default 0.
|
limit |
Integer
Number of objects to return in a single list page. Default 10.
|
orderBy |
String
Name of the field to sort the list by. Default is empty - no sorting.
|
tenantId* |
UUID
(uuid)
The id of the tenant this request is related to.
Required
|
id* |
UUID
(uuid)
The id of an object this request is related to.
Required
|