An error occurred:"+escape(e.message+"",true)+""}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=="undefined"&&typeof exports==="object"){module.exports=marked}else if(typeof define==="function"&&define.amd){define(function(){return marked})}else{this.marked=marked}}).call(function(){return this||(typeof window!=="undefined"?window:global)}());
Admin
getClients
Get clients list.
/admin/clients
Usage and SDK Samples
curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "http://localhost/admin/clients?name=&active=&limit=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminApi;
import java.io.File;
import java.util.*;
public class AdminApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
AdminApi apiInstance = new AdminApi();
String name = name_example; // String | Filter clients list by name
Boolean active = true; // Boolean | Filter clients list by active
Integer limit = 56; // Integer | Max number of clients in list.
Integer offset = 56; // Integer | Number of results to offset.
try {
ClientsResponse result = apiInstance.getClients(name, active, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#getClients");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AdminApi;
public class AdminApiExample {
public static void main(String[] args) {
AdminApi apiInstance = new AdminApi();
String name = name_example; // String | Filter clients list by name
Boolean active = true; // Boolean | Filter clients list by active
Integer limit = 56; // Integer | Max number of clients in list.
Integer offset = 56; // Integer | Number of results to offset.
try {
ClientsResponse result = apiInstance.getClients(name, active, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#getClients");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *name = name_example; // Filter clients list by name (optional)
Boolean *active = true; // Filter clients list by active (optional)
Integer *limit = 56; // Max number of clients in list. (optional)
Integer *offset = 56; // Number of results to offset. (optional)
AdminApi *apiInstance = [[AdminApi alloc] init];
// Get clients list.
[apiInstance getClientsWith:name
active:active
limit:limit
offset:offset
completionHandler: ^(ClientsResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ReservationApi = require('reservation_api');
var defaultClient = ReservationApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'
var api = new ReservationApi.AdminApi()
var opts = {
'name': name_example, // {String} Filter clients list by name
'active': true, // {Boolean} Filter clients list by active
'limit': 56, // {Integer} Max number of clients in list.
'offset': 56 // {Integer} Number of results to offset.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getClients(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getClientsExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new AdminApi();
var name = name_example; // String | Filter clients list by name (optional)
var active = true; // Boolean | Filter clients list by active (optional)
var limit = 56; // Integer | Max number of clients in list. (optional)
var offset = 56; // Integer | Number of results to offset. (optional)
try
{
// Get clients list.
ClientsResponse result = apiInstance.getClients(name, active, limit, offset);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AdminApi.getClients: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\Api\AdminApi();
$name = name_example; // String | Filter clients list by name
$active = true; // Boolean | Filter clients list by active
$limit = 56; // Integer | Max number of clients in list.
$offset = 56; // Integer | Number of results to offset.
try {
$result = $api_instance->getClients($name, $active, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdminApi->getClients: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AdminApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
my $api_instance = WWW::SwaggerClient::AdminApi->new();
my $name = name_example; # String | Filter clients list by name
my $active = true; # Boolean | Filter clients list by active
my $limit = 56; # Integer | Max number of clients in list.
my $offset = 56; # Integer | Number of results to offset.
eval {
my $result = $api_instance->getClients(name => $name, active => $active, limit => $limit, offset => $offset);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AdminApi->getClients: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.AdminApi()
name = name_example # String | Filter clients list by name (optional)
active = true # Boolean | Filter clients list by active (optional)
limit = 56 # Integer | Max number of clients in list. (optional)
offset = 56 # Integer | Number of results to offset. (optional)
try:
# Get clients list.
api_response = api_instance.get_clients(name=name, active=active, limit=limit, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->getClients: %s\n" % e)
Parameters
Query parameters
| Name |
Description |
| name |
String
Filter clients list by name
|
| active |
Boolean
Filter clients list by active
|
| limit |
Integer
Max number of clients in list.
|
| offset |
Integer
Number of results to offset.
|
Responses
Status: 200 - successful operation
Status: default - Any Error
postClients
Create new client.
/admin/clients
Usage and SDK Samples
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [[basicHash]]" "http://localhost/admin/clients"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminApi;
import java.io.File;
import java.util.*;
public class AdminApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
AdminApi apiInstance = new AdminApi();
ClientRequest client = ; // ClientRequest | Client data.
try {
Client result = apiInstance.postClients(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#postClients");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AdminApi;
public class AdminApiExample {
public static void main(String[] args) {
AdminApi apiInstance = new AdminApi();
ClientRequest client = ; // ClientRequest | Client data.
try {
Client result = apiInstance.postClients(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#postClients");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
ClientRequest *client = ; // Client data.
AdminApi *apiInstance = [[AdminApi alloc] init];
// Create new client.
[apiInstance postClientsWith:client
completionHandler: ^(Client output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ReservationApi = require('reservation_api');
var defaultClient = ReservationApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'
var api = new ReservationApi.AdminApi()
var client = ; // {ClientRequest} Client data.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.postClients(client, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class postClientsExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new AdminApi();
var client = new ClientRequest(); // ClientRequest | Client data.
try
{
// Create new client.
Client result = apiInstance.postClients(client);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AdminApi.postClients: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\Api\AdminApi();
$client = ; // ClientRequest | Client data.
try {
$result = $api_instance->postClients($client);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdminApi->postClients: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AdminApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
my $api_instance = WWW::SwaggerClient::AdminApi->new();
my $client = WWW::SwaggerClient::Object::ClientRequest->new(); # ClientRequest | Client data.
eval {
my $result = $api_instance->postClients(client => $client);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AdminApi->postClients: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.AdminApi()
client = # ClientRequest | Client data.
try:
# Create new client.
api_response = api_instance.post_clients(client)
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->postClients: %s\n" % e)
Parameters
Body parameters
| Name |
Description |
| client * |
|
Responses
Status: 200 - successful operation
Status: default - Any Error
Products
postProduct
Create new product.
/clients/{clientId}/products
Usage and SDK Samples
curl -X POST -H "api-key: [[apiKey]]" "http://localhost/clients/{clientId}/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductsApi;
import java.io.File;
import java.util.*;
public class ProductsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
ProductsApi apiInstance = new ProductsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
ProductRequest product = ; // ProductRequest | Product data.
try {
Product result = apiInstance.postProduct(apiKey, clientId, product);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductsApi#postProduct");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ProductsApi;
public class ProductsApiExample {
public static void main(String[] args) {
ProductsApi apiInstance = new ProductsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
ProductRequest product = ; // ProductRequest | Product data.
try {
Product result = apiInstance.postProduct(apiKey, clientId, product);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductsApi#postProduct");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
String *apiKey = apiKey_example; // (default to FA2536ADF67348FE)
Integer *clientId = 56; //
ProductRequest *product = ; // Product data.
ProductsApi *apiInstance = [[ProductsApi alloc] init];
// Create new product.
[apiInstance postProductWith:apiKey
clientId:clientId
product:product
completionHandler: ^(Product output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ReservationApi = require('reservation_api');
var defaultClient = ReservationApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api-key'] = "Token"
var api = new ReservationApi.ProductsApi()
var apiKey = apiKey_example; // {String}
var clientId = 56; // {Integer}
var product = ; // {ProductRequest} Product data.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.postProduct(apiKey, clientId, product, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class postProductExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
var apiInstance = new ProductsApi();
var apiKey = apiKey_example; // String | (default to FA2536ADF67348FE)
var clientId = 56; // Integer |
var product = new ProductRequest(); // ProductRequest | Product data.
try
{
// Create new product.
Product result = apiInstance.postProduct(apiKey, clientId, product);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProductsApi.postProduct: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$api_instance = new Swagger\Client\Api\ProductsApi();
$apiKey = apiKey_example; // String |
$clientId = 56; // Integer |
$product = ; // ProductRequest | Product data.
try {
$result = $api_instance->postProduct($apiKey, $clientId, $product);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductsApi->postProduct: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductsApi;
# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::ProductsApi->new();
my $apiKey = apiKey_example; # String |
my $clientId = 56; # Integer |
my $product = WWW::SwaggerClient::Object::ProductRequest->new(); # ProductRequest | Product data.
eval {
my $result = $api_instance->postProduct(apiKey => $apiKey, clientId => $clientId, product => $product);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ProductsApi->postProduct: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ProductsApi()
apiKey = apiKey_example # String | (default to FA2536ADF67348FE)
clientId = 56 # Integer |
product = # ProductRequest | Product data.
try:
# Create new product.
api_response = api_instance.post_product(apiKey, clientId, product)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProductsApi->postProduct: %s\n" % e)
Parameters
Path parameters
| Name |
Description |
| clientId* |
|
Header parameters
| Name |
Description |
| api-key* |
|
Body parameters
| Name |
Description |
| product * |
|
Responses
Status: 200 - successful operation
Status: default - Any Error
putProduct
Update product.
/clients/{clientId}/products/{id}
Usage and SDK Samples
curl -X PUT -H "api-key: [[apiKey]]" "http://localhost/clients/{clientId}/products/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductsApi;
import java.io.File;
import java.util.*;
public class ProductsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
ProductsApi apiInstance = new ProductsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
Integer id = 56; // Integer |
ProductRequest product = ; // ProductRequest | Product data.
try {
Product result = apiInstance.putProduct(apiKey, clientId, id, product);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductsApi#putProduct");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ProductsApi;
public class ProductsApiExample {
public static void main(String[] args) {
ProductsApi apiInstance = new ProductsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
Integer id = 56; // Integer |
ProductRequest product = ; // ProductRequest | Product data.
try {
Product result = apiInstance.putProduct(apiKey, clientId, id, product);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProductsApi#putProduct");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
String *apiKey = apiKey_example; // (default to FA2536ADF67348FE)
Integer *clientId = 56; //
Integer *id = 56; //
ProductRequest *product = ; // Product data.
ProductsApi *apiInstance = [[ProductsApi alloc] init];
// Update product.
[apiInstance putProductWith:apiKey
clientId:clientId
id:id
product:product
completionHandler: ^(Product output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ReservationApi = require('reservation_api');
var defaultClient = ReservationApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api-key'] = "Token"
var api = new ReservationApi.ProductsApi()
var apiKey = apiKey_example; // {String}
var clientId = 56; // {Integer}
var id = 56; // {Integer}
var product = ; // {ProductRequest} Product data.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.putProduct(apiKey, clientId, id, product, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class putProductExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
var apiInstance = new ProductsApi();
var apiKey = apiKey_example; // String | (default to FA2536ADF67348FE)
var clientId = 56; // Integer |
var id = 56; // Integer |
var product = new ProductRequest(); // ProductRequest | Product data.
try
{
// Update product.
Product result = apiInstance.putProduct(apiKey, clientId, id, product);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProductsApi.putProduct: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$api_instance = new Swagger\Client\Api\ProductsApi();
$apiKey = apiKey_example; // String |
$clientId = 56; // Integer |
$id = 56; // Integer |
$product = ; // ProductRequest | Product data.
try {
$result = $api_instance->putProduct($apiKey, $clientId, $id, $product);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductsApi->putProduct: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductsApi;
# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::ProductsApi->new();
my $apiKey = apiKey_example; # String |
my $clientId = 56; # Integer |
my $id = 56; # Integer |
my $product = WWW::SwaggerClient::Object::ProductRequest->new(); # ProductRequest | Product data.
eval {
my $result = $api_instance->putProduct(apiKey => $apiKey, clientId => $clientId, id => $id, product => $product);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ProductsApi->putProduct: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ProductsApi()
apiKey = apiKey_example # String | (default to FA2536ADF67348FE)
clientId = 56 # Integer |
id = 56 # Integer |
product = # ProductRequest | Product data.
try:
# Update product.
api_response = api_instance.put_product(apiKey, clientId, id, product)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProductsApi->putProduct: %s\n" % e)
Parameters
Path parameters
| Name |
Description |
| clientId* |
|
| id* |
|
Header parameters
| Name |
Description |
| api-key* |
|
Body parameters
| Name |
Description |
| product * |
|
Responses
Status: 200 - successful operation
Status: default - Any Error
Reservations
getReservation
Get reservation.
/clients/{clientId}/reservations/{id}
Usage and SDK Samples
curl -X GET -H "api-key: [[apiKey]]" "http://localhost/clients/{clientId}/reservations/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReservationsApi;
import java.io.File;
import java.util.*;
public class ReservationsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
ReservationsApi apiInstance = new ReservationsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
Integer id = 56; // Integer |
try {
ReservationDetails result = apiInstance.getReservation(apiKey, clientId, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReservationsApi#getReservation");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ReservationsApi;
public class ReservationsApiExample {
public static void main(String[] args) {
ReservationsApi apiInstance = new ReservationsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
Integer id = 56; // Integer |
try {
ReservationDetails result = apiInstance.getReservation(apiKey, clientId, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReservationsApi#getReservation");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
String *apiKey = apiKey_example; // (default to FA2536ADF67348FE)
Integer *clientId = 56; //
Integer *id = 56; //
ReservationsApi *apiInstance = [[ReservationsApi alloc] init];
// Get reservation.
[apiInstance getReservationWith:apiKey
clientId:clientId
id:id
completionHandler: ^(ReservationDetails output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ReservationApi = require('reservation_api');
var defaultClient = ReservationApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api-key'] = "Token"
var api = new ReservationApi.ReservationsApi()
var apiKey = apiKey_example; // {String}
var clientId = 56; // {Integer}
var id = 56; // {Integer}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getReservation(apiKey, clientId, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getReservationExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
var apiInstance = new ReservationsApi();
var apiKey = apiKey_example; // String | (default to FA2536ADF67348FE)
var clientId = 56; // Integer |
var id = 56; // Integer |
try
{
// Get reservation.
ReservationDetails result = apiInstance.getReservation(apiKey, clientId, id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ReservationsApi.getReservation: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$api_instance = new Swagger\Client\Api\ReservationsApi();
$apiKey = apiKey_example; // String |
$clientId = 56; // Integer |
$id = 56; // Integer |
try {
$result = $api_instance->getReservation($apiKey, $clientId, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReservationsApi->getReservation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReservationsApi;
# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::ReservationsApi->new();
my $apiKey = apiKey_example; # String |
my $clientId = 56; # Integer |
my $id = 56; # Integer |
eval {
my $result = $api_instance->getReservation(apiKey => $apiKey, clientId => $clientId, id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ReservationsApi->getReservation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ReservationsApi()
apiKey = apiKey_example # String | (default to FA2536ADF67348FE)
clientId = 56 # Integer |
id = 56 # Integer |
try:
# Get reservation.
api_response = api_instance.get_reservation(apiKey, clientId, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ReservationsApi->getReservation: %s\n" % e)
Parameters
Path parameters
| Name |
Description |
| clientId* |
|
| id* |
|
Header parameters
| Name |
Description |
| api-key* |
|
Responses
Status: 200 - successful operation
Status: default - Any Error
getReservations
Get reservations list.
/clients/{clientId}/reservations
Usage and SDK Samples
curl -X GET -H "api-key: [[apiKey]]" "http://localhost/clients/{clientId}/reservations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReservationsApi;
import java.io.File;
import java.util.*;
public class ReservationsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
ReservationsApi apiInstance = new ReservationsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
try {
ReservationsResponse result = apiInstance.getReservations(apiKey, clientId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReservationsApi#getReservations");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ReservationsApi;
public class ReservationsApiExample {
public static void main(String[] args) {
ReservationsApi apiInstance = new ReservationsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
try {
ReservationsResponse result = apiInstance.getReservations(apiKey, clientId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReservationsApi#getReservations");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
String *apiKey = apiKey_example; // (default to FA2536ADF67348FE)
Integer *clientId = 56; //
ReservationsApi *apiInstance = [[ReservationsApi alloc] init];
// Get reservations list.
[apiInstance getReservationsWith:apiKey
clientId:clientId
completionHandler: ^(ReservationsResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ReservationApi = require('reservation_api');
var defaultClient = ReservationApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api-key'] = "Token"
var api = new ReservationApi.ReservationsApi()
var apiKey = apiKey_example; // {String}
var clientId = 56; // {Integer}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getReservations(apiKey, clientId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getReservationsExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
var apiInstance = new ReservationsApi();
var apiKey = apiKey_example; // String | (default to FA2536ADF67348FE)
var clientId = 56; // Integer |
try
{
// Get reservations list.
ReservationsResponse result = apiInstance.getReservations(apiKey, clientId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ReservationsApi.getReservations: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$api_instance = new Swagger\Client\Api\ReservationsApi();
$apiKey = apiKey_example; // String |
$clientId = 56; // Integer |
try {
$result = $api_instance->getReservations($apiKey, $clientId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReservationsApi->getReservations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReservationsApi;
# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::ReservationsApi->new();
my $apiKey = apiKey_example; # String |
my $clientId = 56; # Integer |
eval {
my $result = $api_instance->getReservations(apiKey => $apiKey, clientId => $clientId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ReservationsApi->getReservations: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ReservationsApi()
apiKey = apiKey_example # String | (default to FA2536ADF67348FE)
clientId = 56 # Integer |
try:
# Get reservations list.
api_response = api_instance.get_reservations(apiKey, clientId)
pprint(api_response)
except ApiException as e:
print("Exception when calling ReservationsApi->getReservations: %s\n" % e)
Parameters
Path parameters
| Name |
Description |
| clientId* |
|
Header parameters
| Name |
Description |
| api-key* |
|
Responses
Status: 200 - successful operation
Status: default - Any Error
postReservation
Create new reservation.
/clients/{clientId}/reservations
Usage and SDK Samples
curl -X POST -H "api-key: [[apiKey]]" "http://localhost/clients/{clientId}/reservations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReservationsApi;
import java.io.File;
import java.util.*;
public class ReservationsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
ReservationsApi apiInstance = new ReservationsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
ReservationRequest reservation = ; // ReservationRequest | Reservation data.
try {
Reservation result = apiInstance.postReservation(apiKey, clientId, reservation);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReservationsApi#postReservation");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ReservationsApi;
public class ReservationsApiExample {
public static void main(String[] args) {
ReservationsApi apiInstance = new ReservationsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
ReservationRequest reservation = ; // ReservationRequest | Reservation data.
try {
Reservation result = apiInstance.postReservation(apiKey, clientId, reservation);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReservationsApi#postReservation");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
String *apiKey = apiKey_example; // (default to FA2536ADF67348FE)
Integer *clientId = 56; //
ReservationRequest *reservation = ; // Reservation data.
ReservationsApi *apiInstance = [[ReservationsApi alloc] init];
// Create new reservation.
[apiInstance postReservationWith:apiKey
clientId:clientId
reservation:reservation
completionHandler: ^(Reservation output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ReservationApi = require('reservation_api');
var defaultClient = ReservationApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api-key'] = "Token"
var api = new ReservationApi.ReservationsApi()
var apiKey = apiKey_example; // {String}
var clientId = 56; // {Integer}
var reservation = ; // {ReservationRequest} Reservation data.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.postReservation(apiKey, clientId, reservation, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class postReservationExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
var apiInstance = new ReservationsApi();
var apiKey = apiKey_example; // String | (default to FA2536ADF67348FE)
var clientId = 56; // Integer |
var reservation = new ReservationRequest(); // ReservationRequest | Reservation data.
try
{
// Create new reservation.
Reservation result = apiInstance.postReservation(apiKey, clientId, reservation);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ReservationsApi.postReservation: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$api_instance = new Swagger\Client\Api\ReservationsApi();
$apiKey = apiKey_example; // String |
$clientId = 56; // Integer |
$reservation = ; // ReservationRequest | Reservation data.
try {
$result = $api_instance->postReservation($apiKey, $clientId, $reservation);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReservationsApi->postReservation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReservationsApi;
# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::ReservationsApi->new();
my $apiKey = apiKey_example; # String |
my $clientId = 56; # Integer |
my $reservation = WWW::SwaggerClient::Object::ReservationRequest->new(); # ReservationRequest | Reservation data.
eval {
my $result = $api_instance->postReservation(apiKey => $apiKey, clientId => $clientId, reservation => $reservation);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ReservationsApi->postReservation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ReservationsApi()
apiKey = apiKey_example # String | (default to FA2536ADF67348FE)
clientId = 56 # Integer |
reservation = # ReservationRequest | Reservation data.
try:
# Create new reservation.
api_response = api_instance.post_reservation(apiKey, clientId, reservation)
pprint(api_response)
except ApiException as e:
print("Exception when calling ReservationsApi->postReservation: %s\n" % e)
Parameters
Path parameters
| Name |
Description |
| clientId* |
|
Header parameters
| Name |
Description |
| api-key* |
|
Body parameters
| Name |
Description |
| reservation * |
|
Responses
Status: 200 - successful operation
Status: default - Any Error
putReservation
Update reservation.
/clients/{clientId}/reservations/{id}
Usage and SDK Samples
curl -X PUT -H "api-key: [[apiKey]]" "http://localhost/clients/{clientId}/reservations/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReservationsApi;
import java.io.File;
import java.util.*;
public class ReservationsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
ReservationsApi apiInstance = new ReservationsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
Integer id = 56; // Integer |
ReservationUpdateRequest reservation = ; // ReservationUpdateRequest | Reservation data.
try {
Reservation result = apiInstance.putReservation(apiKey, clientId, id, reservation);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReservationsApi#putReservation");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ReservationsApi;
public class ReservationsApiExample {
public static void main(String[] args) {
ReservationsApi apiInstance = new ReservationsApi();
String apiKey = apiKey_example; // String |
Integer clientId = 56; // Integer |
Integer id = 56; // Integer |
ReservationUpdateRequest reservation = ; // ReservationUpdateRequest | Reservation data.
try {
Reservation result = apiInstance.putReservation(apiKey, clientId, id, reservation);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReservationsApi#putReservation");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
String *apiKey = apiKey_example; // (default to FA2536ADF67348FE)
Integer *clientId = 56; //
Integer *id = 56; //
ReservationUpdateRequest *reservation = ; // Reservation data.
ReservationsApi *apiInstance = [[ReservationsApi alloc] init];
// Update reservation.
[apiInstance putReservationWith:apiKey
clientId:clientId
id:id
reservation:reservation
completionHandler: ^(Reservation output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ReservationApi = require('reservation_api');
var defaultClient = ReservationApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api-key'] = "Token"
var api = new ReservationApi.ReservationsApi()
var apiKey = apiKey_example; // {String}
var clientId = 56; // {Integer}
var id = 56; // {Integer}
var reservation = ; // {ReservationUpdateRequest} Reservation data.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.putReservation(apiKey, clientId, id, reservation, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class putReservationExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
var apiInstance = new ReservationsApi();
var apiKey = apiKey_example; // String | (default to FA2536ADF67348FE)
var clientId = 56; // Integer |
var id = 56; // Integer |
var reservation = new ReservationUpdateRequest(); // ReservationUpdateRequest | Reservation data.
try
{
// Update reservation.
Reservation result = apiInstance.putReservation(apiKey, clientId, id, reservation);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ReservationsApi.putReservation: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
$api_instance = new Swagger\Client\Api\ReservationsApi();
$apiKey = apiKey_example; // String |
$clientId = 56; // Integer |
$id = 56; // Integer |
$reservation = ; // ReservationUpdateRequest | Reservation data.
try {
$result = $api_instance->putReservation($apiKey, $clientId, $id, $reservation);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReservationsApi->putReservation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReservationsApi;
# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::ReservationsApi->new();
my $apiKey = apiKey_example; # String |
my $clientId = 56; # Integer |
my $id = 56; # Integer |
my $reservation = WWW::SwaggerClient::Object::ReservationUpdateRequest->new(); # ReservationUpdateRequest | Reservation data.
eval {
my $result = $api_instance->putReservation(apiKey => $apiKey, clientId => $clientId, id => $id, reservation => $reservation);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ReservationsApi->putReservation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api-key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ReservationsApi()
apiKey = apiKey_example # String | (default to FA2536ADF67348FE)
clientId = 56 # Integer |
id = 56 # Integer |
reservation = # ReservationUpdateRequest | Reservation data.
try:
# Update reservation.
api_response = api_instance.put_reservation(apiKey, clientId, id, reservation)
pprint(api_response)
except ApiException as e:
print("Exception when calling ReservationsApi->putReservation: %s\n" % e)
Parameters
Path parameters
| Name |
Description |
| clientId* |
|
| id* |
|
Header parameters
| Name |
Description |
| api-key* |
|
Body parameters
| Name |
Description |
| reservation * |
|
Responses
Status: 200 - successful operation
Status: default - Any Error