All URIs are relative to https://topal.vitan.ch:9001, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
countriesDelete() | DELETE /api/v1/clients/{clientId}/countries/{id} | Delete country |
countriesGet() | GET /api/v1/clients/{clientId}/countries | Retreives list of countries |
countriesGetByCode() | GET /api/v1/clients/{clientId}/countries/bycode/{code} | Get country by code |
countriesGet_0() | GET /api/v1/clients/{clientId}/countries/{id} | Get country by id |
countriesPost() | POST /api/v1/clients/{clientId}/countries | Save country |
countriesDelete($id, $client_id): object
Delete country
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\CountriesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = 56; // int
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->countriesDelete($id, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CountriesApi->countriesDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
client_id | string |
object
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
countriesGet($client_id): \OpenAPI\Client\Model\Country[]
Retreives list of countries
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\CountriesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->countriesGet($client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CountriesApi->countriesGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
client_id | string |
\OpenAPI\Client\Model\Country[]
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
countriesGetByCode($code, $client_id): \OpenAPI\Client\Model\Country
Get country by code
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\CountriesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$code = 'code_example'; // string
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->countriesGetByCode($code, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CountriesApi->countriesGetByCode: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
code | string | ||
client_id | string |
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
countriesGet_0($id, $client_id): \OpenAPI\Client\Model\Country
Get country by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\CountriesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = 56; // int
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->countriesGet_0($id, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CountriesApi->countriesGet_0: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
client_id | string |
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
countriesPost($client_id, $country): \OpenAPI\Client\Model\Country
Save country
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\CountriesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$client_id = 'client_id_example'; // string
$country = new \OpenAPI\Client\Model\Country(); // \OpenAPI\Client\Model\Country
try {
$result = $apiInstance->countriesPost($client_id, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CountriesApi->countriesPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
client_id | string | ||
country | \OpenAPI\Client\Model\Country |
No authorization required
- Content-Type:
application/json
,text/json
,application/xml
,text/xml
,application/x-www-form-urlencoded
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]