OpenAPI definition

BookRestController

createBook


/api/books/

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/books/" \
 -d '{
  "image" : true,
  "description" : "description",
  "id" : 0,
  "title" : "title"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookRestControllerApi;

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

public class BookRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Book book = ; // Book | 

        try {
            Book result = apiInstance.createBook(book);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#createBook");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookRestControllerApi;

public class BookRestControllerApiExample {
    public static void main(String[] args) {
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Book book = ; // Book | 

        try {
            Book result = apiInstance.createBook(book);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#createBook");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookRestControllerApi *apiInstance = [[BookRestControllerApi alloc] init];
Book *book = ; // 

[apiInstance createBookWith:book
              completionHandler: ^(Book output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.BookRestControllerApi()
var book = ; // {Book} 

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

namespace Example
{
    public class createBookExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookRestControllerApi();
            var book = new Book(); // Book | 

            try {
                Book result = apiInstance.createBook(book);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookRestControllerApi.createBook: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookRestControllerApi();
$book = ; // Book | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookRestControllerApi->new();
my $book = WWW::OPenAPIClient::Object::Book->new(); # Book | 

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

# Create an instance of the API class
api_instance = openapi_client.BookRestControllerApi()
book =  # Book | 

try:
    api_response = api_instance.create_book(book)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookRestControllerApi->createBook: %s\n" % e)
extern crate BookRestControllerApi;

pub fn main() {
    let book = ; // Book

    let mut context = BookRestControllerApi::Context::default();
    let result = client.createBook(book, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
book *

Responses


deleteBook


/api/books/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8443/api/books/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookRestControllerApi;

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

public class BookRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 

        try {
            Book result = apiInstance.deleteBook(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#deleteBook");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookRestControllerApi;

public class BookRestControllerApiExample {
    public static void main(String[] args) {
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 

        try {
            Book result = apiInstance.deleteBook(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#deleteBook");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookRestControllerApi *apiInstance = [[BookRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance deleteBookWith:id
              completionHandler: ^(Book output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.BookRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class deleteBookExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookRestControllerApi();
            var id = 789;  // Long |  (default to null)

            try {
                Book result = apiInstance.deleteBook(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookRestControllerApi.deleteBook: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.BookRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.delete_book(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookRestControllerApi->deleteBook: %s\n" % e)
extern crate BookRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = BookRestControllerApi::Context::default();
    let result = client.deleteBook(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


deleteImage


/api/books/{id}/image

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8443/api/books/{id}/image"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookRestControllerApi;

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

public class BookRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 

        try {
            Object result = apiInstance.deleteImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#deleteImage");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookRestControllerApi;

public class BookRestControllerApiExample {
    public static void main(String[] args) {
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 

        try {
            Object result = apiInstance.deleteImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#deleteImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookRestControllerApi *apiInstance = [[BookRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance deleteImageWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.BookRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class deleteImageExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookRestControllerApi();
            var id = 789;  // Long |  (default to null)

            try {
                Object result = apiInstance.deleteImage(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookRestControllerApi.deleteImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.BookRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.delete_image(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookRestControllerApi->deleteImage: %s\n" % e)
extern crate BookRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = BookRestControllerApi::Context::default();
    let result = client.deleteImage(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


downloadImage


/api/books/{id}/image

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/books/{id}/image"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookRestControllerApi;

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

public class BookRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 

        try {
            Object result = apiInstance.downloadImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#downloadImage");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookRestControllerApi;

public class BookRestControllerApiExample {
    public static void main(String[] args) {
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 

        try {
            Object result = apiInstance.downloadImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#downloadImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookRestControllerApi *apiInstance = [[BookRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance downloadImageWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.BookRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class downloadImageExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookRestControllerApi();
            var id = 789;  // Long |  (default to null)

            try {
                Object result = apiInstance.downloadImage(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookRestControllerApi.downloadImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.BookRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.download_image(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookRestControllerApi->downloadImage: %s\n" % e)
extern crate BookRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = BookRestControllerApi::Context::default();
    let result = client.downloadImage(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


getBook


/api/books/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/books/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookRestControllerApi;

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

public class BookRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 

        try {
            Book result = apiInstance.getBook(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#getBook");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookRestControllerApi;

public class BookRestControllerApiExample {
    public static void main(String[] args) {
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 

        try {
            Book result = apiInstance.getBook(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#getBook");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookRestControllerApi *apiInstance = [[BookRestControllerApi alloc] init];
Long *id = 789; //  (default to null)

[apiInstance getBookWith:id
              completionHandler: ^(Book output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.BookRestControllerApi()
var id = 789; // {Long} 

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

namespace Example
{
    public class getBookExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookRestControllerApi();
            var id = 789;  // Long |  (default to null)

            try {
                Book result = apiInstance.getBook(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookRestControllerApi.getBook: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookRestControllerApi();
$id = 789; // Long | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookRestControllerApi->new();
my $id = 789; # Long | 

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

# Create an instance of the API class
api_instance = openapi_client.BookRestControllerApi()
id = 789 # Long |  (default to null)

try:
    api_response = api_instance.get_book(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookRestControllerApi->getBook: %s\n" % e)
extern crate BookRestControllerApi;

pub fn main() {
    let id = 789; // Long

    let mut context = BookRestControllerApi::Context::default();
    let result = client.getBook(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


getBooks


/api/books/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/books/"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookRestControllerApi;

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

public class BookRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookRestControllerApi apiInstance = new BookRestControllerApi();

        try {
            array[Book] result = apiInstance.getBooks();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#getBooks");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookRestControllerApi;

public class BookRestControllerApiExample {
    public static void main(String[] args) {
        BookRestControllerApi apiInstance = new BookRestControllerApi();

        try {
            array[Book] result = apiInstance.getBooks();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#getBooks");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookRestControllerApi *apiInstance = [[BookRestControllerApi alloc] init];

[apiInstance getBooksWithCompletionHandler: 
              ^(array[Book] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.BookRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBooks(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getBooksExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookRestControllerApi();

            try {
                array[Book] result = apiInstance.getBooks();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookRestControllerApi.getBooks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookRestControllerApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookRestControllerApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.BookRestControllerApi()

try:
    api_response = api_instance.get_books()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookRestControllerApi->getBooks: %s\n" % e)
extern crate BookRestControllerApi;

pub fn main() {

    let mut context = BookRestControllerApi::Context::default();
    let result = client.getBooks(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


updateBook


/api/books/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/books/{id}" \
 -d '{
  "image" : true,
  "description" : "description",
  "id" : 0,
  "title" : "title"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookRestControllerApi;

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

public class BookRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 
        Book book = ; // Book | 

        try {
            Book result = apiInstance.updateBook(id, book);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#updateBook");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookRestControllerApi;

public class BookRestControllerApiExample {
    public static void main(String[] args) {
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 
        Book book = ; // Book | 

        try {
            Book result = apiInstance.updateBook(id, book);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#updateBook");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookRestControllerApi *apiInstance = [[BookRestControllerApi alloc] init];
Long *id = 789; //  (default to null)
Book *book = ; // 

[apiInstance updateBookWith:id
    book:book
              completionHandler: ^(Book output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.BookRestControllerApi()
var id = 789; // {Long} 
var book = ; // {Book} 

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

namespace Example
{
    public class updateBookExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookRestControllerApi();
            var id = 789;  // Long |  (default to null)
            var book = new Book(); // Book | 

            try {
                Book result = apiInstance.updateBook(id, book);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookRestControllerApi.updateBook: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookRestControllerApi();
$id = 789; // Long | 
$book = ; // Book | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookRestControllerApi->new();
my $id = 789; # Long | 
my $book = WWW::OPenAPIClient::Object::Book->new(); # Book | 

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

# Create an instance of the API class
api_instance = openapi_client.BookRestControllerApi()
id = 789 # Long |  (default to null)
book =  # Book | 

try:
    api_response = api_instance.update_book(id, book)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookRestControllerApi->updateBook: %s\n" % e)
extern crate BookRestControllerApi;

pub fn main() {
    let id = 789; // Long
    let book = ; // Book

    let mut context = BookRestControllerApi::Context::default();
    let result = client.updateBook(id, book, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
book *

Responses


uploadImage


/api/books/{id}/image

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/books/{id}/image" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookRestControllerApi;

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

public class BookRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 
        InlineObject inlineObject = ; // InlineObject | 

        try {
            Object result = apiInstance.uploadImage(id, inlineObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#uploadImage");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookRestControllerApi;

public class BookRestControllerApiExample {
    public static void main(String[] args) {
        BookRestControllerApi apiInstance = new BookRestControllerApi();
        Long id = 789; // Long | 
        InlineObject inlineObject = ; // InlineObject | 

        try {
            Object result = apiInstance.uploadImage(id, inlineObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookRestControllerApi#uploadImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookRestControllerApi *apiInstance = [[BookRestControllerApi alloc] init];
Long *id = 789; //  (default to null)
InlineObject *inlineObject = ; //  (optional)

[apiInstance uploadImageWith:id
    inlineObject:inlineObject
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.BookRestControllerApi()
var id = 789; // {Long} 
var opts = {
  'inlineObject':  // {InlineObject} 
};

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

namespace Example
{
    public class uploadImageExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookRestControllerApi();
            var id = 789;  // Long |  (default to null)
            var inlineObject = new InlineObject(); // InlineObject |  (optional) 

            try {
                Object result = apiInstance.uploadImage(id, inlineObject);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookRestControllerApi.uploadImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookRestControllerApi();
$id = 789; // Long | 
$inlineObject = ; // InlineObject | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookRestControllerApi->new();
my $id = 789; # Long | 
my $inlineObject = WWW::OPenAPIClient::Object::InlineObject->new(); # InlineObject | 

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

# Create an instance of the API class
api_instance = openapi_client.BookRestControllerApi()
id = 789 # Long |  (default to null)
inlineObject =  # InlineObject |  (optional)

try:
    api_response = api_instance.upload_image(id, inlineObject=inlineObject)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookRestControllerApi->uploadImage: %s\n" % e)
extern crate BookRestControllerApi;

pub fn main() {
    let id = 789; // Long
    let inlineObject = ; // InlineObject

    let mut context = BookRestControllerApi::Context::default();
    let result = client.uploadImage(id, inlineObject, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
inlineObject

Responses


LoginController

logOut


/api/auth/logout

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "http://localhost:8443/api/auth/logout"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LoginControllerApi;

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

public class LoginControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LoginControllerApi apiInstance = new LoginControllerApi();

        try {
            AuthResponse result = apiInstance.logOut();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginControllerApi#logOut");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.LoginControllerApi;

public class LoginControllerApiExample {
    public static void main(String[] args) {
        LoginControllerApi apiInstance = new LoginControllerApi();

        try {
            AuthResponse result = apiInstance.logOut();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginControllerApi#logOut");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LoginControllerApi *apiInstance = [[LoginControllerApi alloc] init];

[apiInstance logOutWithCompletionHandler: 
              ^(AuthResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.LoginControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.logOut(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class logOutExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LoginControllerApi();

            try {
                AuthResponse result = apiInstance.logOut();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LoginControllerApi.logOut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LoginControllerApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LoginControllerApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.LoginControllerApi()

try:
    api_response = api_instance.log_out()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginControllerApi->logOut: %s\n" % e)
extern crate LoginControllerApi;

pub fn main() {

    let mut context = LoginControllerApi::Context::default();
    let result = client.logOut(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


login


/api/auth/login

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/auth/login" \
 -d '{
  "password" : "password",
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LoginControllerApi;

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

public class LoginControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LoginControllerApi apiInstance = new LoginControllerApi();
        LoginRequest loginRequest = ; // LoginRequest | 
        String accessToken = accessToken_example; // String | 
        String refreshToken = refreshToken_example; // String | 

        try {
            AuthResponse result = apiInstance.login(loginRequest, accessToken, refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginControllerApi#login");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.LoginControllerApi;

public class LoginControllerApiExample {
    public static void main(String[] args) {
        LoginControllerApi apiInstance = new LoginControllerApi();
        LoginRequest loginRequest = ; // LoginRequest | 
        String accessToken = accessToken_example; // String | 
        String refreshToken = refreshToken_example; // String | 

        try {
            AuthResponse result = apiInstance.login(loginRequest, accessToken, refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginControllerApi#login");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LoginControllerApi *apiInstance = [[LoginControllerApi alloc] init];
LoginRequest *loginRequest = ; // 
String *accessToken = accessToken_example; //  (optional) (default to null)
String *refreshToken = refreshToken_example; //  (optional) (default to null)

[apiInstance loginWith:loginRequest
    accessToken:accessToken
    refreshToken:refreshToken
              completionHandler: ^(AuthResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.LoginControllerApi()
var loginRequest = ; // {LoginRequest} 
var opts = {
  'accessToken': accessToken_example, // {String} 
  'refreshToken': refreshToken_example // {String} 
};

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

namespace Example
{
    public class loginExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LoginControllerApi();
            var loginRequest = new LoginRequest(); // LoginRequest | 
            var accessToken = accessToken_example;  // String |  (optional)  (default to null)
            var refreshToken = refreshToken_example;  // String |  (optional)  (default to null)

            try {
                AuthResponse result = apiInstance.login(loginRequest, accessToken, refreshToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LoginControllerApi.login: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LoginControllerApi();
$loginRequest = ; // LoginRequest | 
$accessToken = accessToken_example; // String | 
$refreshToken = refreshToken_example; // String | 

try {
    $result = $api_instance->login($loginRequest, $accessToken, $refreshToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LoginControllerApi->login: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::LoginControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LoginControllerApi->new();
my $loginRequest = WWW::OPenAPIClient::Object::LoginRequest->new(); # LoginRequest | 
my $accessToken = accessToken_example; # String | 
my $refreshToken = refreshToken_example; # String | 

eval {
    my $result = $api_instance->login(loginRequest => $loginRequest, accessToken => $accessToken, refreshToken => $refreshToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LoginControllerApi->login: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.LoginControllerApi()
loginRequest =  # LoginRequest | 
accessToken = accessToken_example # String |  (optional) (default to null)
refreshToken = refreshToken_example # String |  (optional) (default to null)

try:
    api_response = api_instance.login(loginRequest, accessToken=accessToken, refreshToken=refreshToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginControllerApi->login: %s\n" % e)
extern crate LoginControllerApi;

pub fn main() {
    let loginRequest = ; // LoginRequest
    let accessToken = accessToken_example; // String
    let refreshToken = refreshToken_example; // String

    let mut context = LoginControllerApi::Context::default();
    let result = client.login(loginRequest, accessToken, refreshToken, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
loginRequest *

Responses


refreshToken


/api/auth/refresh

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "http://localhost:8443/api/auth/refresh"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LoginControllerApi;

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

public class LoginControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        LoginControllerApi apiInstance = new LoginControllerApi();
        String refreshToken = refreshToken_example; // String | 

        try {
            AuthResponse result = apiInstance.refreshToken(refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginControllerApi#refreshToken");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.LoginControllerApi;

public class LoginControllerApiExample {
    public static void main(String[] args) {
        LoginControllerApi apiInstance = new LoginControllerApi();
        String refreshToken = refreshToken_example; // String | 

        try {
            AuthResponse result = apiInstance.refreshToken(refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginControllerApi#refreshToken");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LoginControllerApi *apiInstance = [[LoginControllerApi alloc] init];
String *refreshToken = refreshToken_example; //  (optional) (default to null)

[apiInstance refreshTokenWith:refreshToken
              completionHandler: ^(AuthResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.LoginControllerApi()
var opts = {
  'refreshToken': refreshToken_example // {String} 
};

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

namespace Example
{
    public class refreshTokenExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new LoginControllerApi();
            var refreshToken = refreshToken_example;  // String |  (optional)  (default to null)

            try {
                AuthResponse result = apiInstance.refreshToken(refreshToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LoginControllerApi.refreshToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LoginControllerApi();
$refreshToken = refreshToken_example; // String | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LoginControllerApi->new();
my $refreshToken = refreshToken_example; # String | 

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

# Create an instance of the API class
api_instance = openapi_client.LoginControllerApi()
refreshToken = refreshToken_example # String |  (optional) (default to null)

try:
    api_response = api_instance.refresh_token(refreshToken=refreshToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginControllerApi->refreshToken: %s\n" % e)
extern crate LoginControllerApi;

pub fn main() {
    let refreshToken = refreshToken_example; // String

    let mut context = LoginControllerApi::Context::default();
    let result = client.refreshToken(refreshToken, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


UserRestController

me


/api/users/me

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/users/me"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            User result = apiInstance.me();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#me");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();

        try {
            User result = apiInstance.me();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#me");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];

[apiInstance meWithCompletionHandler: 
              ^(User output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var OpenApiDefinition = require('open_api_definition');

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.me(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class meExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.UserRestControllerApi()

try:
    api_response = api_instance.me()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRestControllerApi->me: %s\n" % e)
extern crate UserRestControllerApi;

pub fn main() {

    let mut context = UserRestControllerApi::Context::default();
    let result = client.me(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses