Api Documentation

BuildingAPI

getAllBuildingsUsingGET

Get all buildings


/building

Usage and SDK Samples

curl -X GET "https://localhost/building?name="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BuildingAPIApi;

import java.io.File;
import java.util.*;

public class BuildingAPIApiExample {

    public static void main(String[] args) {
        
        BuildingAPIApi apiInstance = new BuildingAPIApi();
        String name = name_example; // String | name
        try {
            array[Building] result = apiInstance.getAllBuildingsUsingGET(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BuildingAPIApi#getAllBuildingsUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BuildingAPIApi;

public class BuildingAPIApiExample {

    public static void main(String[] args) {
        BuildingAPIApi apiInstance = new BuildingAPIApi();
        String name = name_example; // String | name
        try {
            array[Building] result = apiInstance.getAllBuildingsUsingGET(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BuildingAPIApi#getAllBuildingsUsingGET");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // name (optional)

BuildingAPIApi *apiInstance = [[BuildingAPIApi alloc] init];

// Get all buildings
[apiInstance getAllBuildingsUsingGETWith:name
              completionHandler: ^(array[Building] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.BuildingAPIApi()

var opts = { 
  'name': name_example // {String} name
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllBuildingsUsingGET(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllBuildingsUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new BuildingAPIApi();
            var name = name_example;  // String | name (optional) 

            try
            {
                // Get all buildings
                array[Building] result = apiInstance.getAllBuildingsUsingGET(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BuildingAPIApi.getAllBuildingsUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BuildingAPIApi();
$name = name_example; // String | name

try {
    $result = $api_instance->getAllBuildingsUsingGET($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BuildingAPIApi->getAllBuildingsUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BuildingAPIApi;

my $api_instance = WWW::SwaggerClient::BuildingAPIApi->new();
my $name = name_example; # String | name

eval { 
    my $result = $api_instance->getAllBuildingsUsingGET(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BuildingAPIApi->getAllBuildingsUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BuildingAPIApi()
name = name_example # String | name (optional)

try: 
    # Get all buildings
    api_response = api_instance.get_all_buildings_using_get(name=name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildingAPIApi->getAllBuildingsUsingGET: %s\n" % e)

Parameters

Query parameters
Name Description
name
String
name

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getBuildingByIdUsingGET

Get a building by its id


/building/{id}

Usage and SDK Samples

curl -X GET "https://localhost/building/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BuildingAPIApi;

import java.io.File;
import java.util.*;

public class BuildingAPIApiExample {

    public static void main(String[] args) {
        
        BuildingAPIApi apiInstance = new BuildingAPIApi();
        Integer id = 56; // Integer | id
        try {
            Building result = apiInstance.getBuildingByIdUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BuildingAPIApi#getBuildingByIdUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BuildingAPIApi;

public class BuildingAPIApiExample {

    public static void main(String[] args) {
        BuildingAPIApi apiInstance = new BuildingAPIApi();
        Integer id = 56; // Integer | id
        try {
            Building result = apiInstance.getBuildingByIdUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BuildingAPIApi#getBuildingByIdUsingGET");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // id

BuildingAPIApi *apiInstance = [[BuildingAPIApi alloc] init];

// Get a building by its id
[apiInstance getBuildingByIdUsingGETWith:id
              completionHandler: ^(Building output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.BuildingAPIApi()

var id = 56; // {Integer} id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBuildingByIdUsingGET(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBuildingByIdUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new BuildingAPIApi();
            var id = 56;  // Integer | id

            try
            {
                // Get a building by its id
                Building result = apiInstance.getBuildingByIdUsingGET(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BuildingAPIApi.getBuildingByIdUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BuildingAPIApi();
$id = 56; // Integer | id

try {
    $result = $api_instance->getBuildingByIdUsingGET($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BuildingAPIApi->getBuildingByIdUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BuildingAPIApi;

my $api_instance = WWW::SwaggerClient::BuildingAPIApi->new();
my $id = 56; # Integer | id

eval { 
    my $result = $api_instance->getBuildingByIdUsingGET(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BuildingAPIApi->getBuildingByIdUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BuildingAPIApi()
id = 56 # Integer | id

try: 
    # Get a building by its id
    api_response = api_instance.get_building_by_id_using_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildingAPIApi->getBuildingByIdUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer (int32)
id
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getBuildingNearStopsUsingGET

Find near bus stops, maybe multiple bus stops with priority


/building/{id}/stops

Usage and SDK Samples

curl -X GET "https://localhost/building/{id}/stops"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BuildingAPIApi;

import java.io.File;
import java.util.*;

public class BuildingAPIApiExample {

    public static void main(String[] args) {
        
        BuildingAPIApi apiInstance = new BuildingAPIApi();
        Integer id = 56; // Integer | id
        try {
            array[StopInNavigation] result = apiInstance.getBuildingNearStopsUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BuildingAPIApi#getBuildingNearStopsUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BuildingAPIApi;

public class BuildingAPIApiExample {

    public static void main(String[] args) {
        BuildingAPIApi apiInstance = new BuildingAPIApi();
        Integer id = 56; // Integer | id
        try {
            array[StopInNavigation] result = apiInstance.getBuildingNearStopsUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BuildingAPIApi#getBuildingNearStopsUsingGET");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // id

BuildingAPIApi *apiInstance = [[BuildingAPIApi alloc] init];

// Find near bus stops, maybe multiple bus stops with priority
[apiInstance getBuildingNearStopsUsingGETWith:id
              completionHandler: ^(array[StopInNavigation] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.BuildingAPIApi()

var id = 56; // {Integer} id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBuildingNearStopsUsingGET(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBuildingNearStopsUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new BuildingAPIApi();
            var id = 56;  // Integer | id

            try
            {
                // Find near bus stops, maybe multiple bus stops with priority
                array[StopInNavigation] result = apiInstance.getBuildingNearStopsUsingGET(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BuildingAPIApi.getBuildingNearStopsUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BuildingAPIApi();
$id = 56; // Integer | id

try {
    $result = $api_instance->getBuildingNearStopsUsingGET($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BuildingAPIApi->getBuildingNearStopsUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BuildingAPIApi;

my $api_instance = WWW::SwaggerClient::BuildingAPIApi->new();
my $id = 56; # Integer | id

eval { 
    my $result = $api_instance->getBuildingNearStopsUsingGET(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BuildingAPIApi->getBuildingNearStopsUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BuildingAPIApi()
id = 56 # Integer | id

try: 
    # Find near bus stops, maybe multiple bus stops with priority
    api_response = api_instance.get_building_near_stops_using_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildingAPIApi->getBuildingNearStopsUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer (int32)
id
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


BusAPI

getAllBusUsingGET

Get all buses


/bus

Usage and SDK Samples

curl -X GET "https://localhost/bus"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BusAPIApi;

import java.io.File;
import java.util.*;

public class BusAPIApiExample {

    public static void main(String[] args) {
        
        BusAPIApi apiInstance = new BusAPIApi();
        try {
            array[Bus] result = apiInstance.getAllBusUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusAPIApi#getAllBusUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BusAPIApi;

public class BusAPIApiExample {

    public static void main(String[] args) {
        BusAPIApi apiInstance = new BusAPIApi();
        try {
            array[Bus] result = apiInstance.getAllBusUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusAPIApi#getAllBusUsingGET");
            e.printStackTrace();
        }
    }
}

BusAPIApi *apiInstance = [[BusAPIApi alloc] init];

// Get all buses
[apiInstance getAllBusUsingGETWithCompletionHandler: 
              ^(array[Bus] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.BusAPIApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllBusUsingGET(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllBusUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new BusAPIApi();

            try
            {
                // Get all buses
                array[Bus] result = apiInstance.getAllBusUsingGET();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BusAPIApi.getAllBusUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BusAPIApi();

try {
    $result = $api_instance->getAllBusUsingGET();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BusAPIApi->getAllBusUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BusAPIApi;

my $api_instance = WWW::SwaggerClient::BusAPIApi->new();

eval { 
    my $result = $api_instance->getAllBusUsingGET();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BusAPIApi->getAllBusUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BusAPIApi()

try: 
    # Get all buses
    api_response = api_instance.get_all_bus_using_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BusAPIApi->getAllBusUsingGET: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getBusUsingGET

Get a bus by name


/bus/{busName}

Usage and SDK Samples

curl -X GET "https://localhost/bus/{busName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BusAPIApi;

import java.io.File;
import java.util.*;

public class BusAPIApiExample {

    public static void main(String[] args) {
        
        BusAPIApi apiInstance = new BusAPIApi();
        String busName = busName_example; // String | busName
        try {
            Bus result = apiInstance.getBusUsingGET(busName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusAPIApi#getBusUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BusAPIApi;

public class BusAPIApiExample {

    public static void main(String[] args) {
        BusAPIApi apiInstance = new BusAPIApi();
        String busName = busName_example; // String | busName
        try {
            Bus result = apiInstance.getBusUsingGET(busName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusAPIApi#getBusUsingGET");
            e.printStackTrace();
        }
    }
}
String *busName = busName_example; // busName

BusAPIApi *apiInstance = [[BusAPIApi alloc] init];

// Get a bus by name
[apiInstance getBusUsingGETWith:busName
              completionHandler: ^(Bus output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.BusAPIApi()

var busName = busName_example; // {String} busName


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBusUsingGET(busName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBusUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new BusAPIApi();
            var busName = busName_example;  // String | busName

            try
            {
                // Get a bus by name
                Bus result = apiInstance.getBusUsingGET(busName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BusAPIApi.getBusUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BusAPIApi();
$busName = busName_example; // String | busName

try {
    $result = $api_instance->getBusUsingGET($busName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BusAPIApi->getBusUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BusAPIApi;

my $api_instance = WWW::SwaggerClient::BusAPIApi->new();
my $busName = busName_example; # String | busName

eval { 
    my $result = $api_instance->getBusUsingGET(busName => $busName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BusAPIApi->getBusUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BusAPIApi()
busName = busName_example # String | busName

try: 
    # Get a bus by name
    api_response = api_instance.get_bus_using_get(busName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BusAPIApi->getBusUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
busName*
String
busName
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getRouteUsingGET

Get a bus's route by bus name


/bus/{busName}/route

Usage and SDK Samples

curl -X GET "https://localhost/bus/{busName}/route"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BusAPIApi;

import java.io.File;
import java.util.*;

public class BusAPIApiExample {

    public static void main(String[] args) {
        
        BusAPIApi apiInstance = new BusAPIApi();
        String busName = busName_example; // String | busName
        try {
            array[Stop] result = apiInstance.getRouteUsingGET(busName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusAPIApi#getRouteUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BusAPIApi;

public class BusAPIApiExample {

    public static void main(String[] args) {
        BusAPIApi apiInstance = new BusAPIApi();
        String busName = busName_example; // String | busName
        try {
            array[Stop] result = apiInstance.getRouteUsingGET(busName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusAPIApi#getRouteUsingGET");
            e.printStackTrace();
        }
    }
}
String *busName = busName_example; // busName

BusAPIApi *apiInstance = [[BusAPIApi alloc] init];

// Get a bus's route by bus name
[apiInstance getRouteUsingGETWith:busName
              completionHandler: ^(array[Stop] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.BusAPIApi()

var busName = busName_example; // {String} busName


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRouteUsingGET(busName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRouteUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new BusAPIApi();
            var busName = busName_example;  // String | busName

            try
            {
                // Get a bus's route by bus name
                array[Stop] result = apiInstance.getRouteUsingGET(busName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BusAPIApi.getRouteUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BusAPIApi();
$busName = busName_example; // String | busName

try {
    $result = $api_instance->getRouteUsingGET($busName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BusAPIApi->getRouteUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BusAPIApi;

my $api_instance = WWW::SwaggerClient::BusAPIApi->new();
my $busName = busName_example; # String | busName

eval { 
    my $result = $api_instance->getRouteUsingGET(busName => $busName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BusAPIApi->getRouteUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BusAPIApi()
busName = busName_example # String | busName

try: 
    # Get a bus's route by bus name
    api_response = api_instance.get_route_using_get(busName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BusAPIApi->getRouteUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
busName*
String
busName
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getTimeIntervalUsingGET

Get time interval between 2 buses by bus name


/bus/{busName}/interval

Usage and SDK Samples

curl -X GET "https://localhost/bus/{busName}/interval"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BusAPIApi;

import java.io.File;
import java.util.*;

public class BusAPIApiExample {

    public static void main(String[] args) {
        
        BusAPIApi apiInstance = new BusAPIApi();
        String busName = busName_example; // String | busName
        try {
            'Integer' result = apiInstance.getTimeIntervalUsingGET(busName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusAPIApi#getTimeIntervalUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BusAPIApi;

public class BusAPIApiExample {

    public static void main(String[] args) {
        BusAPIApi apiInstance = new BusAPIApi();
        String busName = busName_example; // String | busName
        try {
            'Integer' result = apiInstance.getTimeIntervalUsingGET(busName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BusAPIApi#getTimeIntervalUsingGET");
            e.printStackTrace();
        }
    }
}
String *busName = busName_example; // busName

BusAPIApi *apiInstance = [[BusAPIApi alloc] init];

// Get time interval between 2 buses by bus name
[apiInstance getTimeIntervalUsingGETWith:busName
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.BusAPIApi()

var busName = busName_example; // {String} busName


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTimeIntervalUsingGET(busName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTimeIntervalUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new BusAPIApi();
            var busName = busName_example;  // String | busName

            try
            {
                // Get time interval between 2 buses by bus name
                'Integer' result = apiInstance.getTimeIntervalUsingGET(busName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BusAPIApi.getTimeIntervalUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BusAPIApi();
$busName = busName_example; // String | busName

try {
    $result = $api_instance->getTimeIntervalUsingGET($busName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BusAPIApi->getTimeIntervalUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BusAPIApi;

my $api_instance = WWW::SwaggerClient::BusAPIApi->new();
my $busName = busName_example; # String | busName

eval { 
    my $result = $api_instance->getTimeIntervalUsingGET(busName => $busName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BusAPIApi->getTimeIntervalUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BusAPIApi()
busName = busName_example # String | busName

try: 
    # Get time interval between 2 buses by bus name
    api_response = api_instance.get_time_interval_using_get(busName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BusAPIApi->getTimeIntervalUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
busName*
String
busName
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


NavigationAPI

navigateUsingGET

Get navigation information, need :from and :to as query parameters.


/navigation

Usage and SDK Samples

curl -X GET "https://localhost/navigation?from=&to="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NavigationAPIApi;

import java.io.File;
import java.util.*;

public class NavigationAPIApiExample {

    public static void main(String[] args) {
        
        NavigationAPIApi apiInstance = new NavigationAPIApi();
        Integer from = 56; // Integer | from
        Integer to = 56; // Integer | to
        try {
            array[NaviS] result = apiInstance.navigateUsingGET(from, to);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NavigationAPIApi#navigateUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NavigationAPIApi;

public class NavigationAPIApiExample {

    public static void main(String[] args) {
        NavigationAPIApi apiInstance = new NavigationAPIApi();
        Integer from = 56; // Integer | from
        Integer to = 56; // Integer | to
        try {
            array[NaviS] result = apiInstance.navigateUsingGET(from, to);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NavigationAPIApi#navigateUsingGET");
            e.printStackTrace();
        }
    }
}
Integer *from = 56; // from
Integer *to = 56; // to

NavigationAPIApi *apiInstance = [[NavigationAPIApi alloc] init];

// Get navigation information, need :from and :to as query parameters.
[apiInstance navigateUsingGETWith:from
    to:to
              completionHandler: ^(array[NaviS] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.NavigationAPIApi()

var from = 56; // {Integer} from

var to = 56; // {Integer} to


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.navigateUsingGET(from, to, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class navigateUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new NavigationAPIApi();
            var from = 56;  // Integer | from
            var to = 56;  // Integer | to

            try
            {
                // Get navigation information, need :from and :to as query parameters.
                array[NaviS] result = apiInstance.navigateUsingGET(from, to);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NavigationAPIApi.navigateUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NavigationAPIApi();
$from = 56; // Integer | from
$to = 56; // Integer | to

try {
    $result = $api_instance->navigateUsingGET($from, $to);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NavigationAPIApi->navigateUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NavigationAPIApi;

my $api_instance = WWW::SwaggerClient::NavigationAPIApi->new();
my $from = 56; # Integer | from
my $to = 56; # Integer | to

eval { 
    my $result = $api_instance->navigateUsingGET(from => $from, to => $to);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NavigationAPIApi->navigateUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NavigationAPIApi()
from = 56 # Integer | from
to = 56 # Integer | to

try: 
    # Get navigation information, need :from and :to as query parameters.
    api_response = api_instance.navigate_using_get(from, to)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NavigationAPIApi->navigateUsingGET: %s\n" % e)

Parameters

Query parameters
Name Description
from*
Integer (int32)
from
Required
to*
Integer (int32)
to
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


PromotionsAPI

getAllPromotionUsingGET

Get a promotion by ID


/promotion

Usage and SDK Samples

curl -X GET "https://localhost/promotion"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PromotionsAPIApi;

import java.io.File;
import java.util.*;

public class PromotionsAPIApiExample {

    public static void main(String[] args) {
        
        PromotionsAPIApi apiInstance = new PromotionsAPIApi();
        try {
            array[Promotion] result = apiInstance.getAllPromotionUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PromotionsAPIApi#getAllPromotionUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PromotionsAPIApi;

public class PromotionsAPIApiExample {

    public static void main(String[] args) {
        PromotionsAPIApi apiInstance = new PromotionsAPIApi();
        try {
            array[Promotion] result = apiInstance.getAllPromotionUsingGET();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PromotionsAPIApi#getAllPromotionUsingGET");
            e.printStackTrace();
        }
    }
}

PromotionsAPIApi *apiInstance = [[PromotionsAPIApi alloc] init];

// Get a promotion by ID
[apiInstance getAllPromotionUsingGETWithCompletionHandler: 
              ^(array[Promotion] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PromotionsAPIApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllPromotionUsingGET(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllPromotionUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new PromotionsAPIApi();

            try
            {
                // Get a promotion by ID
                array[Promotion] result = apiInstance.getAllPromotionUsingGET();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PromotionsAPIApi.getAllPromotionUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PromotionsAPIApi();

try {
    $result = $api_instance->getAllPromotionUsingGET();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PromotionsAPIApi->getAllPromotionUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PromotionsAPIApi;

my $api_instance = WWW::SwaggerClient::PromotionsAPIApi->new();

eval { 
    my $result = $api_instance->getAllPromotionUsingGET();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PromotionsAPIApi->getAllPromotionUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PromotionsAPIApi()

try: 
    # Get a promotion by ID
    api_response = api_instance.get_all_promotion_using_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PromotionsAPIApi->getAllPromotionUsingGET: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getPromotionByBuildingUsingGET

Get the promotions by building_id


/promotion/building/{building_id}

Usage and SDK Samples

curl -X GET "https://localhost/promotion/building/{building_id}?endtime=&starttime="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PromotionsAPIApi;

import java.io.File;
import java.util.*;

public class PromotionsAPIApiExample {

    public static void main(String[] args) {
        
        PromotionsAPIApi apiInstance = new PromotionsAPIApi();
        Integer buildingId = 56; // Integer | building_id
        Date endtime = 2013-10-20T19:20:30+01:00; // Date | endtime
        Date starttime = 2013-10-20T19:20:30+01:00; // Date | starttime
        try {
            array[Promotion] result = apiInstance.getPromotionByBuildingUsingGET(buildingId, endtime, starttime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PromotionsAPIApi#getPromotionByBuildingUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PromotionsAPIApi;

public class PromotionsAPIApiExample {

    public static void main(String[] args) {
        PromotionsAPIApi apiInstance = new PromotionsAPIApi();
        Integer buildingId = 56; // Integer | building_id
        Date endtime = 2013-10-20T19:20:30+01:00; // Date | endtime
        Date starttime = 2013-10-20T19:20:30+01:00; // Date | starttime
        try {
            array[Promotion] result = apiInstance.getPromotionByBuildingUsingGET(buildingId, endtime, starttime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PromotionsAPIApi#getPromotionByBuildingUsingGET");
            e.printStackTrace();
        }
    }
}
Integer *buildingId = 56; // building_id
Date *endtime = 2013-10-20T19:20:30+01:00; // endtime (optional)
Date *starttime = 2013-10-20T19:20:30+01:00; // starttime (optional)

PromotionsAPIApi *apiInstance = [[PromotionsAPIApi alloc] init];

// Get the promotions by building_id
[apiInstance getPromotionByBuildingUsingGETWith:buildingId
    endtime:endtime
    starttime:starttime
              completionHandler: ^(array[Promotion] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PromotionsAPIApi()

var buildingId = 56; // {Integer} building_id

var opts = { 
  'endtime': 2013-10-20T19:20:30+01:00, // {Date} endtime
  'starttime': 2013-10-20T19:20:30+01:00 // {Date} starttime
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPromotionByBuildingUsingGET(buildingId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPromotionByBuildingUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new PromotionsAPIApi();
            var buildingId = 56;  // Integer | building_id
            var endtime = 2013-10-20T19:20:30+01:00;  // Date | endtime (optional) 
            var starttime = 2013-10-20T19:20:30+01:00;  // Date | starttime (optional) 

            try
            {
                // Get the promotions by building_id
                array[Promotion] result = apiInstance.getPromotionByBuildingUsingGET(buildingId, endtime, starttime);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PromotionsAPIApi.getPromotionByBuildingUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PromotionsAPIApi();
$buildingId = 56; // Integer | building_id
$endtime = 2013-10-20T19:20:30+01:00; // Date | endtime
$starttime = 2013-10-20T19:20:30+01:00; // Date | starttime

try {
    $result = $api_instance->getPromotionByBuildingUsingGET($buildingId, $endtime, $starttime);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PromotionsAPIApi->getPromotionByBuildingUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PromotionsAPIApi;

my $api_instance = WWW::SwaggerClient::PromotionsAPIApi->new();
my $buildingId = 56; # Integer | building_id
my $endtime = 2013-10-20T19:20:30+01:00; # Date | endtime
my $starttime = 2013-10-20T19:20:30+01:00; # Date | starttime

eval { 
    my $result = $api_instance->getPromotionByBuildingUsingGET(buildingId => $buildingId, endtime => $endtime, starttime => $starttime);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PromotionsAPIApi->getPromotionByBuildingUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PromotionsAPIApi()
buildingId = 56 # Integer | building_id
endtime = 2013-10-20T19:20:30+01:00 # Date | endtime (optional)
starttime = 2013-10-20T19:20:30+01:00 # Date | starttime (optional)

try: 
    # Get the promotions by building_id
    api_response = api_instance.get_promotion_by_building_using_get(buildingId, endtime=endtime, starttime=starttime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PromotionsAPIApi->getPromotionByBuildingUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
building_id*
Integer (int32)
building_id
Required
Query parameters
Name Description
endtime
Date (date-time)
endtime
starttime
Date (date-time)
starttime

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getPromotionUsingGET

Get a promotion by ID


/promotion/{id}

Usage and SDK Samples

curl -X GET "https://localhost/promotion/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PromotionsAPIApi;

import java.io.File;
import java.util.*;

public class PromotionsAPIApiExample {

    public static void main(String[] args) {
        
        PromotionsAPIApi apiInstance = new PromotionsAPIApi();
        Integer id = 56; // Integer | id
        try {
            Promotion result = apiInstance.getPromotionUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PromotionsAPIApi#getPromotionUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PromotionsAPIApi;

public class PromotionsAPIApiExample {

    public static void main(String[] args) {
        PromotionsAPIApi apiInstance = new PromotionsAPIApi();
        Integer id = 56; // Integer | id
        try {
            Promotion result = apiInstance.getPromotionUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PromotionsAPIApi#getPromotionUsingGET");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // id

PromotionsAPIApi *apiInstance = [[PromotionsAPIApi alloc] init];

// Get a promotion by ID
[apiInstance getPromotionUsingGETWith:id
              completionHandler: ^(Promotion output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.PromotionsAPIApi()

var id = 56; // {Integer} id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPromotionUsingGET(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPromotionUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new PromotionsAPIApi();
            var id = 56;  // Integer | id

            try
            {
                // Get a promotion by ID
                Promotion result = apiInstance.getPromotionUsingGET(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PromotionsAPIApi.getPromotionUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PromotionsAPIApi();
$id = 56; // Integer | id

try {
    $result = $api_instance->getPromotionUsingGET($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PromotionsAPIApi->getPromotionUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PromotionsAPIApi;

my $api_instance = WWW::SwaggerClient::PromotionsAPIApi->new();
my $id = 56; # Integer | id

eval { 
    my $result = $api_instance->getPromotionUsingGET(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PromotionsAPIApi->getPromotionUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PromotionsAPIApi()
id = 56 # Integer | id

try: 
    # Get a promotion by ID
    api_response = api_instance.get_promotion_using_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PromotionsAPIApi->getPromotionUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer (int32)
id
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


StopAPI

getAllStopUsingGET

Get all stops


/stop

Usage and SDK Samples

curl -X GET "https://localhost/stop?name="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StopAPIApi;

import java.io.File;
import java.util.*;

public class StopAPIApiExample {

    public static void main(String[] args) {
        
        StopAPIApi apiInstance = new StopAPIApi();
        String name = name_example; // String | name
        try {
            array[Stop] result = apiInstance.getAllStopUsingGET(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StopAPIApi#getAllStopUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StopAPIApi;

public class StopAPIApiExample {

    public static void main(String[] args) {
        StopAPIApi apiInstance = new StopAPIApi();
        String name = name_example; // String | name
        try {
            array[Stop] result = apiInstance.getAllStopUsingGET(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StopAPIApi#getAllStopUsingGET");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // name (optional)

StopAPIApi *apiInstance = [[StopAPIApi alloc] init];

// Get all stops
[apiInstance getAllStopUsingGETWith:name
              completionHandler: ^(array[Stop] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.StopAPIApi()

var opts = { 
  'name': name_example // {String} name
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllStopUsingGET(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllStopUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new StopAPIApi();
            var name = name_example;  // String | name (optional) 

            try
            {
                // Get all stops
                array[Stop] result = apiInstance.getAllStopUsingGET(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StopAPIApi.getAllStopUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StopAPIApi();
$name = name_example; // String | name

try {
    $result = $api_instance->getAllStopUsingGET($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StopAPIApi->getAllStopUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StopAPIApi;

my $api_instance = WWW::SwaggerClient::StopAPIApi->new();
my $name = name_example; # String | name

eval { 
    my $result = $api_instance->getAllStopUsingGET(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StopAPIApi->getAllStopUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.StopAPIApi()
name = name_example # String | name (optional)

try: 
    # Get all stops
    api_response = api_instance.get_all_stop_using_get(name=name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StopAPIApi->getAllStopUsingGET: %s\n" % e)

Parameters

Query parameters
Name Description
name
String
name

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getRunningThroughBusUsingGET

Get all buses running through the stop.


/stop/{name}/bus

Usage and SDK Samples

curl -X GET "https://localhost/stop/{name}/bus?name="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StopAPIApi;

import java.io.File;
import java.util.*;

public class StopAPIApiExample {

    public static void main(String[] args) {
        
        StopAPIApi apiInstance = new StopAPIApi();
        String name = name_example; // String | name
        try {
            array[Bus] result = apiInstance.getRunningThroughBusUsingGET(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StopAPIApi#getRunningThroughBusUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StopAPIApi;

public class StopAPIApiExample {

    public static void main(String[] args) {
        StopAPIApi apiInstance = new StopAPIApi();
        String name = name_example; // String | name
        try {
            array[Bus] result = apiInstance.getRunningThroughBusUsingGET(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StopAPIApi#getRunningThroughBusUsingGET");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // name (optional)

StopAPIApi *apiInstance = [[StopAPIApi alloc] init];

// Get all buses running through the stop.
[apiInstance getRunningThroughBusUsingGETWith:name
              completionHandler: ^(array[Bus] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.StopAPIApi()

var opts = { 
  'name': name_example // {String} name
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRunningThroughBusUsingGET(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRunningThroughBusUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new StopAPIApi();
            var name = name_example;  // String | name (optional) 

            try
            {
                // Get all buses running through the stop.
                array[Bus] result = apiInstance.getRunningThroughBusUsingGET(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StopAPIApi.getRunningThroughBusUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StopAPIApi();
$name = name_example; // String | name

try {
    $result = $api_instance->getRunningThroughBusUsingGET($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StopAPIApi->getRunningThroughBusUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StopAPIApi;

my $api_instance = WWW::SwaggerClient::StopAPIApi->new();
my $name = name_example; # String | name

eval { 
    my $result = $api_instance->getRunningThroughBusUsingGET(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StopAPIApi->getRunningThroughBusUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.StopAPIApi()
name = name_example # String | name (optional)

try: 
    # Get all buses running through the stop.
    api_response = api_instance.get_running_through_bus_using_get(name=name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StopAPIApi->getRunningThroughBusUsingGET: %s\n" % e)

Parameters

Query parameters
Name Description
name
String
name

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getStopUsingGET

Get a stop by name


/stop/{name}

Usage and SDK Samples

curl -X GET "https://localhost/stop/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StopAPIApi;

import java.io.File;
import java.util.*;

public class StopAPIApiExample {

    public static void main(String[] args) {
        
        StopAPIApi apiInstance = new StopAPIApi();
        String name = name_example; // String | name
        try {
            Stop result = apiInstance.getStopUsingGET(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StopAPIApi#getStopUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StopAPIApi;

public class StopAPIApiExample {

    public static void main(String[] args) {
        StopAPIApi apiInstance = new StopAPIApi();
        String name = name_example; // String | name
        try {
            Stop result = apiInstance.getStopUsingGET(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StopAPIApi#getStopUsingGET");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // name

StopAPIApi *apiInstance = [[StopAPIApi alloc] init];

// Get a stop by name
[apiInstance getStopUsingGETWith:name
              completionHandler: ^(Stop output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.StopAPIApi()

var name = name_example; // {String} name


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getStopUsingGET(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getStopUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new StopAPIApi();
            var name = name_example;  // String | name

            try
            {
                // Get a stop by name
                Stop result = apiInstance.getStopUsingGET(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StopAPIApi.getStopUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\StopAPIApi();
$name = name_example; // String | name

try {
    $result = $api_instance->getStopUsingGET($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StopAPIApi->getStopUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StopAPIApi;

my $api_instance = WWW::SwaggerClient::StopAPIApi->new();
my $name = name_example; # String | name

eval { 
    my $result = $api_instance->getStopUsingGET(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StopAPIApi->getStopUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.StopAPIApi()
name = name_example # String | name

try: 
    # Get a stop by name
    api_response = api_instance.get_stop_using_get(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StopAPIApi->getStopUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
name
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


UserAPI

addEventUsingPOST

Add a event to a user


/user/{user_id}/event

Usage and SDK Samples

curl -X POST "https://localhost/user/{user_id}/event"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserAPIApi;

import java.io.File;
import java.util.*;

public class UserAPIApiExample {

    public static void main(String[] args) {
        
        UserAPIApi apiInstance = new UserAPIApi();
        Event event = ; // Event | event
        try {
            'Boolean' result = apiInstance.addEventUsingPOST(event);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#addEventUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserAPIApi;

public class UserAPIApiExample {

    public static void main(String[] args) {
        UserAPIApi apiInstance = new UserAPIApi();
        Event event = ; // Event | event
        try {
            'Boolean' result = apiInstance.addEventUsingPOST(event);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#addEventUsingPOST");
            e.printStackTrace();
        }
    }
}
Event *event = ; // event

UserAPIApi *apiInstance = [[UserAPIApi alloc] init];

// Add a event to a user
[apiInstance addEventUsingPOSTWith:event
              completionHandler: ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UserAPIApi()

var event = ; // {Event} event


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addEventUsingPOST(event, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addEventUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new UserAPIApi();
            var event = new Event(); // Event | event

            try
            {
                // Add a event to a user
                'Boolean' result = apiInstance.addEventUsingPOST(event);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserAPIApi.addEventUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserAPIApi();
$event = ; // Event | event

try {
    $result = $api_instance->addEventUsingPOST($event);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserAPIApi->addEventUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserAPIApi;

my $api_instance = WWW::SwaggerClient::UserAPIApi->new();
my $event = WWW::SwaggerClient::Object::Event->new(); # Event | event

eval { 
    my $result = $api_instance->addEventUsingPOST(event => $event);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserAPIApi->addEventUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserAPIApi()
event =  # Event | event

try: 
    # Add a event to a user
    api_response = api_instance.add_event_using_post(event)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserAPIApi->addEventUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
event *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


addUserUsingPOST

Add a user


/user

Usage and SDK Samples

curl -X POST "https://localhost/user"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserAPIApi;

import java.io.File;
import java.util.*;

public class UserAPIApiExample {

    public static void main(String[] args) {
        
        UserAPIApi apiInstance = new UserAPIApi();
        User user = ; // User | user
        try {
            'Boolean' result = apiInstance.addUserUsingPOST(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#addUserUsingPOST");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserAPIApi;

public class UserAPIApiExample {

    public static void main(String[] args) {
        UserAPIApi apiInstance = new UserAPIApi();
        User user = ; // User | user
        try {
            'Boolean' result = apiInstance.addUserUsingPOST(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#addUserUsingPOST");
            e.printStackTrace();
        }
    }
}
User *user = ; // user

UserAPIApi *apiInstance = [[UserAPIApi alloc] init];

// Add a user
[apiInstance addUserUsingPOSTWith:user
              completionHandler: ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UserAPIApi()

var user = ; // {User} user


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addUserUsingPOST(user, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addUserUsingPOSTExample
    {
        public void main()
        {
            
            var apiInstance = new UserAPIApi();
            var user = new User(); // User | user

            try
            {
                // Add a user
                'Boolean' result = apiInstance.addUserUsingPOST(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserAPIApi.addUserUsingPOST: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserAPIApi();
$user = ; // User | user

try {
    $result = $api_instance->addUserUsingPOST($user);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserAPIApi->addUserUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserAPIApi;

my $api_instance = WWW::SwaggerClient::UserAPIApi->new();
my $user = WWW::SwaggerClient::Object::User->new(); # User | user

eval { 
    my $result = $api_instance->addUserUsingPOST(user => $user);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserAPIApi->addUserUsingPOST: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserAPIApi()
user =  # User | user

try: 
    # Add a user
    api_response = api_instance.add_user_using_post(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserAPIApi->addUserUsingPOST: %s\n" % e)

Parameters

Body parameters
Name Description
user *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


findByIdUsingGET

Find user by id


/user/{id}

Usage and SDK Samples

curl -X GET "https://localhost/user/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserAPIApi;

import java.io.File;
import java.util.*;

public class UserAPIApiExample {

    public static void main(String[] args) {
        
        UserAPIApi apiInstance = new UserAPIApi();
        Integer id = 56; // Integer | id
        try {
            User result = apiInstance.findByIdUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#findByIdUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserAPIApi;

public class UserAPIApiExample {

    public static void main(String[] args) {
        UserAPIApi apiInstance = new UserAPIApi();
        Integer id = 56; // Integer | id
        try {
            User result = apiInstance.findByIdUsingGET(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#findByIdUsingGET");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // id

UserAPIApi *apiInstance = [[UserAPIApi alloc] init];

// Find user by id
[apiInstance findByIdUsingGETWith:id
              completionHandler: ^(User output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UserAPIApi()

var id = 56; // {Integer} id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findByIdUsingGET(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class findByIdUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new UserAPIApi();
            var id = 56;  // Integer | id

            try
            {
                // Find user by id
                User result = apiInstance.findByIdUsingGET(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserAPIApi.findByIdUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserAPIApi();
$id = 56; // Integer | id

try {
    $result = $api_instance->findByIdUsingGET($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserAPIApi->findByIdUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserAPIApi;

my $api_instance = WWW::SwaggerClient::UserAPIApi->new();
my $id = 56; # Integer | id

eval { 
    my $result = $api_instance->findByIdUsingGET(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserAPIApi->findByIdUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserAPIApi()
id = 56 # Integer | id

try: 
    # Find user by id
    api_response = api_instance.find_by_id_using_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserAPIApi->findByIdUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer (int32)
id
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


getUserEventsUsingGET

Search User's events, need be restricted by :starttime and :endtime


/user/{user_id}/events

Usage and SDK Samples

curl -X GET "https://localhost/user/{user_id}/events?endtime=&starttime="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserAPIApi;

import java.io.File;
import java.util.*;

public class UserAPIApiExample {

    public static void main(String[] args) {
        
        UserAPIApi apiInstance = new UserAPIApi();
        Integer userId = 56; // Integer | user_id
        Date endtime = 2013-10-20T19:20:30+01:00; // Date | endtime
        Date starttime = 2013-10-20T19:20:30+01:00; // Date | starttime
        try {
            array[Event] result = apiInstance.getUserEventsUsingGET(userId, endtime, starttime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#getUserEventsUsingGET");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserAPIApi;

public class UserAPIApiExample {

    public static void main(String[] args) {
        UserAPIApi apiInstance = new UserAPIApi();
        Integer userId = 56; // Integer | user_id
        Date endtime = 2013-10-20T19:20:30+01:00; // Date | endtime
        Date starttime = 2013-10-20T19:20:30+01:00; // Date | starttime
        try {
            array[Event] result = apiInstance.getUserEventsUsingGET(userId, endtime, starttime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#getUserEventsUsingGET");
            e.printStackTrace();
        }
    }
}
Integer *userId = 56; // user_id
Date *endtime = 2013-10-20T19:20:30+01:00; // endtime (optional)
Date *starttime = 2013-10-20T19:20:30+01:00; // starttime (optional)

UserAPIApi *apiInstance = [[UserAPIApi alloc] init];

// Search User's events, need be restricted by :starttime and :endtime
[apiInstance getUserEventsUsingGETWith:userId
    endtime:endtime
    starttime:starttime
              completionHandler: ^(array[Event] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UserAPIApi()

var userId = 56; // {Integer} user_id

var opts = { 
  'endtime': 2013-10-20T19:20:30+01:00, // {Date} endtime
  'starttime': 2013-10-20T19:20:30+01:00 // {Date} starttime
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserEventsUsingGET(userId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserEventsUsingGETExample
    {
        public void main()
        {
            
            var apiInstance = new UserAPIApi();
            var userId = 56;  // Integer | user_id
            var endtime = 2013-10-20T19:20:30+01:00;  // Date | endtime (optional) 
            var starttime = 2013-10-20T19:20:30+01:00;  // Date | starttime (optional) 

            try
            {
                // Search User's events, need be restricted by :starttime and :endtime
                array[Event] result = apiInstance.getUserEventsUsingGET(userId, endtime, starttime);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserAPIApi.getUserEventsUsingGET: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserAPIApi();
$userId = 56; // Integer | user_id
$endtime = 2013-10-20T19:20:30+01:00; // Date | endtime
$starttime = 2013-10-20T19:20:30+01:00; // Date | starttime

try {
    $result = $api_instance->getUserEventsUsingGET($userId, $endtime, $starttime);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserAPIApi->getUserEventsUsingGET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserAPIApi;

my $api_instance = WWW::SwaggerClient::UserAPIApi->new();
my $userId = 56; # Integer | user_id
my $endtime = 2013-10-20T19:20:30+01:00; # Date | endtime
my $starttime = 2013-10-20T19:20:30+01:00; # Date | starttime

eval { 
    my $result = $api_instance->getUserEventsUsingGET(userId => $userId, endtime => $endtime, starttime => $starttime);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserAPIApi->getUserEventsUsingGET: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserAPIApi()
userId = 56 # Integer | user_id
endtime = 2013-10-20T19:20:30+01:00 # Date | endtime (optional)
starttime = 2013-10-20T19:20:30+01:00 # Date | starttime (optional)

try: 
    # Search User's events, need be restricted by :starttime and :endtime
    api_response = api_instance.get_user_events_using_get(userId, endtime=endtime, starttime=starttime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserAPIApi->getUserEventsUsingGET: %s\n" % e)

Parameters

Path parameters
Name Description
user_id*
Integer (int32)
user_id
Required
Query parameters
Name Description
endtime
Date (date-time)
endtime
starttime
Date (date-time)
starttime

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found


updateUsingPUT

Update user information


/user

Usage and SDK Samples

curl -X PUT "https://localhost/user"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserAPIApi;

import java.io.File;
import java.util.*;

public class UserAPIApiExample {

    public static void main(String[] args) {
        
        UserAPIApi apiInstance = new UserAPIApi();
        User user = ; // User | user
        try {
            'Boolean' result = apiInstance.updateUsingPUT(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#updateUsingPUT");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserAPIApi;

public class UserAPIApiExample {

    public static void main(String[] args) {
        UserAPIApi apiInstance = new UserAPIApi();
        User user = ; // User | user
        try {
            'Boolean' result = apiInstance.updateUsingPUT(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserAPIApi#updateUsingPUT");
            e.printStackTrace();
        }
    }
}
User *user = ; // user

UserAPIApi *apiInstance = [[UserAPIApi alloc] init];

// Update user information
[apiInstance updateUsingPUTWith:user
              completionHandler: ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDocumentation = require('api_documentation');

var api = new ApiDocumentation.UserAPIApi()

var user = ; // {User} user


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateUsingPUT(user, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateUsingPUTExample
    {
        public void main()
        {
            
            var apiInstance = new UserAPIApi();
            var user = new User(); // User | user

            try
            {
                // Update user information
                'Boolean' result = apiInstance.updateUsingPUT(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserAPIApi.updateUsingPUT: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserAPIApi();
$user = ; // User | user

try {
    $result = $api_instance->updateUsingPUT($user);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserAPIApi->updateUsingPUT: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserAPIApi;

my $api_instance = WWW::SwaggerClient::UserAPIApi->new();
my $user = WWW::SwaggerClient::Object::User->new(); # User | user

eval { 
    my $result = $api_instance->updateUsingPUT(user => $user);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserAPIApi->updateUsingPUT: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserAPIApi()
user =  # User | user

try: 
    # Update user information
    api_response = api_instance.update_using_put(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserAPIApi->updateUsingPUT: %s\n" % e)

Parameters

Body parameters
Name Description
user *

Responses

Status: 200 - OK

Status: 201 - Created

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found