OpenAPI definition

ChartsRestController

getAdminChartsInfo


/api/v1/charts/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/charts/"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ChartsRestControllerApi;

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

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

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

        try {
            AdminChartsDTO result = apiInstance.getAdminChartsInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChartsRestControllerApi#getAdminChartsInfo");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.getAdminChartsInfo();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getAdminChartsInfo: $e\n');
}

import org.openapitools.client.api.ChartsRestControllerApi;

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

        try {
            AdminChartsDTO result = apiInstance.getAdminChartsInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChartsRestControllerApi#getAdminChartsInfo");
            e.printStackTrace();
        }
    }
}


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

[apiInstance getAdminChartsInfoWithCompletionHandler: 
              ^(AdminChartsDTO 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.ChartsRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAdminChartsInfo(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

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

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

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

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

eval {
    my $result = $api_instance->getAdminChartsInfo();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChartsRestControllerApi->getAdminChartsInfo: $@\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.ChartsRestControllerApi()

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

pub fn main() {

    let mut context = ChartsRestControllerApi::Context::default();
    let result = client.getAdminChartsInfo(&context).wait();

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

Scopes

Parameters

Responses


ImageRestController

getImage


/api/v1/images/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/images/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImageRestControllerApi;

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

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

        // Create an instance of the API class
        ImageRestControllerApi apiInstance = new ImageRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            ImageDTO result = apiInstance.getImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImageRestControllerApi#getImage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.getImage(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getImage: $e\n');
}

import org.openapitools.client.api.ImageRestControllerApi;

public class ImageRestControllerApiExample {
    public static void main(String[] args) {
        ImageRestControllerApi apiInstance = new ImageRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
ImageRestControllerApi *apiInstance = [[ImageRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

[apiInstance getImageWith:id
              completionHandler: ^(ImageDTO 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.ImageRestControllerApi()
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.getImage(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new ImageRestControllerApi();
            var id = 56;  // Integer |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImageRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImageRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->getImage(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImageRestControllerApi->getImage: $@\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.ImageRestControllerApi()
id = 56 # Integer |  (default to null)

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

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


getImageFile


/api/v1/images/{id}/media

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/images/{id}/media"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImageRestControllerApi;

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

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

        // Create an instance of the API class
        ImageRestControllerApi apiInstance = new ImageRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.getImageFile(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImageRestControllerApi#getImageFile");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.getImageFile(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getImageFile: $e\n');
}

import org.openapitools.client.api.ImageRestControllerApi;

public class ImageRestControllerApiExample {
    public static void main(String[] args) {
        ImageRestControllerApi apiInstance = new ImageRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
ImageRestControllerApi *apiInstance = [[ImageRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

[apiInstance getImageFileWith: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.ImageRestControllerApi()
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.getImageFile(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new ImageRestControllerApi();
            var id = 56;  // Integer |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImageRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImageRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->getImageFile(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImageRestControllerApi->getImageFile: $@\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.ImageRestControllerApi()
id = 56 # Integer |  (default to null)

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

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


replaceImageFile


/api/v1/images/{id}/media

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/images/{id}/media" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImageRestControllerApi;

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

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

        // Create an instance of the API class
        ImageRestControllerApi apiInstance = new ImageRestControllerApi();
        Integer id = 56; // Integer | 
        ReplaceImageFileRequest replaceImageFileRequest = ; // ReplaceImageFileRequest | 

        try {
            Object result = apiInstance.replaceImageFile(id, replaceImageFileRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImageRestControllerApi#replaceImageFile");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final ReplaceImageFileRequest replaceImageFileRequest = new ReplaceImageFileRequest(); // ReplaceImageFileRequest | 

try {
    final result = await api_instance.replaceImageFile(id, replaceImageFileRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->replaceImageFile: $e\n');
}

import org.openapitools.client.api.ImageRestControllerApi;

public class ImageRestControllerApiExample {
    public static void main(String[] args) {
        ImageRestControllerApi apiInstance = new ImageRestControllerApi();
        Integer id = 56; // Integer | 
        ReplaceImageFileRequest replaceImageFileRequest = ; // ReplaceImageFileRequest | 

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


// Create an instance of the API class
ImageRestControllerApi *apiInstance = [[ImageRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
ReplaceImageFileRequest *replaceImageFileRequest = ; //  (optional)

[apiInstance replaceImageFileWith:id
    replaceImageFileRequest:replaceImageFileRequest
              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.ImageRestControllerApi()
var id = 56; // {Integer} 
var opts = {
  'replaceImageFileRequest':  // {ReplaceImageFileRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ImageRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var replaceImageFileRequest = new ReplaceImageFileRequest(); // ReplaceImageFileRequest |  (optional) 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImageRestControllerApi();
$id = 56; // Integer | 
$replaceImageFileRequest = ; // ReplaceImageFileRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImageRestControllerApi->new();
my $id = 56; # Integer | 
my $replaceImageFileRequest = WWW::OPenAPIClient::Object::ReplaceImageFileRequest->new(); # ReplaceImageFileRequest | 

eval {
    my $result = $api_instance->replaceImageFile(id => $id, replaceImageFileRequest => $replaceImageFileRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImageRestControllerApi->replaceImageFile: $@\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.ImageRestControllerApi()
id = 56 # Integer |  (default to null)
replaceImageFileRequest =  # ReplaceImageFileRequest |  (optional)

try:
    api_response = api_instance.replace_image_file(id, replaceImageFileRequest=replaceImageFileRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImageRestControllerApi->replaceImageFile: %s\n" % e)
extern crate ImageRestControllerApi;

pub fn main() {
    let id = 56; // Integer
    let replaceImageFileRequest = ; // ReplaceImageFileRequest

    let mut context = ImageRestControllerApi::Context::default();
    let result = client.replaceImageFile(id, replaceImageFileRequest, &context).wait();

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

Scopes

Parameters

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

Responses


LocationRestController

createLocation

Create a new location


/api/v1/locations/

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/locations/" \
 -d '{
  "latitude" : 5.962133916683182,
  "name" : "name",
  "id" : 1,
  "longitude" : 5.637376656633329
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LocationRestControllerApi;

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

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

        // Create an instance of the API class
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        LocationDTO locationDTO = ; // LocationDTO | 

        try {
            LocationDTO result = apiInstance.createLocation(locationDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationRestControllerApi#createLocation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final LocationDTO locationDTO = new LocationDTO(); // LocationDTO | 

try {
    final result = await api_instance.createLocation(locationDTO);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->createLocation: $e\n');
}

import org.openapitools.client.api.LocationRestControllerApi;

public class LocationRestControllerApiExample {
    public static void main(String[] args) {
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        LocationDTO locationDTO = ; // LocationDTO | 

        try {
            LocationDTO result = apiInstance.createLocation(locationDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationRestControllerApi#createLocation");
            e.printStackTrace();
        }
    }
}


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

// Create a new location
[apiInstance createLocationWith:locationDTO
              completionHandler: ^(LocationDTO 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.LocationRestControllerApi()
var locationDTO = ; // {LocationDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new LocationRestControllerApi();
            var locationDTO = new LocationDTO(); // LocationDTO | 

            try {
                // Create a new location
                LocationDTO result = apiInstance.createLocation(locationDTO);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LocationRestControllerApi.createLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LocationRestControllerApi();
$locationDTO = ; // LocationDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LocationRestControllerApi->new();
my $locationDTO = WWW::OPenAPIClient::Object::LocationDTO->new(); # LocationDTO | 

eval {
    my $result = $api_instance->createLocation(locationDTO => $locationDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LocationRestControllerApi->createLocation: $@\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.LocationRestControllerApi()
locationDTO =  # LocationDTO | 

try:
    # Create a new location
    api_response = api_instance.create_location(locationDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LocationRestControllerApi->createLocation: %s\n" % e)
extern crate LocationRestControllerApi;

pub fn main() {
    let locationDTO = ; // LocationDTO

    let mut context = LocationRestControllerApi::Context::default();
    let result = client.createLocation(locationDTO, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
locationDTO *

Responses


deleteLocation

Delete the location with the given id


/api/v1/locations/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/locations/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LocationRestControllerApi;

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

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

        // Create an instance of the API class
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            LocationDTO result = apiInstance.deleteLocation(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationRestControllerApi#deleteLocation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.deleteLocation(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->deleteLocation: $e\n');
}

import org.openapitools.client.api.LocationRestControllerApi;

public class LocationRestControllerApiExample {
    public static void main(String[] args) {
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
LocationRestControllerApi *apiInstance = [[LocationRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete the location with the given id
[apiInstance deleteLocationWith:id
              completionHandler: ^(LocationDTO 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.LocationRestControllerApi()
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.deleteLocation(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new LocationRestControllerApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete the location with the given id
                LocationDTO result = apiInstance.deleteLocation(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LocationRestControllerApi.deleteLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LocationRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LocationRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->deleteLocation(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LocationRestControllerApi->deleteLocation: $@\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.LocationRestControllerApi()
id = 56 # Integer |  (default to null)

try:
    # Delete the location with the given id
    api_response = api_instance.delete_location(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LocationRestControllerApi->deleteLocation: %s\n" % e)
extern crate LocationRestControllerApi;

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


getLocation

Get the location with the given id


/api/v1/locations/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/locations/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LocationRestControllerApi;

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

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

        // Create an instance of the API class
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            LocationDTO result = apiInstance.getLocation(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationRestControllerApi#getLocation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.getLocation(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getLocation: $e\n');
}

import org.openapitools.client.api.LocationRestControllerApi;

public class LocationRestControllerApiExample {
    public static void main(String[] args) {
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
LocationRestControllerApi *apiInstance = [[LocationRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

// Get the location with the given id
[apiInstance getLocationWith:id
              completionHandler: ^(LocationDTO 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.LocationRestControllerApi()
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.getLocation(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new LocationRestControllerApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Get the location with the given id
                LocationDTO result = apiInstance.getLocation(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LocationRestControllerApi.getLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LocationRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LocationRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->getLocation(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LocationRestControllerApi->getLocation: $@\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.LocationRestControllerApi()
id = 56 # Integer |  (default to null)

try:
    # Get the location with the given id
    api_response = api_instance.get_location(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LocationRestControllerApi->getLocation: %s\n" % e)
extern crate LocationRestControllerApi;

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


getLocations

Get all locations


/api/v1/locations/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/locations/?pageable="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LocationRestControllerApi;

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

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

        // Create an instance of the API class
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        Pageable pageable = ; // Pageable | 

        try {
            PagedModelLocationDTO result = apiInstance.getLocations(pageable);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationRestControllerApi#getLocations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Pageable pageable = new Pageable(); // Pageable | 

try {
    final result = await api_instance.getLocations(pageable);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getLocations: $e\n');
}

import org.openapitools.client.api.LocationRestControllerApi;

public class LocationRestControllerApiExample {
    public static void main(String[] args) {
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        Pageable pageable = ; // Pageable | 

        try {
            PagedModelLocationDTO result = apiInstance.getLocations(pageable);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationRestControllerApi#getLocations");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LocationRestControllerApi *apiInstance = [[LocationRestControllerApi alloc] init];
Pageable *pageable = ; //  (default to null)

// Get all locations
[apiInstance getLocationsWith:pageable
              completionHandler: ^(PagedModelLocationDTO 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.LocationRestControllerApi()
var pageable = ; // {Pageable} 

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

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

            // Create an instance of the API class
            var apiInstance = new LocationRestControllerApi();
            var pageable = new Pageable(); // Pageable |  (default to null)

            try {
                // Get all locations
                PagedModelLocationDTO result = apiInstance.getLocations(pageable);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LocationRestControllerApi.getLocations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LocationRestControllerApi();
$pageable = ; // Pageable | 

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

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

eval {
    my $result = $api_instance->getLocations(pageable => $pageable);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LocationRestControllerApi->getLocations: $@\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.LocationRestControllerApi()
pageable =  # Pageable |  (default to null)

try:
    # Get all locations
    api_response = api_instance.get_locations(pageable)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LocationRestControllerApi->getLocations: %s\n" % e)
extern crate LocationRestControllerApi;

pub fn main() {
    let pageable = ; // Pageable

    let mut context = LocationRestControllerApi::Context::default();
    let result = client.getLocations(pageable, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
pageable*
Pageable
Required

Responses


replaceLocation

Modify the location with the given id


/api/v1/locations/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/locations/{id}" \
 -d '{
  "latitude" : 5.962133916683182,
  "name" : "name",
  "id" : 1,
  "longitude" : 5.637376656633329
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LocationRestControllerApi;

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

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

        // Create an instance of the API class
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        Integer id = 56; // Integer | 
        LocationDTO locationDTO = ; // LocationDTO | 

        try {
            LocationDTO result = apiInstance.replaceLocation(id, locationDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationRestControllerApi#replaceLocation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final LocationDTO locationDTO = new LocationDTO(); // LocationDTO | 

try {
    final result = await api_instance.replaceLocation(id, locationDTO);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->replaceLocation: $e\n');
}

import org.openapitools.client.api.LocationRestControllerApi;

public class LocationRestControllerApiExample {
    public static void main(String[] args) {
        LocationRestControllerApi apiInstance = new LocationRestControllerApi();
        Integer id = 56; // Integer | 
        LocationDTO locationDTO = ; // LocationDTO | 

        try {
            LocationDTO result = apiInstance.replaceLocation(id, locationDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationRestControllerApi#replaceLocation");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
LocationRestControllerApi *apiInstance = [[LocationRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
LocationDTO *locationDTO = ; // 

// Modify the location with the given id
[apiInstance replaceLocationWith:id
    locationDTO:locationDTO
              completionHandler: ^(LocationDTO 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.LocationRestControllerApi()
var id = 56; // {Integer} 
var locationDTO = ; // {LocationDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new LocationRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var locationDTO = new LocationDTO(); // LocationDTO | 

            try {
                // Modify the location with the given id
                LocationDTO result = apiInstance.replaceLocation(id, locationDTO);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling LocationRestControllerApi.replaceLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LocationRestControllerApi();
$id = 56; // Integer | 
$locationDTO = ; // LocationDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LocationRestControllerApi->new();
my $id = 56; # Integer | 
my $locationDTO = WWW::OPenAPIClient::Object::LocationDTO->new(); # LocationDTO | 

eval {
    my $result = $api_instance->replaceLocation(id => $id, locationDTO => $locationDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LocationRestControllerApi->replaceLocation: $@\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.LocationRestControllerApi()
id = 56 # Integer |  (default to null)
locationDTO =  # LocationDTO | 

try:
    # Modify the location with the given id
    api_response = api_instance.replace_location(id, locationDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LocationRestControllerApi->replaceLocation: %s\n" % e)
extern crate LocationRestControllerApi;

pub fn main() {
    let id = 56; // Integer
    let locationDTO = ; // LocationDTO

    let mut context = LocationRestControllerApi::Context::default();
    let result = client.replaceLocation(id, locationDTO, &context).wait();

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

Scopes

Parameters

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

Responses


LoginRestController

logOut


/api/v1/auth/logout

Usage and SDK Samples

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

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

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

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

        try {
            AuthResponse result = apiInstance.logOut();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#logOut");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.logOut();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->logOut: $e\n');
}

import org.openapitools.client.api.LoginRestControllerApi;

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

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


// Create an instance of the API class
LoginRestControllerApi *apiInstance = [[LoginRestControllerApi 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.LoginRestControllerApi()
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 LoginRestControllerApi();

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

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

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

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

eval {
    my $result = $api_instance->logOut();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LoginRestControllerApi->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.LoginRestControllerApi()

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

pub fn main() {

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

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

Scopes

Parameters

Responses


login


/api/v1/auth/login

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/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.LoginRestControllerApi;

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

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

        // Create an instance of the API class
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
        LoginRequest loginRequest = ; // LoginRequest | 

        try {
            AuthResponse result = apiInstance.login(loginRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#login");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final LoginRequest loginRequest = new LoginRequest(); // LoginRequest | 

try {
    final result = await api_instance.login(loginRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->login: $e\n');
}

import org.openapitools.client.api.LoginRestControllerApi;

public class LoginRestControllerApiExample {
    public static void main(String[] args) {
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
        LoginRequest loginRequest = ; // LoginRequest | 

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


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

[apiInstance loginWith:loginRequest
              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.LoginRestControllerApi()
var loginRequest = ; // {LoginRequest} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.login(loginRequest, 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 LoginRestControllerApi();
            var loginRequest = new LoginRequest(); // LoginRequest | 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LoginRestControllerApi();
$loginRequest = ; // LoginRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LoginRestControllerApi->new();
my $loginRequest = WWW::OPenAPIClient::Object::LoginRequest->new(); # LoginRequest | 

eval {
    my $result = $api_instance->login(loginRequest => $loginRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LoginRestControllerApi->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.LoginRestControllerApi()
loginRequest =  # LoginRequest | 

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

pub fn main() {
    let loginRequest = ; // LoginRequest

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

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

Scopes

Parameters

Body parameters
Name Description
loginRequest *

Responses


refreshToken


/api/v1/auth/refresh

Usage and SDK Samples

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

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

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

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

        try {
            AuthResponse result = apiInstance.refreshToken(refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#refreshToken");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String refreshToken = new String(); // String | 

try {
    final result = await api_instance.refreshToken(refreshToken);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->refreshToken: $e\n');
}

import org.openapitools.client.api.LoginRestControllerApi;

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

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


// Create an instance of the API class
LoginRestControllerApi *apiInstance = [[LoginRestControllerApi 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.LoginRestControllerApi()
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 LoginRestControllerApi();
            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 LoginRestControllerApi.refreshToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->refreshToken(refreshToken => $refreshToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LoginRestControllerApi->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.LoginRestControllerApi()
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 LoginRestControllerApi->refreshToken: %s\n" % e)
extern crate LoginRestControllerApi;

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

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

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

Scopes

Parameters

Responses


register


/api/v1/auth/register

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/auth/register" \
 -d '{
  "password" : "password",
  "name" : "name",
  "location" : {
    "latitude" : 5.962133916683182,
    "name" : "name",
    "id" : 1,
    "longitude" : 5.637376656633329
  },
  "surnames" : "surnames",
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LoginRestControllerApi;

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

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

        // Create an instance of the API class
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
        RegisterRequest registerRequest = ; // RegisterRequest | 

        try {
            AuthResponse result = apiInstance.register(registerRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginRestControllerApi#register");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RegisterRequest registerRequest = new RegisterRequest(); // RegisterRequest | 

try {
    final result = await api_instance.register(registerRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->register: $e\n');
}

import org.openapitools.client.api.LoginRestControllerApi;

public class LoginRestControllerApiExample {
    public static void main(String[] args) {
        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
        RegisterRequest registerRequest = ; // RegisterRequest | 

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


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

[apiInstance registerWith:registerRequest
              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.LoginRestControllerApi()
var registerRequest = ; // {RegisterRequest} 

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

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

            // Create an instance of the API class
            var apiInstance = new LoginRestControllerApi();
            var registerRequest = new RegisterRequest(); // RegisterRequest | 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\LoginRestControllerApi();
$registerRequest = ; // RegisterRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::LoginRestControllerApi->new();
my $registerRequest = WWW::OPenAPIClient::Object::RegisterRequest->new(); # RegisterRequest | 

eval {
    my $result = $api_instance->register(registerRequest => $registerRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LoginRestControllerApi->register: $@\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.LoginRestControllerApi()
registerRequest =  # RegisterRequest | 

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

pub fn main() {
    let registerRequest = ; // RegisterRequest

    let mut context = LoginRestControllerApi::Context::default();
    let result = client.register(registerRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
registerRequest *

Responses


OrderRestController

createOrder

Create a new order


/api/v1/orders/

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/orders/" \
 -d '{
  "country" : "country",
  "product" : {
    "image" : {
      "id" : 6
    },
    "createdAt" : "2000-01-23T04:56:07.000+00:00",
    "price" : 4.145608029883936,
    "isSold" : true,
    "name" : "name",
    "description" : "description",
    "id" : 2,
    "category" : "category",
    "user" : {
      "roles" : [ "roles", "roles" ],
      "name" : "name",
      "id" : 9,
      "surnames" : "surnames",
      "email" : "email"
    },
    "updatedAt" : "2000-01-23T04:56:07.000+00:00"
  },
  "address" : "address",
  "city" : "city",
  "totalPrice" : 6.027456183070403,
  "creditCardExpiryDate" : "creditCardExpiryDate",
  "buyer" : {
    "roles" : [ "roles", "roles" ],
    "name" : "name",
    "id" : 9,
    "surnames" : "surnames",
    "email" : "email"
  },
  "zipcode" : "zipcode",
  "createdAt" : "2000-01-23",
  "creditCardCVV" : "creditCardCVV",
  "province" : "province",
  "phone" : "phone",
  "creditCardNumber" : "creditCardNumber",
  "name" : "name",
  "id" : 0,
  "surnames" : "surnames",
  "apartment" : "apartment",
  "updatedAt" : "2000-01-23"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrderRestControllerApi;

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

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

        // Create an instance of the API class
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        OrderDTO orderDTO = ; // OrderDTO | 

        try {
            OrderDTO result = apiInstance.createOrder(orderDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#createOrder");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final OrderDTO orderDTO = new OrderDTO(); // OrderDTO | 

try {
    final result = await api_instance.createOrder(orderDTO);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->createOrder: $e\n');
}

import org.openapitools.client.api.OrderRestControllerApi;

public class OrderRestControllerApiExample {
    public static void main(String[] args) {
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        OrderDTO orderDTO = ; // OrderDTO | 

        try {
            OrderDTO result = apiInstance.createOrder(orderDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#createOrder");
            e.printStackTrace();
        }
    }
}


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

// Create a new order
[apiInstance createOrderWith:orderDTO
              completionHandler: ^(OrderDTO 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.OrderRestControllerApi()
var orderDTO = ; // {OrderDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new OrderRestControllerApi();
            var orderDTO = new OrderDTO(); // OrderDTO | 

            try {
                // Create a new order
                OrderDTO result = apiInstance.createOrder(orderDTO);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrderRestControllerApi.createOrder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrderRestControllerApi();
$orderDTO = ; // OrderDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrderRestControllerApi->new();
my $orderDTO = WWW::OPenAPIClient::Object::OrderDTO->new(); # OrderDTO | 

eval {
    my $result = $api_instance->createOrder(orderDTO => $orderDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrderRestControllerApi->createOrder: $@\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.OrderRestControllerApi()
orderDTO =  # OrderDTO | 

try:
    # Create a new order
    api_response = api_instance.create_order(orderDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->createOrder: %s\n" % e)
extern crate OrderRestControllerApi;

pub fn main() {
    let orderDTO = ; // OrderDTO

    let mut context = OrderRestControllerApi::Context::default();
    let result = client.createOrder(orderDTO, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
orderDTO *

Responses


deleteOrder

Delete the order with the given id


/api/v1/orders/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/orders/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrderRestControllerApi;

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

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

        // Create an instance of the API class
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            OrderDTO result = apiInstance.deleteOrder(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#deleteOrder");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.deleteOrder(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->deleteOrder: $e\n');
}

import org.openapitools.client.api.OrderRestControllerApi;

public class OrderRestControllerApiExample {
    public static void main(String[] args) {
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
OrderRestControllerApi *apiInstance = [[OrderRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete the order with the given id
[apiInstance deleteOrderWith:id
              completionHandler: ^(OrderDTO 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.OrderRestControllerApi()
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.deleteOrder(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new OrderRestControllerApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete the order with the given id
                OrderDTO result = apiInstance.deleteOrder(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrderRestControllerApi.deleteOrder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrderRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrderRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->deleteOrder(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrderRestControllerApi->deleteOrder: $@\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.OrderRestControllerApi()
id = 56 # Integer |  (default to null)

try:
    # Delete the order with the given id
    api_response = api_instance.delete_order(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->deleteOrder: %s\n" % e)
extern crate OrderRestControllerApi;

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


downloadTicket

Get the invoice PDF of the order with the given id


/api/v1/orders/{id}/ticket

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/orders/{id}/ticket"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrderRestControllerApi;

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

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

        // Create an instance of the API class
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            byte[] result = apiInstance.downloadTicket(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#downloadTicket");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.downloadTicket(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->downloadTicket: $e\n');
}

import org.openapitools.client.api.OrderRestControllerApi;

public class OrderRestControllerApiExample {
    public static void main(String[] args) {
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            byte[] result = apiInstance.downloadTicket(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#downloadTicket");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
OrderRestControllerApi *apiInstance = [[OrderRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

// Get the invoice PDF of the order with the given id
[apiInstance downloadTicketWith:id
              completionHandler: ^(byte[] 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.OrderRestControllerApi()
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.downloadTicket(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new OrderRestControllerApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Get the invoice PDF of the order with the given id
                byte[] result = apiInstance.downloadTicket(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrderRestControllerApi.downloadTicket: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrderRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrderRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->downloadTicket(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrderRestControllerApi->downloadTicket: $@\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.OrderRestControllerApi()
id = 56 # Integer |  (default to null)

try:
    # Get the invoice PDF of the order with the given id
    api_response = api_instance.download_ticket(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->downloadTicket: %s\n" % e)
extern crate OrderRestControllerApi;

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


getOrder

Get an order by its id


/api/v1/orders/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/orders/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrderRestControllerApi;

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

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

        // Create an instance of the API class
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            OrderDTO result = apiInstance.getOrder(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#getOrder");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.getOrder(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getOrder: $e\n');
}

import org.openapitools.client.api.OrderRestControllerApi;

public class OrderRestControllerApiExample {
    public static void main(String[] args) {
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
OrderRestControllerApi *apiInstance = [[OrderRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

// Get an order by its id
[apiInstance getOrderWith:id
              completionHandler: ^(OrderDTO 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.OrderRestControllerApi()
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.getOrder(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new OrderRestControllerApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Get an order by its id
                OrderDTO result = apiInstance.getOrder(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrderRestControllerApi.getOrder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrderRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrderRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->getOrder(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrderRestControllerApi->getOrder: $@\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.OrderRestControllerApi()
id = 56 # Integer |  (default to null)

try:
    # Get an order by its id
    api_response = api_instance.get_order(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->getOrder: %s\n" % e)
extern crate OrderRestControllerApi;

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


getOrders

Get a list of all orders


/api/v1/orders/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/orders/"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrderRestControllerApi;

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

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

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

        try {
            array[OrderDTO] result = apiInstance.getOrders();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#getOrders");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.getOrders();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getOrders: $e\n');
}

import org.openapitools.client.api.OrderRestControllerApi;

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

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


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

// Get a list of all orders
[apiInstance getOrdersWithCompletionHandler: 
              ^(array[OrderDTO] 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.OrderRestControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOrders(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Get a list of all orders
                array[OrderDTO] result = apiInstance.getOrders();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrderRestControllerApi.getOrders: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->getOrders();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrderRestControllerApi->getOrders: $@\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.OrderRestControllerApi()

try:
    # Get a list of all orders
    api_response = api_instance.get_orders()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->getOrders: %s\n" % e)
extern crate OrderRestControllerApi;

pub fn main() {

    let mut context = OrderRestControllerApi::Context::default();
    let result = client.getOrders(&context).wait();

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

Scopes

Parameters

Responses


replaceOrder

Modify the order with the given id


/api/v1/orders/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/orders/{id}" \
 -d '{
  "country" : "country",
  "product" : {
    "image" : {
      "id" : 6
    },
    "createdAt" : "2000-01-23T04:56:07.000+00:00",
    "price" : 4.145608029883936,
    "isSold" : true,
    "name" : "name",
    "description" : "description",
    "id" : 2,
    "category" : "category",
    "user" : {
      "roles" : [ "roles", "roles" ],
      "name" : "name",
      "id" : 9,
      "surnames" : "surnames",
      "email" : "email"
    },
    "updatedAt" : "2000-01-23T04:56:07.000+00:00"
  },
  "address" : "address",
  "city" : "city",
  "totalPrice" : 6.027456183070403,
  "creditCardExpiryDate" : "creditCardExpiryDate",
  "buyer" : {
    "roles" : [ "roles", "roles" ],
    "name" : "name",
    "id" : 9,
    "surnames" : "surnames",
    "email" : "email"
  },
  "zipcode" : "zipcode",
  "createdAt" : "2000-01-23",
  "creditCardCVV" : "creditCardCVV",
  "province" : "province",
  "phone" : "phone",
  "creditCardNumber" : "creditCardNumber",
  "name" : "name",
  "id" : 0,
  "surnames" : "surnames",
  "apartment" : "apartment",
  "updatedAt" : "2000-01-23"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrderRestControllerApi;

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

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

        // Create an instance of the API class
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Integer id = 56; // Integer | 
        OrderDTO orderDTO = ; // OrderDTO | 

        try {
            OrderDTO result = apiInstance.replaceOrder(id, orderDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#replaceOrder");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final OrderDTO orderDTO = new OrderDTO(); // OrderDTO | 

try {
    final result = await api_instance.replaceOrder(id, orderDTO);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->replaceOrder: $e\n');
}

import org.openapitools.client.api.OrderRestControllerApi;

public class OrderRestControllerApiExample {
    public static void main(String[] args) {
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Integer id = 56; // Integer | 
        OrderDTO orderDTO = ; // OrderDTO | 

        try {
            OrderDTO result = apiInstance.replaceOrder(id, orderDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#replaceOrder");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
OrderRestControllerApi *apiInstance = [[OrderRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
OrderDTO *orderDTO = ; // 

// Modify the order with the given id
[apiInstance replaceOrderWith:id
    orderDTO:orderDTO
              completionHandler: ^(OrderDTO 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.OrderRestControllerApi()
var id = 56; // {Integer} 
var orderDTO = ; // {OrderDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new OrderRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var orderDTO = new OrderDTO(); // OrderDTO | 

            try {
                // Modify the order with the given id
                OrderDTO result = apiInstance.replaceOrder(id, orderDTO);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrderRestControllerApi.replaceOrder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrderRestControllerApi();
$id = 56; // Integer | 
$orderDTO = ; // OrderDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrderRestControllerApi->new();
my $id = 56; # Integer | 
my $orderDTO = WWW::OPenAPIClient::Object::OrderDTO->new(); # OrderDTO | 

eval {
    my $result = $api_instance->replaceOrder(id => $id, orderDTO => $orderDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrderRestControllerApi->replaceOrder: $@\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.OrderRestControllerApi()
id = 56 # Integer |  (default to null)
orderDTO =  # OrderDTO | 

try:
    # Modify the order with the given id
    api_response = api_instance.replace_order(id, orderDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->replaceOrder: %s\n" % e)
extern crate OrderRestControllerApi;

pub fn main() {
    let id = 56; // Integer
    let orderDTO = ; // OrderDTO

    let mut context = OrderRestControllerApi::Context::default();
    let result = client.replaceOrder(id, orderDTO, &context).wait();

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

Scopes

Parameters

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

Responses


ProductRestController

createProduct


/api/v1/products/

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/products/" \
 -d '{
  "image" : {
    "id" : 6
  },
  "createdAt" : "2000-01-23T04:56:07.000+00:00",
  "price" : 4.145608029883936,
  "isSold" : true,
  "name" : "name",
  "description" : "description",
  "id" : 2,
  "category" : "category",
  "user" : {
    "roles" : [ "roles", "roles" ],
    "name" : "name",
    "id" : 9,
    "surnames" : "surnames",
    "email" : "email"
  },
  "updatedAt" : "2000-01-23T04:56:07.000+00:00"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

        // Create an instance of the API class
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        ProductDTO productDTO = ; // ProductDTO | 

        try {
            ProductDTO result = apiInstance.createProduct(productDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#createProduct");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProductDTO productDTO = new ProductDTO(); // ProductDTO | 

try {
    final result = await api_instance.createProduct(productDTO);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->createProduct: $e\n');
}

import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        ProductDTO productDTO = ; // ProductDTO | 

        try {
            ProductDTO result = apiInstance.createProduct(productDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#createProduct");
            e.printStackTrace();
        }
    }
}


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

[apiInstance createProductWith:productDTO
              completionHandler: ^(ProductDTO 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.ProductRestControllerApi()
var productDTO = ; // {ProductDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new ProductRestControllerApi();
            var productDTO = new ProductDTO(); // ProductDTO | 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProductRestControllerApi();
$productDTO = ; // ProductDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProductRestControllerApi->new();
my $productDTO = WWW::OPenAPIClient::Object::ProductDTO->new(); # ProductDTO | 

eval {
    my $result = $api_instance->createProduct(productDTO => $productDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestControllerApi->createProduct: $@\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.ProductRestControllerApi()
productDTO =  # ProductDTO | 

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

pub fn main() {
    let productDTO = ; // ProductDTO

    let mut context = ProductRestControllerApi::Context::default();
    let result = client.createProduct(productDTO, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
productDTO *

Responses


createProductImage


/api/v1/products/{id}/image/

Usage and SDK Samples

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

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

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

        // Create an instance of the API class
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 
        ReplaceImageFileRequest replaceImageFileRequest = ; // ReplaceImageFileRequest | 

        try {
            ImageDTO result = apiInstance.createProductImage(id, replaceImageFileRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#createProductImage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final ReplaceImageFileRequest replaceImageFileRequest = new ReplaceImageFileRequest(); // ReplaceImageFileRequest | 

try {
    final result = await api_instance.createProductImage(id, replaceImageFileRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->createProductImage: $e\n');
}

import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 
        ReplaceImageFileRequest replaceImageFileRequest = ; // ReplaceImageFileRequest | 

        try {
            ImageDTO result = apiInstance.createProductImage(id, replaceImageFileRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#createProductImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProductRestControllerApi *apiInstance = [[ProductRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
ReplaceImageFileRequest *replaceImageFileRequest = ; //  (optional)

[apiInstance createProductImageWith:id
    replaceImageFileRequest:replaceImageFileRequest
              completionHandler: ^(ImageDTO 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.ProductRestControllerApi()
var id = 56; // {Integer} 
var opts = {
  'replaceImageFileRequest':  // {ReplaceImageFileRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ProductRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var replaceImageFileRequest = new ReplaceImageFileRequest(); // ReplaceImageFileRequest |  (optional) 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProductRestControllerApi();
$id = 56; // Integer | 
$replaceImageFileRequest = ; // ReplaceImageFileRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProductRestControllerApi->new();
my $id = 56; # Integer | 
my $replaceImageFileRequest = WWW::OPenAPIClient::Object::ReplaceImageFileRequest->new(); # ReplaceImageFileRequest | 

eval {
    my $result = $api_instance->createProductImage(id => $id, replaceImageFileRequest => $replaceImageFileRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestControllerApi->createProductImage: $@\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.ProductRestControllerApi()
id = 56 # Integer |  (default to null)
replaceImageFileRequest =  # ReplaceImageFileRequest |  (optional)

try:
    api_response = api_instance.create_product_image(id, replaceImageFileRequest=replaceImageFileRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestControllerApi->createProductImage: %s\n" % e)
extern crate ProductRestControllerApi;

pub fn main() {
    let id = 56; // Integer
    let replaceImageFileRequest = ; // ReplaceImageFileRequest

    let mut context = ProductRestControllerApi::Context::default();
    let result = client.createProductImage(id, replaceImageFileRequest, &context).wait();

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

Scopes

Parameters

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

Responses


createReview


/api/v1/products/{id}/reviews/

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/products/{id}/reviews/" \
 -d '{
  "date" : "date",
  "product" : {
    "price" : 7.061401241503109,
    "name" : "name",
    "id" : 2,
    "category" : "category",
    "user" : {
      "roles" : [ "roles", "roles" ],
      "name" : "name",
      "id" : 9,
      "surnames" : "surnames",
      "email" : "email"
    }
  },
  "rating" : 6.0274563,
  "description" : "description",
  "id" : 0,
  "user" : {
    "roles" : [ "roles", "roles" ],
    "name" : "name",
    "id" : 9,
    "surnames" : "surnames",
    "email" : "email"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

        // Create an instance of the API class
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 
        ReviewDTO reviewDTO = ; // ReviewDTO | 

        try {
            ReviewDTO result = apiInstance.createReview(id, reviewDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#createReview");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final ReviewDTO reviewDTO = new ReviewDTO(); // ReviewDTO | 

try {
    final result = await api_instance.createReview(id, reviewDTO);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->createReview: $e\n');
}

import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 
        ReviewDTO reviewDTO = ; // ReviewDTO | 

        try {
            ReviewDTO result = apiInstance.createReview(id, reviewDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#createReview");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProductRestControllerApi *apiInstance = [[ProductRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
ReviewDTO *reviewDTO = ; // 

[apiInstance createReviewWith:id
    reviewDTO:reviewDTO
              completionHandler: ^(ReviewDTO 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.ProductRestControllerApi()
var id = 56; // {Integer} 
var reviewDTO = ; // {ReviewDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new ProductRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var reviewDTO = new ReviewDTO(); // ReviewDTO | 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProductRestControllerApi();
$id = 56; // Integer | 
$reviewDTO = ; // ReviewDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProductRestControllerApi->new();
my $id = 56; # Integer | 
my $reviewDTO = WWW::OPenAPIClient::Object::ReviewDTO->new(); # ReviewDTO | 

eval {
    my $result = $api_instance->createReview(id => $id, reviewDTO => $reviewDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestControllerApi->createReview: $@\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.ProductRestControllerApi()
id = 56 # Integer |  (default to null)
reviewDTO =  # ReviewDTO | 

try:
    api_response = api_instance.create_review(id, reviewDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestControllerApi->createReview: %s\n" % e)
extern crate ProductRestControllerApi;

pub fn main() {
    let id = 56; // Integer
    let reviewDTO = ; // ReviewDTO

    let mut context = ProductRestControllerApi::Context::default();
    let result = client.createReview(id, reviewDTO, &context).wait();

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

Scopes

Parameters

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

Responses


deleteProduct


/api/v1/products/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/products/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

        // Create an instance of the API class
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            ProductDTO result = apiInstance.deleteProduct(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#deleteProduct");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.deleteProduct(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->deleteProduct: $e\n');
}

import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
ProductRestControllerApi *apiInstance = [[ProductRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

[apiInstance deleteProductWith:id
              completionHandler: ^(ProductDTO 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.ProductRestControllerApi()
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.deleteProduct(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new ProductRestControllerApi();
            var id = 56;  // Integer |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProductRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProductRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->deleteProduct(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestControllerApi->deleteProduct: $@\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.ProductRestControllerApi()
id = 56 # Integer |  (default to null)

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

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


deleteProductImage


/api/v1/products/{id}/image/{imageId}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/products/{id}/image/{imageId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

        // Create an instance of the API class
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 
        Integer imageId = 56; // Integer | 

        try {
            ImageDTO result = apiInstance.deleteProductImage(id, imageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#deleteProductImage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final Integer imageId = new Integer(); // Integer | 

try {
    final result = await api_instance.deleteProductImage(id, imageId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->deleteProductImage: $e\n');
}

import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 
        Integer imageId = 56; // Integer | 

        try {
            ImageDTO result = apiInstance.deleteProductImage(id, imageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#deleteProductImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProductRestControllerApi *apiInstance = [[ProductRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
Integer *imageId = 56; //  (default to null)

[apiInstance deleteProductImageWith:id
    imageId:imageId
              completionHandler: ^(ImageDTO 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.ProductRestControllerApi()
var id = 56; // {Integer} 
var imageId = 56; // {Integer} 

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

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

            // Create an instance of the API class
            var apiInstance = new ProductRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var imageId = 56;  // Integer |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProductRestControllerApi();
$id = 56; // Integer | 
$imageId = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProductRestControllerApi->new();
my $id = 56; # Integer | 
my $imageId = 56; # Integer | 

eval {
    my $result = $api_instance->deleteProductImage(id => $id, imageId => $imageId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestControllerApi->deleteProductImage: $@\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.ProductRestControllerApi()
id = 56 # Integer |  (default to null)
imageId = 56 # Integer |  (default to null)

try:
    api_response = api_instance.delete_product_image(id, imageId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestControllerApi->deleteProductImage: %s\n" % e)
extern crate ProductRestControllerApi;

pub fn main() {
    let id = 56; // Integer
    let imageId = 56; // Integer

    let mut context = ProductRestControllerApi::Context::default();
    let result = client.deleteProductImage(id, imageId, &context).wait();

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

Scopes

Parameters

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

Responses


getAvailableProducts


/api/v1/products/recommendations

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/products/recommendations?page=56&size=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

        // Create an instance of the API class
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 

        try {
            PagedModelExtendedProductDTO result = apiInstance.getAvailableProducts(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#getAvailableProducts");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer page = new Integer(); // Integer | 
final Integer size = new Integer(); // Integer | 

try {
    final result = await api_instance.getAvailableProducts(page, size);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getAvailableProducts: $e\n');
}

import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 

        try {
            PagedModelExtendedProductDTO result = apiInstance.getAvailableProducts(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#getAvailableProducts");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProductRestControllerApi *apiInstance = [[ProductRestControllerApi alloc] init];
Integer *page = 56; //  (optional) (default to 0)
Integer *size = 56; //  (optional) (default to 12)

[apiInstance getAvailableProductsWith:page
    size:size
              completionHandler: ^(PagedModelExtendedProductDTO 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.ProductRestControllerApi()
var opts = {
  'page': 56, // {Integer} 
  'size': 56 // {Integer} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ProductRestControllerApi();
            var page = 56;  // Integer |  (optional)  (default to 0)
            var size = 56;  // Integer |  (optional)  (default to 12)

            try {
                PagedModelExtendedProductDTO result = apiInstance.getAvailableProducts(page, size);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProductRestControllerApi.getAvailableProducts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProductRestControllerApi();
$page = 56; // Integer | 
$size = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProductRestControllerApi->new();
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval {
    my $result = $api_instance->getAvailableProducts(page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestControllerApi->getAvailableProducts: $@\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.ProductRestControllerApi()
page = 56 # Integer |  (optional) (default to 0)
size = 56 # Integer |  (optional) (default to 12)

try:
    api_response = api_instance.get_available_products(page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestControllerApi->getAvailableProducts: %s\n" % e)
extern crate ProductRestControllerApi;

pub fn main() {
    let page = 56; // Integer
    let size = 56; // Integer

    let mut context = ProductRestControllerApi::Context::default();
    let result = client.getAvailableProducts(page, size, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
page
Integer (int32)
size
Integer (int32)

Responses


getProduct


/api/v1/products/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/products/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

        // Create an instance of the API class
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            ProductDTO result = apiInstance.getProduct(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#getProduct");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.getProduct(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getProduct: $e\n');
}

import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
ProductRestControllerApi *apiInstance = [[ProductRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

[apiInstance getProductWith:id
              completionHandler: ^(ProductDTO 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.ProductRestControllerApi()
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.getProduct(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new ProductRestControllerApi();
            var id = 56;  // Integer |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProductRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProductRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->getProduct(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestControllerApi->getProduct: $@\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.ProductRestControllerApi()
id = 56 # Integer |  (default to null)

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

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


getProducts


/api/v1/products/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/products/?name=name_example&category=category_example&location=location_example&date=date_example&minPrice=minPrice_example&maxPrice=maxPrice_example&page=56&size=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

        // Create an instance of the API class
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        String name = name_example; // String | 
        String category = category_example; // String | 
        String location = location_example; // String | 
        String date = date_example; // String | 
        String minPrice = minPrice_example; // String | 
        String maxPrice = maxPrice_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 

        try {
            PagedModelExtendedProductDTO result = apiInstance.getProducts(name, category, location, date, minPrice, maxPrice, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#getProducts");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String name = new String(); // String | 
final String category = new String(); // String | 
final String location = new String(); // String | 
final String date = new String(); // String | 
final String minPrice = new String(); // String | 
final String maxPrice = new String(); // String | 
final Integer page = new Integer(); // Integer | 
final Integer size = new Integer(); // Integer | 

try {
    final result = await api_instance.getProducts(name, category, location, date, minPrice, maxPrice, page, size);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getProducts: $e\n');
}

import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        String name = name_example; // String | 
        String category = category_example; // String | 
        String location = location_example; // String | 
        String date = date_example; // String | 
        String minPrice = minPrice_example; // String | 
        String maxPrice = maxPrice_example; // String | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 

        try {
            PagedModelExtendedProductDTO result = apiInstance.getProducts(name, category, location, date, minPrice, maxPrice, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#getProducts");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProductRestControllerApi *apiInstance = [[ProductRestControllerApi alloc] init];
String *name = name_example; //  (optional) (default to null)
String *category = category_example; //  (optional) (default to null)
String *location = location_example; //  (optional) (default to null)
String *date = date_example; //  (optional) (default to null)
String *minPrice = minPrice_example; //  (optional) (default to null)
String *maxPrice = maxPrice_example; //  (optional) (default to null)
Integer *page = 56; //  (optional) (default to 0)
Integer *size = 56; //  (optional) (default to 10)

[apiInstance getProductsWith:name
    category:category
    location:location
    date:date
    minPrice:minPrice
    maxPrice:maxPrice
    page:page
    size:size
              completionHandler: ^(PagedModelExtendedProductDTO 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.ProductRestControllerApi()
var opts = {
  'name': name_example, // {String} 
  'category': category_example, // {String} 
  'location': location_example, // {String} 
  'date': date_example, // {String} 
  'minPrice': minPrice_example, // {String} 
  'maxPrice': maxPrice_example, // {String} 
  'page': 56, // {Integer} 
  'size': 56 // {Integer} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new ProductRestControllerApi();
            var name = name_example;  // String |  (optional)  (default to null)
            var category = category_example;  // String |  (optional)  (default to null)
            var location = location_example;  // String |  (optional)  (default to null)
            var date = date_example;  // String |  (optional)  (default to null)
            var minPrice = minPrice_example;  // String |  (optional)  (default to null)
            var maxPrice = maxPrice_example;  // String |  (optional)  (default to null)
            var page = 56;  // Integer |  (optional)  (default to 0)
            var size = 56;  // Integer |  (optional)  (default to 10)

            try {
                PagedModelExtendedProductDTO result = apiInstance.getProducts(name, category, location, date, minPrice, maxPrice, page, size);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProductRestControllerApi.getProducts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProductRestControllerApi();
$name = name_example; // String | 
$category = category_example; // String | 
$location = location_example; // String | 
$date = date_example; // String | 
$minPrice = minPrice_example; // String | 
$maxPrice = maxPrice_example; // String | 
$page = 56; // Integer | 
$size = 56; // Integer | 

try {
    $result = $api_instance->getProducts($name, $category, $location, $date, $minPrice, $maxPrice, $page, $size);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductRestControllerApi->getProducts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProductRestControllerApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProductRestControllerApi->new();
my $name = name_example; # String | 
my $category = category_example; # String | 
my $location = location_example; # String | 
my $date = date_example; # String | 
my $minPrice = minPrice_example; # String | 
my $maxPrice = maxPrice_example; # String | 
my $page = 56; # Integer | 
my $size = 56; # Integer | 

eval {
    my $result = $api_instance->getProducts(name => $name, category => $category, location => $location, date => $date, minPrice => $minPrice, maxPrice => $maxPrice, page => $page, size => $size);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestControllerApi->getProducts: $@\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.ProductRestControllerApi()
name = name_example # String |  (optional) (default to null)
category = category_example # String |  (optional) (default to null)
location = location_example # String |  (optional) (default to null)
date = date_example # String |  (optional) (default to null)
minPrice = minPrice_example # String |  (optional) (default to null)
maxPrice = maxPrice_example # String |  (optional) (default to null)
page = 56 # Integer |  (optional) (default to 0)
size = 56 # Integer |  (optional) (default to 10)

try:
    api_response = api_instance.get_products(name=name, category=category, location=location, date=date, minPrice=minPrice, maxPrice=maxPrice, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestControllerApi->getProducts: %s\n" % e)
extern crate ProductRestControllerApi;

pub fn main() {
    let name = name_example; // String
    let category = category_example; // String
    let location = location_example; // String
    let date = date_example; // String
    let minPrice = minPrice_example; // String
    let maxPrice = maxPrice_example; // String
    let page = 56; // Integer
    let size = 56; // Integer

    let mut context = ProductRestControllerApi::Context::default();
    let result = client.getProducts(name, category, location, date, minPrice, maxPrice, page, size, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
name
String
category
String
location
String
date
String
minPrice
String
maxPrice
String
page
Integer (int32)
size
Integer (int32)

Responses


replaceProduct


/api/v1/products/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/products/{id}" \
 -d '{
  "image" : {
    "id" : 6
  },
  "createdAt" : "2000-01-23T04:56:07.000+00:00",
  "price" : 4.145608029883936,
  "isSold" : true,
  "name" : "name",
  "description" : "description",
  "id" : 2,
  "category" : "category",
  "user" : {
    "roles" : [ "roles", "roles" ],
    "name" : "name",
    "id" : 9,
    "surnames" : "surnames",
    "email" : "email"
  },
  "updatedAt" : "2000-01-23T04:56:07.000+00:00"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

        // Create an instance of the API class
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 
        ProductDTO productDTO = ; // ProductDTO | 

        try {
            ProductDTO result = apiInstance.replaceProduct(id, productDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#replaceProduct");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final ProductDTO productDTO = new ProductDTO(); // ProductDTO | 

try {
    final result = await api_instance.replaceProduct(id, productDTO);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->replaceProduct: $e\n');
}

import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Integer id = 56; // Integer | 
        ProductDTO productDTO = ; // ProductDTO | 

        try {
            ProductDTO result = apiInstance.replaceProduct(id, productDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#replaceProduct");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProductRestControllerApi *apiInstance = [[ProductRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
ProductDTO *productDTO = ; // 

[apiInstance replaceProductWith:id
    productDTO:productDTO
              completionHandler: ^(ProductDTO 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.ProductRestControllerApi()
var id = 56; // {Integer} 
var productDTO = ; // {ProductDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new ProductRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var productDTO = new ProductDTO(); // ProductDTO | 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProductRestControllerApi();
$id = 56; // Integer | 
$productDTO = ; // ProductDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProductRestControllerApi->new();
my $id = 56; # Integer | 
my $productDTO = WWW::OPenAPIClient::Object::ProductDTO->new(); # ProductDTO | 

eval {
    my $result = $api_instance->replaceProduct(id => $id, productDTO => $productDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestControllerApi->replaceProduct: $@\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.ProductRestControllerApi()
id = 56 # Integer |  (default to null)
productDTO =  # ProductDTO | 

try:
    api_response = api_instance.replace_product(id, productDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestControllerApi->replaceProduct: %s\n" % e)
extern crate ProductRestControllerApi;

pub fn main() {
    let id = 56; // Integer
    let productDTO = ; // ProductDTO

    let mut context = ProductRestControllerApi::Context::default();
    let result = client.replaceProduct(id, productDTO, &context).wait();

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

Scopes

Parameters

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

Responses


ReviewRestController

deleteReview


/api/v1/reviews/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/reviews/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReviewRestControllerApi;

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

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

        // Create an instance of the API class
        ReviewRestControllerApi apiInstance = new ReviewRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            ReviewDTO result = apiInstance.deleteReview(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewRestControllerApi#deleteReview");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.deleteReview(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->deleteReview: $e\n');
}

import org.openapitools.client.api.ReviewRestControllerApi;

public class ReviewRestControllerApiExample {
    public static void main(String[] args) {
        ReviewRestControllerApi apiInstance = new ReviewRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
ReviewRestControllerApi *apiInstance = [[ReviewRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

[apiInstance deleteReviewWith:id
              completionHandler: ^(ReviewDTO 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.ReviewRestControllerApi()
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.deleteReview(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new ReviewRestControllerApi();
            var id = 56;  // Integer |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReviewRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ReviewRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->deleteReview(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReviewRestControllerApi->deleteReview: $@\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.ReviewRestControllerApi()
id = 56 # Integer |  (default to null)

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

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


getReview


/api/v1/reviews/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/reviews/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReviewRestControllerApi;

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

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

        // Create an instance of the API class
        ReviewRestControllerApi apiInstance = new ReviewRestControllerApi();
        Integer id = 56; // Integer | 

        try {
            ReviewDTO result = apiInstance.getReview(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewRestControllerApi#getReview");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.getReview(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getReview: $e\n');
}

import org.openapitools.client.api.ReviewRestControllerApi;

public class ReviewRestControllerApiExample {
    public static void main(String[] args) {
        ReviewRestControllerApi apiInstance = new ReviewRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
ReviewRestControllerApi *apiInstance = [[ReviewRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

[apiInstance getReviewWith:id
              completionHandler: ^(ReviewDTO 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.ReviewRestControllerApi()
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.getReview(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new ReviewRestControllerApi();
            var id = 56;  // Integer |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReviewRestControllerApi();
$id = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ReviewRestControllerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->getReview(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReviewRestControllerApi->getReview: $@\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.ReviewRestControllerApi()
id = 56 # Integer |  (default to null)

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

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


getReviews


/api/v1/reviews/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/reviews/?pageable="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReviewRestControllerApi;

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

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

        // Create an instance of the API class
        ReviewRestControllerApi apiInstance = new ReviewRestControllerApi();
        Pageable pageable = ; // Pageable | 

        try {
            PagedModelReviewDTO result = apiInstance.getReviews(pageable);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewRestControllerApi#getReviews");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Pageable pageable = new Pageable(); // Pageable | 

try {
    final result = await api_instance.getReviews(pageable);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getReviews: $e\n');
}

import org.openapitools.client.api.ReviewRestControllerApi;

public class ReviewRestControllerApiExample {
    public static void main(String[] args) {
        ReviewRestControllerApi apiInstance = new ReviewRestControllerApi();
        Pageable pageable = ; // Pageable | 

        try {
            PagedModelReviewDTO result = apiInstance.getReviews(pageable);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewRestControllerApi#getReviews");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ReviewRestControllerApi *apiInstance = [[ReviewRestControllerApi alloc] init];
Pageable *pageable = ; //  (default to null)

[apiInstance getReviewsWith:pageable
              completionHandler: ^(PagedModelReviewDTO 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.ReviewRestControllerApi()
var pageable = ; // {Pageable} 

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

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

            // Create an instance of the API class
            var apiInstance = new ReviewRestControllerApi();
            var pageable = new Pageable(); // Pageable |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReviewRestControllerApi();
$pageable = ; // Pageable | 

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

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

eval {
    my $result = $api_instance->getReviews(pageable => $pageable);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReviewRestControllerApi->getReviews: $@\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.ReviewRestControllerApi()
pageable =  # Pageable |  (default to null)

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

pub fn main() {
    let pageable = ; // Pageable

    let mut context = ReviewRestControllerApi::Context::default();
    let result = client.getReviews(pageable, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
pageable*
Pageable
Required

Responses


replaceReview


/api/v1/reviews/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/reviews/{id}" \
 -d '{
  "date" : "date",
  "product" : {
    "price" : 7.061401241503109,
    "name" : "name",
    "id" : 2,
    "category" : "category",
    "user" : {
      "roles" : [ "roles", "roles" ],
      "name" : "name",
      "id" : 9,
      "surnames" : "surnames",
      "email" : "email"
    }
  },
  "rating" : 6.0274563,
  "description" : "description",
  "id" : 0,
  "user" : {
    "roles" : [ "roles", "roles" ],
    "name" : "name",
    "id" : 9,
    "surnames" : "surnames",
    "email" : "email"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReviewRestControllerApi;

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

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

        // Create an instance of the API class
        ReviewRestControllerApi apiInstance = new ReviewRestControllerApi();
        Integer id = 56; // Integer | 
        ReviewDTO reviewDTO = ; // ReviewDTO | 

        try {
            ReviewDTO result = apiInstance.replaceReview(id, reviewDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewRestControllerApi#replaceReview");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final ReviewDTO reviewDTO = new ReviewDTO(); // ReviewDTO | 

try {
    final result = await api_instance.replaceReview(id, reviewDTO);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->replaceReview: $e\n');
}

import org.openapitools.client.api.ReviewRestControllerApi;

public class ReviewRestControllerApiExample {
    public static void main(String[] args) {
        ReviewRestControllerApi apiInstance = new ReviewRestControllerApi();
        Integer id = 56; // Integer | 
        ReviewDTO reviewDTO = ; // ReviewDTO | 

        try {
            ReviewDTO result = apiInstance.replaceReview(id, reviewDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewRestControllerApi#replaceReview");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ReviewRestControllerApi *apiInstance = [[ReviewRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
ReviewDTO *reviewDTO = ; // 

[apiInstance replaceReviewWith:id
    reviewDTO:reviewDTO
              completionHandler: ^(ReviewDTO 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.ReviewRestControllerApi()
var id = 56; // {Integer} 
var reviewDTO = ; // {ReviewDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new ReviewRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var reviewDTO = new ReviewDTO(); // ReviewDTO | 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReviewRestControllerApi();
$id = 56; // Integer | 
$reviewDTO = ; // ReviewDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ReviewRestControllerApi->new();
my $id = 56; # Integer | 
my $reviewDTO = WWW::OPenAPIClient::Object::ReviewDTO->new(); # ReviewDTO | 

eval {
    my $result = $api_instance->replaceReview(id => $id, reviewDTO => $reviewDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReviewRestControllerApi->replaceReview: $@\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.ReviewRestControllerApi()
id = 56 # Integer |  (default to null)
reviewDTO =  # ReviewDTO | 

try:
    api_response = api_instance.replace_review(id, reviewDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewRestControllerApi->replaceReview: %s\n" % e)
extern crate ReviewRestControllerApi;

pub fn main() {
    let id = 56; // Integer
    let reviewDTO = ; // ReviewDTO

    let mut context = ReviewRestControllerApi::Context::default();
    let result = client.replaceReview(id, reviewDTO, &context).wait();

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

Scopes

Parameters

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

Responses


UserRestController

createUserImage


/api/v1/users/{id}/image/

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/users/{id}/image/" \
 -d ''
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();
        Integer id = 56; // Integer | 
        ReplaceImageFileRequest replaceImageFileRequest = ; // ReplaceImageFileRequest | 

        try {
            ImageDTO result = apiInstance.createUserImage(id, replaceImageFileRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#createUserImage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final ReplaceImageFileRequest replaceImageFileRequest = new ReplaceImageFileRequest(); // ReplaceImageFileRequest | 

try {
    final result = await api_instance.createUserImage(id, replaceImageFileRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->createUserImage: $e\n');
}

import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Integer id = 56; // Integer | 
        ReplaceImageFileRequest replaceImageFileRequest = ; // ReplaceImageFileRequest | 

        try {
            ImageDTO result = apiInstance.createUserImage(id, replaceImageFileRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#createUserImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
ReplaceImageFileRequest *replaceImageFileRequest = ; //  (optional)

[apiInstance createUserImageWith:id
    replaceImageFileRequest:replaceImageFileRequest
              completionHandler: ^(ImageDTO 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 id = 56; // {Integer} 
var opts = {
  'replaceImageFileRequest':  // {ReplaceImageFileRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var replaceImageFileRequest = new ReplaceImageFileRequest(); // ReplaceImageFileRequest |  (optional) 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
$id = 56; // Integer | 
$replaceImageFileRequest = ; // ReplaceImageFileRequest | 

try {
    $result = $api_instance->createUserImage($id, $replaceImageFileRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->createUserImage: ', $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();
my $id = 56; # Integer | 
my $replaceImageFileRequest = WWW::OPenAPIClient::Object::ReplaceImageFileRequest->new(); # ReplaceImageFileRequest | 

eval {
    my $result = $api_instance->createUserImage(id => $id, replaceImageFileRequest => $replaceImageFileRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->createUserImage: $@\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()
id = 56 # Integer |  (default to null)
replaceImageFileRequest =  # ReplaceImageFileRequest |  (optional)

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

pub fn main() {
    let id = 56; // Integer
    let replaceImageFileRequest = ; // ReplaceImageFileRequest

    let mut context = UserRestControllerApi::Context::default();
    let result = client.createUserImage(id, replaceImageFileRequest, &context).wait();

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

Scopes

Parameters

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

Responses


deleteUser


/api/v1/users/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/users/{id}"
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();
        Integer id = 56; // Integer | 

        try {
            UserDTO result = apiInstance.deleteUser(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#deleteUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.deleteUser(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->deleteUser: $e\n');
}

import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

[apiInstance deleteUserWith:id
              completionHandler: ^(UserDTO 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 id = 56; // {Integer} 

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

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

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();
            var id = 56;  // Integer |  (default to null)

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

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

try {
    $result = $api_instance->deleteUser($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->deleteUser: ', $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();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->deleteUser(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->deleteUser: $@\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()
id = 56 # Integer |  (default to null)

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

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


deleteUserImage


/api/v1/users/{id}/image/{imageId}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/users/{id}/image/{imageId}"
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();
        Integer id = 56; // Integer | 
        Integer imageId = 56; // Integer | 

        try {
            ImageDTO result = apiInstance.deleteUserImage(id, imageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#deleteUserImage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final Integer imageId = new Integer(); // Integer | 

try {
    final result = await api_instance.deleteUserImage(id, imageId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->deleteUserImage: $e\n');
}

import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Integer id = 56; // Integer | 
        Integer imageId = 56; // Integer | 

        try {
            ImageDTO result = apiInstance.deleteUserImage(id, imageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#deleteUserImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)
Integer *imageId = 56; //  (default to null)

[apiInstance deleteUserImageWith:id
    imageId:imageId
              completionHandler: ^(ImageDTO 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 id = 56; // {Integer} 
var imageId = 56; // {Integer} 

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

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

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();
            var id = 56;  // Integer |  (default to null)
            var imageId = 56;  // Integer |  (default to null)

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

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

try {
    $result = $api_instance->deleteUserImage($id, $imageId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->deleteUserImage: ', $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();
my $id = 56; # Integer | 
my $imageId = 56; # Integer | 

eval {
    my $result = $api_instance->deleteUserImage(id => $id, imageId => $imageId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->deleteUserImage: $@\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()
id = 56 # Integer |  (default to null)
imageId = 56 # Integer |  (default to null)

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

pub fn main() {
    let id = 56; // Integer
    let imageId = 56; // Integer

    let mut context = UserRestControllerApi::Context::default();
    let result = client.deleteUserImage(id, imageId, &context).wait();

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

Scopes

Parameters

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

Responses


getUser


/api/v1/users/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/users/{id}"
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();
        Integer id = 56; // Integer | 

        try {
            UserDTO result = apiInstance.getUser(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.getUser(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getUser: $e\n');
}

import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Integer id = 56; // Integer | 

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


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
Integer *id = 56; //  (default to null)

[apiInstance getUserWith:id
              completionHandler: ^(UserDTO 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 id = 56; // {Integer} 

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

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

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();
            var id = 56;  // Integer |  (default to null)

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

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

try {
    $result = $api_instance->getUser($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->getUser: ', $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();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->getUser(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->getUser: $@\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()
id = 56 # Integer |  (default to null)

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

pub fn main() {
    let id = 56; // Integer

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


getUsers


/api/v1/users/

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8080/api/v1/users/?pageable="
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();
        Pageable pageable = ; // Pageable | 

        try {
            PagedModelUserDTO result = apiInstance.getUsers(pageable);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#getUsers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Pageable pageable = new Pageable(); // Pageable | 

try {
    final result = await api_instance.getUsers(pageable);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getUsers: $e\n');
}

import org.openapitools.client.api.UserRestControllerApi;

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

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


// Create an instance of the API class
UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
Pageable *pageable = ; //  (default to null)

[apiInstance getUsersWith:pageable
              completionHandler: ^(PagedModelUserDTO 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 pageable = ; // {Pageable} 

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

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

            // Create an instance of the API class
            var apiInstance = new UserRestControllerApi();
            var pageable = new Pageable(); // Pageable |  (default to null)

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

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

try {
    $result = $api_instance->getUsers($pageable);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->getUsers: ', $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();
my $pageable = ; # Pageable | 

eval {
    my $result = $api_instance->getUsers(pageable => $pageable);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->getUsers: $@\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()
pageable =  # Pageable |  (default to null)

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

pub fn main() {
    let pageable = ; // Pageable

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

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

Scopes

Parameters

Query parameters
Name Description
pageable*
Pageable
Required

Responses


replaceUser


/api/v1/users/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/users/{id}" \
 -d '{
  "image" : {
    "id" : 6
  },
  "createdAt" : "2000-01-23",
  "roles" : [ "roles", "roles" ],
  "name" : "name",
  "location" : {
    "latitude" : 5.962133916683182,
    "name" : "name",
    "id" : 1,
    "longitude" : 5.637376656633329
  },
  "orders" : [ {
    "createdAt" : "2000-01-23",
    "product" : {
      "image" : {
        "id" : 6
      },
      "createdAt" : "2000-01-23T04:56:07.000+00:00",
      "price" : 4.145608029883936,
      "isSold" : true,
      "name" : "name",
      "description" : "description",
      "id" : 2,
      "category" : "category",
      "user" : {
        "roles" : [ "roles", "roles" ],
        "name" : "name",
        "id" : 9,
        "surnames" : "surnames",
        "email" : "email"
      },
      "updatedAt" : "2000-01-23T04:56:07.000+00:00"
    },
    "totalPrice" : 7.386281948385884,
    "id" : 3,
    "updatedAt" : "2000-01-23"
  }, {
    "createdAt" : "2000-01-23",
    "product" : {
      "image" : {
        "id" : 6
      },
      "createdAt" : "2000-01-23T04:56:07.000+00:00",
      "price" : 4.145608029883936,
      "isSold" : true,
      "name" : "name",
      "description" : "description",
      "id" : 2,
      "category" : "category",
      "user" : {
        "roles" : [ "roles", "roles" ],
        "name" : "name",
        "id" : 9,
        "surnames" : "surnames",
        "email" : "email"
      },
      "updatedAt" : "2000-01-23T04:56:07.000+00:00"
    },
    "totalPrice" : 7.386281948385884,
    "id" : 3,
    "updatedAt" : "2000-01-23"
  } ],
  "id" : 0,
  "surnames" : "surnames",
  "email" : "email",
  "products" : [ {
    "price" : 7.061401241503109,
    "name" : "name",
    "id" : 2,
    "category" : "category",
    "user" : {
      "roles" : [ "roles", "roles" ],
      "name" : "name",
      "id" : 9,
      "surnames" : "surnames",
      "email" : "email"
    }
  }, {
    "price" : 7.061401241503109,
    "name" : "name",
    "id" : 2,
    "category" : "category",
    "user" : {
      "roles" : [ "roles", "roles" ],
      "name" : "name",
      "id" : 9,
      "surnames" : "surnames",
      "email" : "email"
    }
  } ]
}'
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();
        Long id = 789; // Long | 
        UserDTO userDTO = ; // UserDTO | 

        try {
            UserDTO result = apiInstance.replaceUser(id, userDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#replaceUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Long id = new Long(); // Long | 
final UserDTO userDTO = new UserDTO(); // UserDTO | 

try {
    final result = await api_instance.replaceUser(id, userDTO);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->replaceUser: $e\n');
}

import org.openapitools.client.api.UserRestControllerApi;

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Long id = 789; // Long | 
        UserDTO userDTO = ; // UserDTO | 

        try {
            UserDTO result = apiInstance.replaceUser(id, userDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRestControllerApi#replaceUser");
            e.printStackTrace();
        }
    }
}


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

[apiInstance replaceUserWith:id
    userDTO:userDTO
              completionHandler: ^(UserDTO 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 id = 789; // {Long} 
var userDTO = ; // {UserDTO} 

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

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

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

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

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

try {
    $result = $api_instance->replaceUser($id, $userDTO);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRestControllerApi->replaceUser: ', $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();
my $id = 789; # Long | 
my $userDTO = WWW::OPenAPIClient::Object::UserDTO->new(); # UserDTO | 

eval {
    my $result = $api_instance->replaceUser(id => $id, userDTO => $userDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRestControllerApi->replaceUser: $@\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()
id = 789 # Long |  (default to null)
userDTO =  # UserDTO | 

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

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

    let mut context = UserRestControllerApi::Context::default();
    let result = client.replaceUser(id, userDTO, &context).wait();

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

Scopes

Parameters

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

Responses