OpenAPI definition

AdminCharts

getChartsData

Get Charts

Return the information showed in the charts


/api/v1/admin/charts

Usage and SDK Samples

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

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

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

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

        try {
            map['String', Object] result = apiInstance.getChartsData();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminChartsApi#getChartsData");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AdminChartsApi;

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

        try {
            map['String', Object] result = apiInstance.getChartsData();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminChartsApi#getChartsData");
            e.printStackTrace();
        }
    }
}


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

// Get Charts
[apiInstance getChartsDataWithCompletionHandler: 
              ^(map['String', 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.AdminChartsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getChartsData(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Get Charts
                map['String', Object] result = apiInstance.getChartsData();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminChartsApi.getChartsData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get Charts
    api_response = api_instance.get_charts_data()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminChartsApi->getChartsData: %s\n" % e)
extern crate AdminChartsApi;

pub fn main() {

    let mut context = AdminChartsApi::Context::default();
    let result = client.getChartsData(&context).wait();

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

Scopes

Parameters

Responses


AdminOrders

getAdminOrders

Get Orders

Return all the Orders created


/api/v1/admin/orders

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/admin/orders?page=56&size=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminOrdersApi;

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

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

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

        try {
            map['String', Object] result = apiInstance.getAdminOrders(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminOrdersApi#getAdminOrders");
            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.getAdminOrders(page, size);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getAdminOrders: $e\n');
}

import org.openapitools.client.api.AdminOrdersApi;

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

        try {
            map['String', Object] result = apiInstance.getAdminOrders(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminOrdersApi#getAdminOrders");
            e.printStackTrace();
        }
    }
}


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

// Get Orders
[apiInstance getAdminOrdersWith:page
    size:size
              completionHandler: ^(map['String', 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.AdminOrdersApi()
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.getAdminOrders(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Get Orders
                map['String', Object] result = apiInstance.getAdminOrders(page, size);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminOrdersApi.getAdminOrders: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get Orders
    api_response = api_instance.get_admin_orders(page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminOrdersApi->getAdminOrders: %s\n" % e)
extern crate AdminOrdersApi;

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

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

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

Scopes

Parameters

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

Responses


AdminProducts

createProduct

Create Product

Create and save a Product on the database


/api/v1/admin/products

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/v1/admin/products?stock_S=56&stock_M=56&stock_L=56&stock_XL=56" \
 -d '{
  "imageBool" : true,
  "price" : 0.8008281904610115,
  "name" : "name",
  "description" : "description",
  "stock" : 6,
  "category" : "category"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminProductsApi;

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

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

        // Create an instance of the API class
        AdminProductsApi apiInstance = new AdminProductsApi();
        NewProductRequestDTO newProductRequestDTO = ; // NewProductRequestDTO | 
        Integer stockS = 56; // Integer | 
        Integer stockM = 56; // Integer | 
        Integer stockL = 56; // Integer | 
        Integer stockXL = 56; // Integer | 

        try {
            ProductDTO result = apiInstance.createProduct(newProductRequestDTO, stockS, stockM, stockL, stockXL);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminProductsApi#createProduct");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final NewProductRequestDTO newProductRequestDTO = new NewProductRequestDTO(); // NewProductRequestDTO | 
final Integer stockS = new Integer(); // Integer | 
final Integer stockM = new Integer(); // Integer | 
final Integer stockL = new Integer(); // Integer | 
final Integer stockXL = new Integer(); // Integer | 

try {
    final result = await api_instance.createProduct(newProductRequestDTO, stockS, stockM, stockL, stockXL);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->createProduct: $e\n');
}

import org.openapitools.client.api.AdminProductsApi;

public class AdminProductsApiExample {
    public static void main(String[] args) {
        AdminProductsApi apiInstance = new AdminProductsApi();
        NewProductRequestDTO newProductRequestDTO = ; // NewProductRequestDTO | 
        Integer stockS = 56; // Integer | 
        Integer stockM = 56; // Integer | 
        Integer stockL = 56; // Integer | 
        Integer stockXL = 56; // Integer | 

        try {
            ProductDTO result = apiInstance.createProduct(newProductRequestDTO, stockS, stockM, stockL, stockXL);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminProductsApi#createProduct");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AdminProductsApi *apiInstance = [[AdminProductsApi alloc] init];
NewProductRequestDTO *newProductRequestDTO = ; // 
Integer *stockS = 56; //  (optional) (default to 0)
Integer *stockM = 56; //  (optional) (default to 0)
Integer *stockL = 56; //  (optional) (default to 0)
Integer *stockXL = 56; //  (optional) (default to 0)

// Create Product
[apiInstance createProductWith:newProductRequestDTO
    stockS:stockS
    stockM:stockM
    stockL:stockL
    stockXL:stockXL
              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.AdminProductsApi()
var newProductRequestDTO = ; // {NewProductRequestDTO} 
var opts = {
  'stockS': 56, // {Integer} 
  'stockM': 56, // {Integer} 
  'stockL': 56, // {Integer} 
  'stockXL': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createProduct(newProductRequestDTO, opts, 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 AdminProductsApi();
            var newProductRequestDTO = new NewProductRequestDTO(); // NewProductRequestDTO | 
            var stockS = 56;  // Integer |  (optional)  (default to 0)
            var stockM = 56;  // Integer |  (optional)  (default to 0)
            var stockL = 56;  // Integer |  (optional)  (default to 0)
            var stockXL = 56;  // Integer |  (optional)  (default to 0)

            try {
                // Create Product
                ProductDTO result = apiInstance.createProduct(newProductRequestDTO, stockS, stockM, stockL, stockXL);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminProductsApi.createProduct: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdminProductsApi();
$newProductRequestDTO = ; // NewProductRequestDTO | 
$stockS = 56; // Integer | 
$stockM = 56; // Integer | 
$stockL = 56; // Integer | 
$stockXL = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdminProductsApi->new();
my $newProductRequestDTO = WWW::OPenAPIClient::Object::NewProductRequestDTO->new(); # NewProductRequestDTO | 
my $stockS = 56; # Integer | 
my $stockM = 56; # Integer | 
my $stockL = 56; # Integer | 
my $stockXL = 56; # Integer | 

eval {
    my $result = $api_instance->createProduct(newProductRequestDTO => $newProductRequestDTO, stockS => $stockS, stockM => $stockM, stockL => $stockL, stockXL => $stockXL);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminProductsApi->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.AdminProductsApi()
newProductRequestDTO =  # NewProductRequestDTO | 
stockS = 56 # Integer |  (optional) (default to 0)
stockM = 56 # Integer |  (optional) (default to 0)
stockL = 56 # Integer |  (optional) (default to 0)
stockXL = 56 # Integer |  (optional) (default to 0)

try:
    # Create Product
    api_response = api_instance.create_product(newProductRequestDTO, stockS=stockS, stockM=stockM, stockL=stockL, stockXL=stockXL)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminProductsApi->createProduct: %s\n" % e)
extern crate AdminProductsApi;

pub fn main() {
    let newProductRequestDTO = ; // NewProductRequestDTO
    let stockS = 56; // Integer
    let stockM = 56; // Integer
    let stockL = 56; // Integer
    let stockXL = 56; // Integer

    let mut context = AdminProductsApi::Context::default();
    let result = client.createProduct(newProductRequestDTO, stockS, stockM, stockL, stockXL, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
newProductRequestDTO *

Query parameters
Name Description
stock_S
Integer (int32)
stock_M
Integer (int32)
stock_L
Integer (int32)
stock_XL
Integer (int32)

Responses


createProductImage

Create Product Image

Create and save an Image for a Product on the database


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

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

final Long id = new Long(); // Long | 
final ReplaceUserImageRequest replaceUserImageRequest = new ReplaceUserImageRequest(); // ReplaceUserImageRequest | 

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

import org.openapitools.client.api.AdminProductsApi;

public class AdminProductsApiExample {
    public static void main(String[] args) {
        AdminProductsApi apiInstance = new AdminProductsApi();
        Long id = 789; // Long | 
        ReplaceUserImageRequest replaceUserImageRequest = ; // ReplaceUserImageRequest | 

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


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

// Create Product Image
[apiInstance createProductImageWith:id
    replaceUserImageRequest:replaceUserImageRequest
              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.AdminProductsApi()
var id = 789; // {Long} 
var opts = {
  'replaceUserImageRequest':  // {ReplaceUserImageRequest} 
};

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 AdminProductsApi();
            var id = 789;  // Long |  (default to null)
            var replaceUserImageRequest = new ReplaceUserImageRequest(); // ReplaceUserImageRequest |  (optional) 

            try {
                // Create Product Image
                Object result = apiInstance.createProductImage(id, replaceUserImageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminProductsApi.createProductImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->createProductImage(id => $id, replaceUserImageRequest => $replaceUserImageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminProductsApi->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.AdminProductsApi()
id = 789 # Long |  (default to null)
replaceUserImageRequest =  # ReplaceUserImageRequest |  (optional)

try:
    # Create Product Image
    api_response = api_instance.create_product_image(id, replaceUserImageRequest=replaceUserImageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminProductsApi->createProductImage: %s\n" % e)
extern crate AdminProductsApi;

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

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

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

Scopes

Parameters

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

Responses


deleteProduct

Delete Product

Delete a created Product


/api/v1/admin/products/{id}

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

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

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.AdminProductsApi;

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

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


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

// Delete Product
[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.AdminProductsApi()
var id = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.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 AdminProductsApi();
            var id = 789;  // Long |  (default to null)

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


deleteProductImage

Delete Product Image

Delete a created Product Image


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

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.AdminProductsApi;

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

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


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

// Delete Product Image
[apiInstance deleteProductImageWith: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.AdminProductsApi()
var id = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteProductImage(id, 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 AdminProductsApi();
            var id = 789;  // Long |  (default to null)

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

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

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

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

eval {
    my $result = $api_instance->deleteProductImage(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminProductsApi->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.AdminProductsApi()
id = 789 # Long |  (default to null)

try:
    # Delete Product Image
    api_response = api_instance.delete_product_image(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminProductsApi->deleteProductImage: %s\n" % e)
extern crate AdminProductsApi;

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


getAdminProducts

Get Products

Return all the Products created


/api/v1/admin/products

Usage and SDK Samples

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

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

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

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

        try {
            map['String', Object] result = apiInstance.getAdminProducts(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminProductsApi#getAdminProducts");
            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.getAdminProducts(page, size);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getAdminProducts: $e\n');
}

import org.openapitools.client.api.AdminProductsApi;

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

        try {
            map['String', Object] result = apiInstance.getAdminProducts(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminProductsApi#getAdminProducts");
            e.printStackTrace();
        }
    }
}


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

// Get Products
[apiInstance getAdminProductsWith:page
    size:size
              completionHandler: ^(map['String', 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.AdminProductsApi()
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.getAdminProducts(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Get Products
                map['String', Object] result = apiInstance.getAdminProducts(page, size);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminProductsApi.getAdminProducts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get Products
    api_response = api_instance.get_admin_products(page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminProductsApi->getAdminProducts: %s\n" % e)
extern crate AdminProductsApi;

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

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

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

Scopes

Parameters

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

Responses


getOutOfStockProducts

Get out of stock Products

Return all the Products out of stock


/api/v1/admin/products/out-of-stock

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/admin/products/out-of-stock?page=56&size=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminProductsApi;

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

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

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

        try {
            array[ProductDTO] result = apiInstance.getOutOfStockProducts(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminProductsApi#getOutOfStockProducts");
            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.getOutOfStockProducts(page, size);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getOutOfStockProducts: $e\n');
}

import org.openapitools.client.api.AdminProductsApi;

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

        try {
            array[ProductDTO] result = apiInstance.getOutOfStockProducts(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminProductsApi#getOutOfStockProducts");
            e.printStackTrace();
        }
    }
}


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

// Get out of stock Products
[apiInstance getOutOfStockProductsWith:page
    size:size
              completionHandler: ^(array[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.AdminProductsApi()
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.getOutOfStockProducts(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Get out of stock Products
                array[ProductDTO] result = apiInstance.getOutOfStockProducts(page, size);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminProductsApi.getOutOfStockProducts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get out of stock Products
    api_response = api_instance.get_out_of_stock_products(page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminProductsApi->getOutOfStockProducts: %s\n" % e)
extern crate AdminProductsApi;

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

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

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

Scopes

Parameters

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

Responses


replaceProdcutImage

Edit Product Image

Edit a created Produc Image


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

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

final Long id = new Long(); // Long | 
final ReplaceUserImageRequest replaceUserImageRequest = new ReplaceUserImageRequest(); // ReplaceUserImageRequest | 

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

import org.openapitools.client.api.AdminProductsApi;

public class AdminProductsApiExample {
    public static void main(String[] args) {
        AdminProductsApi apiInstance = new AdminProductsApi();
        Long id = 789; // Long | 
        ReplaceUserImageRequest replaceUserImageRequest = ; // ReplaceUserImageRequest | 

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


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

// Edit Product Image
[apiInstance replaceProdcutImageWith:id
    replaceUserImageRequest:replaceUserImageRequest
              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.AdminProductsApi()
var id = 789; // {Long} 
var opts = {
  'replaceUserImageRequest':  // {ReplaceUserImageRequest} 
};

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

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

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

            try {
                // Edit Product Image
                Object result = apiInstance.replaceProdcutImage(id, replaceUserImageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminProductsApi.replaceProdcutImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->replaceProdcutImage(id => $id, replaceUserImageRequest => $replaceUserImageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminProductsApi->replaceProdcutImage: $@\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.AdminProductsApi()
id = 789 # Long |  (default to null)
replaceUserImageRequest =  # ReplaceUserImageRequest |  (optional)

try:
    # Edit Product Image
    api_response = api_instance.replace_prodcut_image(id, replaceUserImageRequest=replaceUserImageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminProductsApi->replaceProdcutImage: %s\n" % e)
extern crate AdminProductsApi;

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

    let mut context = AdminProductsApi::Context::default();
    let result = client.replaceProdcutImage(id, replaceUserImageRequest, &context).wait();

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

Scopes

Parameters

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

Responses


replaceProduct

Edit Product

Edit a created Product


/api/v1/admin/products/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/v1/admin/products/{id}?stock_S=56&stock_M=56&stock_L=56&stock_XL=56" \
 -d '{
  "sold" : 5,
  "sizes" : [ {
    "name" : "name",
    "id" : 5,
    "stock" : 2
  }, {
    "name" : "name",
    "id" : 5,
    "stock" : 2
  } ],
  "reviews" : [ {
    "emptyStars" : [ true, true ],
    "ratingStars" : [ true, true ],
    "own" : true,
    "rating" : 6,
    "reported" : true,
    "id" : 0,
    "user" : {
      "reports" : 6,
      "address" : "address",
      "surname" : "surname",
      "imageUrl" : "imageUrl",
      "roles" : [ "roles", "roles" ],
      "name" : "name",
      "id" : 0,
      "banned" : true,
      "email" : "email"
    },
    "reviewText" : "reviewText",
    "username" : "username"
  }, {
    "emptyStars" : [ true, true ],
    "ratingStars" : [ true, true ],
    "own" : true,
    "rating" : 6,
    "reported" : true,
    "id" : 0,
    "user" : {
      "reports" : 6,
      "address" : "address",
      "surname" : "surname",
      "imageUrl" : "imageUrl",
      "roles" : [ "roles", "roles" ],
      "name" : "name",
      "id" : 0,
      "banned" : true,
      "email" : "email"
    },
    "reviewText" : "reviewText",
    "username" : "username"
  } ],
  "imageBool" : true,
  "price" : 6.027456183070403,
  "imageUrl" : "imageUrl",
  "name" : "name",
  "outOfStock" : true,
  "description" : "description",
  "id" : 0,
  "stock" : 1,
  "category" : "category"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminProductsApi;

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

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

        // Create an instance of the API class
        AdminProductsApi apiInstance = new AdminProductsApi();
        Long id = 789; // Long | 
        ProductDTO productDTO = ; // ProductDTO | 
        Integer stockS = 56; // Integer | 
        Integer stockM = 56; // Integer | 
        Integer stockL = 56; // Integer | 
        Integer stockXL = 56; // Integer | 

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

final api_instance = DefaultApi();

final Long id = new Long(); // Long | 
final ProductDTO productDTO = new ProductDTO(); // ProductDTO | 
final Integer stockS = new Integer(); // Integer | 
final Integer stockM = new Integer(); // Integer | 
final Integer stockL = new Integer(); // Integer | 
final Integer stockXL = new Integer(); // Integer | 

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

import org.openapitools.client.api.AdminProductsApi;

public class AdminProductsApiExample {
    public static void main(String[] args) {
        AdminProductsApi apiInstance = new AdminProductsApi();
        Long id = 789; // Long | 
        ProductDTO productDTO = ; // ProductDTO | 
        Integer stockS = 56; // Integer | 
        Integer stockM = 56; // Integer | 
        Integer stockL = 56; // Integer | 
        Integer stockXL = 56; // Integer | 

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


// Create an instance of the API class
AdminProductsApi *apiInstance = [[AdminProductsApi alloc] init];
Long *id = 789; //  (default to null)
ProductDTO *productDTO = ; // 
Integer *stockS = 56; //  (optional) (default to 0)
Integer *stockM = 56; //  (optional) (default to 0)
Integer *stockL = 56; //  (optional) (default to 0)
Integer *stockXL = 56; //  (optional) (default to 0)

// Edit Product
[apiInstance replaceProductWith:id
    productDTO:productDTO
    stockS:stockS
    stockM:stockM
    stockL:stockL
    stockXL:stockXL
              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.AdminProductsApi()
var id = 789; // {Long} 
var productDTO = ; // {ProductDTO} 
var opts = {
  'stockS': 56, // {Integer} 
  'stockM': 56, // {Integer} 
  'stockL': 56, // {Integer} 
  'stockXL': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.replaceProduct(id, productDTO, opts, 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 AdminProductsApi();
            var id = 789;  // Long |  (default to null)
            var productDTO = new ProductDTO(); // ProductDTO | 
            var stockS = 56;  // Integer |  (optional)  (default to 0)
            var stockM = 56;  // Integer |  (optional)  (default to 0)
            var stockL = 56;  // Integer |  (optional)  (default to 0)
            var stockXL = 56;  // Integer |  (optional)  (default to 0)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdminProductsApi();
$id = 789; // Long | 
$productDTO = ; // ProductDTO | 
$stockS = 56; // Integer | 
$stockM = 56; // Integer | 
$stockL = 56; // Integer | 
$stockXL = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdminProductsApi->new();
my $id = 789; # Long | 
my $productDTO = WWW::OPenAPIClient::Object::ProductDTO->new(); # ProductDTO | 
my $stockS = 56; # Integer | 
my $stockM = 56; # Integer | 
my $stockL = 56; # Integer | 
my $stockXL = 56; # Integer | 

eval {
    my $result = $api_instance->replaceProduct(id => $id, productDTO => $productDTO, stockS => $stockS, stockM => $stockM, stockL => $stockL, stockXL => $stockXL);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminProductsApi->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.AdminProductsApi()
id = 789 # Long |  (default to null)
productDTO =  # ProductDTO | 
stockS = 56 # Integer |  (optional) (default to 0)
stockM = 56 # Integer |  (optional) (default to 0)
stockL = 56 # Integer |  (optional) (default to 0)
stockXL = 56 # Integer |  (optional) (default to 0)

try:
    # Edit Product
    api_response = api_instance.replace_product(id, productDTO, stockS=stockS, stockM=stockM, stockL=stockL, stockXL=stockXL)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminProductsApi->replaceProduct: %s\n" % e)
extern crate AdminProductsApi;

pub fn main() {
    let id = 789; // Long
    let productDTO = ; // ProductDTO
    let stockS = 56; // Integer
    let stockM = 56; // Integer
    let stockL = 56; // Integer
    let stockXL = 56; // Integer

    let mut context = AdminProductsApi::Context::default();
    let result = client.replaceProduct(id, productDTO, stockS, stockM, stockL, stockXL, &context).wait();

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

Scopes

Parameters

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

Query parameters
Name Description
stock_S
Integer (int32)
stock_M
Integer (int32)
stock_L
Integer (int32)
stock_XL
Integer (int32)

Responses


AdminUsers

banUser

Ban User

Update a User to banned


/api/v1/admin/users/{id}/banned

Usage and SDK Samples

curl -X PATCH \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/admin/users/{id}/banned"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminUsersApi;

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.AdminUsersApi;

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

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


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

// Ban User
[apiInstance banUserWith: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.AdminUsersApi()
var id = 789; // {Long} 

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

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

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

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

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

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

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

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

try:
    # Ban User
    api_response = api_instance.ban_user(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminUsersApi->banUser: %s\n" % e)
extern crate AdminUsersApi;

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


getAdminUsers

Get Users

Return all the Users created


/api/v1/admin/users

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/admin/users?page=56&size=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminUsersApi;

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

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

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

        try {
            map['String', Object] result = apiInstance.getAdminUsers(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminUsersApi#getAdminUsers");
            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.getAdminUsers(page, size);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getAdminUsers: $e\n');
}

import org.openapitools.client.api.AdminUsersApi;

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

        try {
            map['String', Object] result = apiInstance.getAdminUsers(page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminUsersApi#getAdminUsers");
            e.printStackTrace();
        }
    }
}


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

// Get Users
[apiInstance getAdminUsersWith:page
    size:size
              completionHandler: ^(map['String', 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.AdminUsersApi()
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.getAdminUsers(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Get Users
                map['String', Object] result = apiInstance.getAdminUsers(page, size);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminUsersApi.getAdminUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get Users
    api_response = api_instance.get_admin_users(page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminUsersApi->getAdminUsers: %s\n" % e)
extern crate AdminUsersApi;

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

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

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

Scopes

Parameters

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

Responses


getUser1

Get User

Return a single User


/api/v1/admin/users/{id}

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.AdminUsersApi;

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

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


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

// Get User
[apiInstance getUser1With: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.AdminUsersApi()
var id = 789; // {Long} 

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

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

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

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

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

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

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

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

try:
    # Get User
    api_response = api_instance.get_user1(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminUsersApi->getUser1: %s\n" % e)
extern crate AdminUsersApi;

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


unbanUser

UnBan User

Update a User to unbanned


/api/v1/admin/users/{id}/unbanned

Usage and SDK Samples

curl -X PATCH \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/admin/users/{id}/unbanned"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminUsersApi;

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.AdminUsersApi;

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

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


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

// UnBan User
[apiInstance unbanUserWith: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.AdminUsersApi()
var id = 789; // {Long} 

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

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

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

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

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

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

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

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

try:
    # UnBan User
    api_response = api_instance.unban_user(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminUsersApi->unbanUser: %s\n" % e)
extern crate AdminUsersApi;

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


Cart

addToCart

Add to Cart

Add a Product to the cart of the actual User


/api/v1/cart/{id}

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/cart/{id}?userId=789&size=size_example&quantity=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CartApi;

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

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

        // Create an instance of the API class
        CartApi apiInstance = new CartApi();
        Long userId = 789; // Long | 
        Long id = 789; // Long | 
        String size = size_example; // String | 
        Integer quantity = 56; // Integer | 

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 
final Long id = new Long(); // Long | 
final String size = new String(); // String | 
final Integer quantity = new Integer(); // Integer | 

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

import org.openapitools.client.api.CartApi;

public class CartApiExample {
    public static void main(String[] args) {
        CartApi apiInstance = new CartApi();
        Long userId = 789; // Long | 
        Long id = 789; // Long | 
        String size = size_example; // String | 
        Integer quantity = 56; // Integer | 

        try {
            OrderDTO result = apiInstance.addToCart(userId, id, size, quantity);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CartApi#addToCart");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
CartApi *apiInstance = [[CartApi alloc] init];
Long *userId = 789; //  (default to null)
Long *id = 789; //  (default to null)
String *size = size_example; //  (default to null)
Integer *quantity = 56; //  (default to null)

// Add to Cart
[apiInstance addToCartWith:userId
    id:id
    size:size
    quantity:quantity
              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.CartApi()
var userId = 789; // {Long} 
var id = 789; // {Long} 
var size = size_example; // {String} 
var quantity = 56; // {Integer} 

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

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

            // Create an instance of the API class
            var apiInstance = new CartApi();
            var userId = 789;  // Long |  (default to null)
            var id = 789;  // Long |  (default to null)
            var size = size_example;  // String |  (default to null)
            var quantity = 56;  // Integer |  (default to null)

            try {
                // Add to Cart
                OrderDTO result = apiInstance.addToCart(userId, id, size, quantity);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CartApi.addToCart: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CartApi();
$userId = 789; // Long | 
$id = 789; // Long | 
$size = size_example; // String | 
$quantity = 56; // Integer | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CartApi->new();
my $userId = 789; # Long | 
my $id = 789; # Long | 
my $size = size_example; # String | 
my $quantity = 56; # Integer | 

eval {
    my $result = $api_instance->addToCart(userId => $userId, id => $id, size => $size, quantity => $quantity);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CartApi->addToCart: $@\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.CartApi()
userId = 789 # Long |  (default to null)
id = 789 # Long |  (default to null)
size = size_example # String |  (default to null)
quantity = 56 # Integer |  (default to null)

try:
    # Add to Cart
    api_response = api_instance.add_to_cart(userId, id, size, quantity)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CartApi->addToCart: %s\n" % e)
extern crate CartApi;

pub fn main() {
    let userId = 789; // Long
    let id = 789; // Long
    let size = size_example; // String
    let quantity = 56; // Integer

    let mut context = CartApi::Context::default();
    let result = client.addToCart(userId, id, size, quantity, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Query parameters
Name Description
userId*
Long (int64)
Required
size*
String
Required
quantity*
Integer (int32)
Required

Responses


getCart

Get Cart

Return the cart of the actual User


/api/v1/cart

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/cart?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CartApi;

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

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

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

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.CartApi;

public class CartApiExample {
    public static void main(String[] args) {
        CartApi apiInstance = new CartApi();
        Long userId = 789; // Long | 

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


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

// Get Cart
[apiInstance getCartWith:userId
              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.CartApi()
var userId = 789; // {Long} 

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

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

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

            try {
                // Get Cart
                OrderDTO result = apiInstance.getCart(userId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CartApi.getCart: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->getCart(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CartApi->getCart: $@\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.CartApi()
userId = 789 # Long |  (default to null)

try:
    # Get Cart
    api_response = api_instance.get_cart(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CartApi->getCart: %s\n" % e)
extern crate CartApi;

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

    let mut context = CartApi::Context::default();
    let result = client.getCart(userId, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


proccess

Proccess Cart

Update the cart of the actual User to the state paid


/api/v1/cart

Usage and SDK Samples

curl -X PATCH \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/cart?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CartApi;

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

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

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

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.CartApi;

public class CartApiExample {
    public static void main(String[] args) {
        CartApi apiInstance = new CartApi();
        Long userId = 789; // Long | 

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


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

// Proccess Cart
[apiInstance proccessWith:userId
              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.CartApi()
var userId = 789; // {Long} 

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

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

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

            try {
                // Proccess Cart
                OrderDTO result = apiInstance.proccess(userId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CartApi.proccess: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->proccess(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CartApi->proccess: $@\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.CartApi()
userId = 789 # Long |  (default to null)

try:
    # Proccess Cart
    api_response = api_instance.proccess(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CartApi->proccess: %s\n" % e)
extern crate CartApi;

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

    let mut context = CartApi::Context::default();
    let result = client.proccess(userId, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


removeFromCart

Remove from Cart

Remove a Product from the cart of the actual User


/api/v1/cart/{id}

Usage and SDK Samples

curl -X PATCH \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/cart/{id}?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CartApi;

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

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

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

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

final api_instance = DefaultApi();

final Long id = new Long(); // Long | 
final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.CartApi;

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

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


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

// Remove from Cart
[apiInstance removeFromCartWith:id
    userId:userId
              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.CartApi()
var id = 789; // {Long} 
var userId = 789; // {Long} 

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

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

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

            try {
                // Remove from Cart
                OrderDTO result = apiInstance.removeFromCart(id, userId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CartApi.removeFromCart: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->removeFromCart(id => $id, userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CartApi->removeFromCart: $@\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.CartApi()
id = 789 # Long |  (default to null)
userId = 789 # Long |  (default to null)

try:
    # Remove from Cart
    api_response = api_instance.remove_from_cart(id, userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CartApi->removeFromCart: %s\n" % e)
extern crate CartApi;

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

    let mut context = CartApi::Context::default();
    let result = client.removeFromCart(id, userId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Query parameters
Name Description
userId*
Long (int64)
Required

Responses


Category

getCategoryData

Get category Products

Return the products that belongs to the category


/api/v1/category/{category}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/category/{category}?page=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CategoryApi;

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

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

        // Create an instance of the API class
        CategoryApi apiInstance = new CategoryApi();
        String category = category_example; // String | 
        Integer page = 56; // Integer | 

        try {
            map['String', Object] result = apiInstance.getCategoryData(category, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#getCategoryData");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String category = new String(); // String | 
final Integer page = new Integer(); // Integer | 

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

import org.openapitools.client.api.CategoryApi;

public class CategoryApiExample {
    public static void main(String[] args) {
        CategoryApi apiInstance = new CategoryApi();
        String category = category_example; // String | 
        Integer page = 56; // Integer | 

        try {
            map['String', Object] result = apiInstance.getCategoryData(category, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CategoryApi#getCategoryData");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
CategoryApi *apiInstance = [[CategoryApi alloc] init];
String *category = category_example; //  (default to null)
Integer *page = 56; //  (optional) (default to 0)

// Get category Products
[apiInstance getCategoryDataWith:category
    page:page
              completionHandler: ^(map['String', 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.CategoryApi()
var category = category_example; // {String} 
var opts = {
  'page': 56 // {Integer} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new CategoryApi();
            var category = category_example;  // String |  (default to null)
            var page = 56;  // Integer |  (optional)  (default to 0)

            try {
                // Get category Products
                map['String', Object] result = apiInstance.getCategoryData(category, page);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CategoryApi.getCategoryData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CategoryApi();
$category = category_example; // String | 
$page = 56; // Integer | 

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

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

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

try:
    # Get category Products
    api_response = api_instance.get_category_data(category, page=page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CategoryApi->getCategoryData: %s\n" % e)
extern crate CategoryApi;

pub fn main() {
    let category = category_example; // String
    let page = 56; // Integer

    let mut context = CategoryApi::Context::default();
    let result = client.getCategoryData(category, page, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
category*
String
Required
Query parameters
Name Description
page
Integer (int32)

Responses


Index

getIndexData

Get index Products

Return the products based on the implemented algorithm


/api/v1/index

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/index?page=56&size=56&userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.IndexApi;

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

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

        // Create an instance of the API class
        IndexApi apiInstance = new IndexApi();
        Long userId = 789; // Long | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 

        try {
            map['String', Object] result = apiInstance.getIndexData(userId, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IndexApi#getIndexData");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.IndexApi;

public class IndexApiExample {
    public static void main(String[] args) {
        IndexApi apiInstance = new IndexApi();
        Long userId = 789; // Long | 
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 

        try {
            map['String', Object] result = apiInstance.getIndexData(userId, page, size);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IndexApi#getIndexData");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
IndexApi *apiInstance = [[IndexApi alloc] init];
Long *userId = 789; //  (default to null)
Integer *page = 56; //  (optional) (default to 0)
Integer *size = 56; //  (optional) (default to 10)

// Get index Products
[apiInstance getIndexDataWith:userId
    page:page
    size:size
              completionHandler: ^(map['String', 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.IndexApi()
var userId = 789; // {Long} 
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.getIndexData(userId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new IndexApi();
            var userId = 789;  // Long |  (default to null)
            var page = 56;  // Integer |  (optional)  (default to 0)
            var size = 56;  // Integer |  (optional)  (default to 10)

            try {
                // Get index Products
                map['String', Object] result = apiInstance.getIndexData(userId, page, size);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling IndexApi.getIndexData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try:
    # Get index Products
    api_response = api_instance.get_index_data(userId, page=page, size=size)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IndexApi->getIndexData: %s\n" % e)
extern crate IndexApi;

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

    let mut context = IndexApi::Context::default();
    let result = client.getIndexData(userId, page, size, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
page
Integer (int32)
size
Integer (int32)
userId*
Long (int64)
Required

Responses


LoginController

logOut


/api/v1/auth/logout

Usage and SDK Samples

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

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

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

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

        try {
            AuthResponse result = apiInstance.logOut();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginControllerApi#logOut");
            e.printStackTrace();
        }
    }
}
import '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.LoginControllerApi;

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

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


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

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

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

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

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

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

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

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

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

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

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

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

pub fn main() {

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

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

Scopes

Parameters

Responses


login


/api/v1/auth/login

Usage and SDK Samples

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

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

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

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

        try {
            AuthResponse result = apiInstance.login(loginRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginControllerApi#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.LoginControllerApi;

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

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


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

[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.LoginControllerApi()
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 LoginControllerApi();
            var loginRequest = new LoginRequest(); // LoginRequest | 

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

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

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

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

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

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

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

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

    let mut context = LoginControllerApi::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:8443/api/v1/auth/refresh"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.LoginControllerApi;

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

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

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

        try {
            AuthResponse result = apiInstance.refreshToken(refreshToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginControllerApi#refreshToken");
            e.printStackTrace();
        }
    }
}
import '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.LoginControllerApi;

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Responses


Orders

getOrderById

Get Order

Return a single Order


/api/v1/users/orders/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/users/orders/{id}?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrdersApi;

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

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

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

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

final api_instance = DefaultApi();

final Long id = new Long(); // Long | 
final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.OrdersApi;

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

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


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

// Get Order
[apiInstance getOrderByIdWith:id
    userId:userId
              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.OrdersApi()
var id = 789; // {Long} 
var userId = 789; // {Long} 

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

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

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

            try {
                // Get Order
                OrderDTO result = apiInstance.getOrderById(id, userId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrdersApi.getOrderById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->getOrderById(id => $id, userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrdersApi->getOrderById: $@\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.OrdersApi()
id = 789 # Long |  (default to null)
userId = 789 # Long |  (default to null)

try:
    # Get Order
    api_response = api_instance.get_order_by_id(id, userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersApi->getOrderById: %s\n" % e)
extern crate OrdersApi;

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

    let mut context = OrdersApi::Context::default();
    let result = client.getOrderById(id, userId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Query parameters
Name Description
userId*
Long (int64)
Required

Responses


getUserOrders

Get User Orders

Return Orders from the actual User


/api/v1/users/orders

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/users/orders?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrdersApi;

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

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

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

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.OrdersApi;

public class OrdersApiExample {
    public static void main(String[] args) {
        OrdersApi apiInstance = new OrdersApi();
        Long userId = 789; // Long | 

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


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

// Get User Orders
[apiInstance getUserOrdersWith:userId
              completionHandler: ^(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.OrdersApi()
var userId = 789; // {Long} 

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

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

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

            try {
                // Get User Orders
                array[OrderDTO] result = apiInstance.getUserOrders(userId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrdersApi.getUserOrders: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->getUserOrders(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrdersApi->getUserOrders: $@\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.OrdersApi()
userId = 789 # Long |  (default to null)

try:
    # Get User Orders
    api_response = api_instance.get_user_orders(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdersApi->getUserOrders: %s\n" % e)
extern crate OrdersApi;

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

    let mut context = OrdersApi::Context::default();
    let result = client.getUserOrders(userId, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


Products

getProductDetail

Get Product

Return a single Product


/api/v1/products/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/products/{id}?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductsApi;

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

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

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

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

final api_instance = DefaultApi();

final Long id = new Long(); // Long | 
final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.ProductsApi;

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

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


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

// Get Product
[apiInstance getProductDetailWith:id
    userId:userId
              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.ProductsApi()
var id = 789; // {Long} 
var opts = {
  'userId': 789 // {Long} 
};

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

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

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

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

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

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

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

eval {
    my $result = $api_instance->getProductDetail(id => $id, userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductsApi->getProductDetail: $@\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.ProductsApi()
id = 789 # Long |  (default to null)
userId = 789 # Long |  (optional) (default to null)

try:
    # Get Product
    api_response = api_instance.get_product_detail(id, userId=userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductsApi->getProductDetail: %s\n" % e)
extern crate ProductsApi;

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

    let mut context = ProductsApi::Context::default();
    let result = client.getProductDetail(id, userId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Query parameters
Name Description
userId
Long (int64)

Responses


getProductImage

Get Product Image

Return a single Product Image


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

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.ProductsApi;

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

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


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

// Get Product Image
[apiInstance getProductImageWith: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.ProductsApi()
var id = 789; // {Long} 

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

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

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

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

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

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

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

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

try:
    # Get Product Image
    api_response = api_instance.get_product_image(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductsApi->getProductImage: %s\n" % e)
extern crate ProductsApi;

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


Reviews

createReview

Create Review

Create and save a Review on the databse


/api/v1/reviews/{productId}

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/v1/reviews/{productId}?userId=789" \
 -d '{
  "rating" : 0,
  "reviewText" : "reviewText"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReviewsApi;

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

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

        // Create an instance of the API class
        ReviewsApi apiInstance = new ReviewsApi();
        Long userId = 789; // Long | 
        Long productId = 789; // Long | 
        NewReviewRequestDTO newReviewRequestDTO = ; // NewReviewRequestDTO | 

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 
final Long productId = new Long(); // Long | 
final NewReviewRequestDTO newReviewRequestDTO = new NewReviewRequestDTO(); // NewReviewRequestDTO | 

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

import org.openapitools.client.api.ReviewsApi;

public class ReviewsApiExample {
    public static void main(String[] args) {
        ReviewsApi apiInstance = new ReviewsApi();
        Long userId = 789; // Long | 
        Long productId = 789; // Long | 
        NewReviewRequestDTO newReviewRequestDTO = ; // NewReviewRequestDTO | 

        try {
            ReviewDTO result = apiInstance.createReview(userId, productId, newReviewRequestDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewsApi#createReview");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ReviewsApi *apiInstance = [[ReviewsApi alloc] init];
Long *userId = 789; //  (default to null)
Long *productId = 789; //  (default to null)
NewReviewRequestDTO *newReviewRequestDTO = ; // 

// Create Review
[apiInstance createReviewWith:userId
    productId:productId
    newReviewRequestDTO:newReviewRequestDTO
              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.ReviewsApi()
var userId = 789; // {Long} 
var productId = 789; // {Long} 
var newReviewRequestDTO = ; // {NewReviewRequestDTO} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createReview(userId, productId, newReviewRequestDTO, 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 ReviewsApi();
            var userId = 789;  // Long |  (default to null)
            var productId = 789;  // Long |  (default to null)
            var newReviewRequestDTO = new NewReviewRequestDTO(); // NewReviewRequestDTO | 

            try {
                // Create Review
                ReviewDTO result = apiInstance.createReview(userId, productId, newReviewRequestDTO);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ReviewsApi.createReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReviewsApi();
$userId = 789; // Long | 
$productId = 789; // Long | 
$newReviewRequestDTO = ; // NewReviewRequestDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ReviewsApi->new();
my $userId = 789; # Long | 
my $productId = 789; # Long | 
my $newReviewRequestDTO = WWW::OPenAPIClient::Object::NewReviewRequestDTO->new(); # NewReviewRequestDTO | 

eval {
    my $result = $api_instance->createReview(userId => $userId, productId => $productId, newReviewRequestDTO => $newReviewRequestDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReviewsApi->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.ReviewsApi()
userId = 789 # Long |  (default to null)
productId = 789 # Long |  (default to null)
newReviewRequestDTO =  # NewReviewRequestDTO | 

try:
    # Create Review
    api_response = api_instance.create_review(userId, productId, newReviewRequestDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewsApi->createReview: %s\n" % e)
extern crate ReviewsApi;

pub fn main() {
    let userId = 789; // Long
    let productId = 789; // Long
    let newReviewRequestDTO = ; // NewReviewRequestDTO

    let mut context = ReviewsApi::Context::default();
    let result = client.createReview(userId, productId, newReviewRequestDTO, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
productId*
Long (int64)
Required
Body parameters
Name Description
newReviewRequestDTO *

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


deleteReview

Delete Review

Delete a created Review


/api/v1/reviews/{reviewId}/{productId}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/reviews/{reviewId}/{productId}?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReviewsApi;

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

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

        // Create an instance of the API class
        ReviewsApi apiInstance = new ReviewsApi();
        Long userId = 789; // Long | 
        Long reviewId = 789; // Long | 
        Long productId = 789; // Long | 

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 
final Long reviewId = new Long(); // Long | 
final Long productId = new Long(); // Long | 

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

import org.openapitools.client.api.ReviewsApi;

public class ReviewsApiExample {
    public static void main(String[] args) {
        ReviewsApi apiInstance = new ReviewsApi();
        Long userId = 789; // Long | 
        Long reviewId = 789; // Long | 
        Long productId = 789; // Long | 

        try {
            ReviewDTO result = apiInstance.deleteReview(userId, reviewId, productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewsApi#deleteReview");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ReviewsApi *apiInstance = [[ReviewsApi alloc] init];
Long *userId = 789; //  (default to null)
Long *reviewId = 789; //  (default to null)
Long *productId = 789; //  (default to null)

// Delete Review
[apiInstance deleteReviewWith:userId
    reviewId:reviewId
    productId:productId
              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.ReviewsApi()
var userId = 789; // {Long} 
var reviewId = 789; // {Long} 
var productId = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteReview(userId, reviewId, productId, 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 ReviewsApi();
            var userId = 789;  // Long |  (default to null)
            var reviewId = 789;  // Long |  (default to null)
            var productId = 789;  // Long |  (default to null)

            try {
                // Delete Review
                ReviewDTO result = apiInstance.deleteReview(userId, reviewId, productId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ReviewsApi.deleteReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReviewsApi();
$userId = 789; // Long | 
$reviewId = 789; // Long | 
$productId = 789; // Long | 

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

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

eval {
    my $result = $api_instance->deleteReview(userId => $userId, reviewId => $reviewId, productId => $productId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReviewsApi->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.ReviewsApi()
userId = 789 # Long |  (default to null)
reviewId = 789 # Long |  (default to null)
productId = 789 # Long |  (default to null)

try:
    # Delete Review
    api_response = api_instance.delete_review(userId, reviewId, productId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewsApi->deleteReview: %s\n" % e)
extern crate ReviewsApi;

pub fn main() {
    let userId = 789; // Long
    let reviewId = 789; // Long
    let productId = 789; // Long

    let mut context = ReviewsApi::Context::default();
    let result = client.deleteReview(userId, reviewId, productId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
reviewId*
Long (int64)
Required
productId*
Long (int64)
Required
Query parameters
Name Description
userId*
Long (int64)
Required

Responses


getReview

Get Reviews

Return a single review


/api/v1/reviews/{id}

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

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

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.ReviewsApi;

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

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


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

// Get Reviews
[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.ReviewsApi()
var id = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.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 ReviewsApi();
            var id = 789;  // Long |  (default to null)

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


getReviews

Get all the Reviews

Return all the Reviews created


/api/v1/reviews/all

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/reviews/all"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReviewsApi;

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.ReviewsApi;

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

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


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

// Get all the Reviews
[apiInstance getReviewsWithCompletionHandler: 
              ^(array[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.ReviewsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReviews(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 ReviewsApi();

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

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

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

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

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

try:
    # Get all the Reviews
    api_response = api_instance.get_reviews()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewsApi->getReviews: %s\n" % e)
extern crate ReviewsApi;

pub fn main() {

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

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

Scopes

Parameters

Responses


replaceReview

Edit Review

Edit a created Review


/api/v1/reviews/{reviewId}/{productId}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/v1/reviews/{reviewId}/{productId}?userId=789" \
 -d '{
  "rating" : 0,
  "reviewText" : "reviewText"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReviewsApi;

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

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

        // Create an instance of the API class
        ReviewsApi apiInstance = new ReviewsApi();
        Long userId = 789; // Long | 
        Long reviewId = 789; // Long | 
        Long productId = 789; // Long | 
        NewReviewRequestDTO newReviewRequestDTO = ; // NewReviewRequestDTO | 

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 
final Long reviewId = new Long(); // Long | 
final Long productId = new Long(); // Long | 
final NewReviewRequestDTO newReviewRequestDTO = new NewReviewRequestDTO(); // NewReviewRequestDTO | 

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

import org.openapitools.client.api.ReviewsApi;

public class ReviewsApiExample {
    public static void main(String[] args) {
        ReviewsApi apiInstance = new ReviewsApi();
        Long userId = 789; // Long | 
        Long reviewId = 789; // Long | 
        Long productId = 789; // Long | 
        NewReviewRequestDTO newReviewRequestDTO = ; // NewReviewRequestDTO | 

        try {
            ReviewDTO result = apiInstance.replaceReview(userId, reviewId, productId, newReviewRequestDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewsApi#replaceReview");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ReviewsApi *apiInstance = [[ReviewsApi alloc] init];
Long *userId = 789; //  (default to null)
Long *reviewId = 789; //  (default to null)
Long *productId = 789; //  (default to null)
NewReviewRequestDTO *newReviewRequestDTO = ; // 

// Edit Review
[apiInstance replaceReviewWith:userId
    reviewId:reviewId
    productId:productId
    newReviewRequestDTO:newReviewRequestDTO
              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.ReviewsApi()
var userId = 789; // {Long} 
var reviewId = 789; // {Long} 
var productId = 789; // {Long} 
var newReviewRequestDTO = ; // {NewReviewRequestDTO} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.replaceReview(userId, reviewId, productId, newReviewRequestDTO, 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 ReviewsApi();
            var userId = 789;  // Long |  (default to null)
            var reviewId = 789;  // Long |  (default to null)
            var productId = 789;  // Long |  (default to null)
            var newReviewRequestDTO = new NewReviewRequestDTO(); // NewReviewRequestDTO | 

            try {
                // Edit Review
                ReviewDTO result = apiInstance.replaceReview(userId, reviewId, productId, newReviewRequestDTO);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ReviewsApi.replaceReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ReviewsApi();
$userId = 789; // Long | 
$reviewId = 789; // Long | 
$productId = 789; // Long | 
$newReviewRequestDTO = ; // NewReviewRequestDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ReviewsApi->new();
my $userId = 789; # Long | 
my $reviewId = 789; # Long | 
my $productId = 789; # Long | 
my $newReviewRequestDTO = WWW::OPenAPIClient::Object::NewReviewRequestDTO->new(); # NewReviewRequestDTO | 

eval {
    my $result = $api_instance->replaceReview(userId => $userId, reviewId => $reviewId, productId => $productId, newReviewRequestDTO => $newReviewRequestDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReviewsApi->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.ReviewsApi()
userId = 789 # Long |  (default to null)
reviewId = 789 # Long |  (default to null)
productId = 789 # Long |  (default to null)
newReviewRequestDTO =  # NewReviewRequestDTO | 

try:
    # Edit Review
    api_response = api_instance.replace_review(userId, reviewId, productId, newReviewRequestDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewsApi->replaceReview: %s\n" % e)
extern crate ReviewsApi;

pub fn main() {
    let userId = 789; // Long
    let reviewId = 789; // Long
    let productId = 789; // Long
    let newReviewRequestDTO = ; // NewReviewRequestDTO

    let mut context = ReviewsApi::Context::default();
    let result = client.replaceReview(userId, reviewId, productId, newReviewRequestDTO, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
reviewId*
Long (int64)
Required
productId*
Long (int64)
Required
Body parameters
Name Description
newReviewRequestDTO *

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


reportReview

Report Review

Report a Review from a User


/api/v1/reviews/{reviewId}

Usage and SDK Samples

curl -X PATCH \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/reviews/{reviewId}?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ReviewsApi;

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

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

        // Create an instance of the API class
        ReviewsApi apiInstance = new ReviewsApi();
        Long userId = 789; // Long | 
        Long reviewId = 789; // Long | 

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 
final Long reviewId = new Long(); // Long | 

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

import org.openapitools.client.api.ReviewsApi;

public class ReviewsApiExample {
    public static void main(String[] args) {
        ReviewsApi apiInstance = new ReviewsApi();
        Long userId = 789; // Long | 
        Long reviewId = 789; // Long | 

        try {
            ReviewDTO result = apiInstance.reportReview(userId, reviewId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewsApi#reportReview");
            e.printStackTrace();
        }
    }
}


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

// Report Review
[apiInstance reportReviewWith:userId
    reviewId:reviewId
              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.ReviewsApi()
var userId = 789; // {Long} 
var reviewId = 789; // {Long} 

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

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

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

            try {
                // Report Review
                ReviewDTO result = apiInstance.reportReview(userId, reviewId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ReviewsApi.reportReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

eval {
    my $result = $api_instance->reportReview(userId => $userId, reviewId => $reviewId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReviewsApi->reportReview: $@\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.ReviewsApi()
userId = 789 # Long |  (default to null)
reviewId = 789 # Long |  (default to null)

try:
    # Report Review
    api_response = api_instance.report_review(userId, reviewId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewsApi->reportReview: %s\n" % e)
extern crate ReviewsApi;

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

    let mut context = ReviewsApi::Context::default();
    let result = client.reportReview(userId, reviewId, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
reviewId*
Long (int64)
Required
Query parameters
Name Description
userId*
Long (int64)
Required

Responses


User

createUserImage

Add User Image

Save a UserImage in the database


/api/v1/user/image

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/v1/user/image?userId=789" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

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

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

        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        Long userId = 789; // Long | 
        ReplaceUserImageRequest replaceUserImageRequest = ; // ReplaceUserImageRequest | 

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 
final ReplaceUserImageRequest replaceUserImageRequest = new ReplaceUserImageRequest(); // ReplaceUserImageRequest | 

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

import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        Long userId = 789; // Long | 
        ReplaceUserImageRequest replaceUserImageRequest = ; // ReplaceUserImageRequest | 

        try {
            Object result = apiInstance.createUserImage(userId, replaceUserImageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUserImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];
Long *userId = 789; //  (default to null)
ReplaceUserImageRequest *replaceUserImageRequest = ; //  (optional)

// Add User Image
[apiInstance createUserImageWith:userId
    replaceUserImageRequest:replaceUserImageRequest
              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.UserApi()
var userId = 789; // {Long} 
var opts = {
  'replaceUserImageRequest':  // {ReplaceUserImageRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createUserImage(userId, 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 UserApi();
            var userId = 789;  // Long |  (default to null)
            var replaceUserImageRequest = new ReplaceUserImageRequest(); // ReplaceUserImageRequest |  (optional) 

            try {
                // Add User Image
                Object result = apiInstance.createUserImage(userId, replaceUserImageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.createUserImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();
$userId = 789; // Long | 
$replaceUserImageRequest = ; // ReplaceUserImageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $userId = 789; # Long | 
my $replaceUserImageRequest = WWW::OPenAPIClient::Object::ReplaceUserImageRequest->new(); # ReplaceUserImageRequest | 

eval {
    my $result = $api_instance->createUserImage(userId => $userId, replaceUserImageRequest => $replaceUserImageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->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.UserApi()
userId = 789 # Long |  (default to null)
replaceUserImageRequest =  # ReplaceUserImageRequest |  (optional)

try:
    # Add User Image
    api_response = api_instance.create_user_image(userId, replaceUserImageRequest=replaceUserImageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->createUserImage: %s\n" % e)
extern crate UserApi;

pub fn main() {
    let userId = 789; // Long
    let replaceUserImageRequest = ; // ReplaceUserImageRequest

    let mut context = UserApi::Context::default();
    let result = client.createUserImage(userId, replaceUserImageRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
replaceUserImageRequest

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


registerUser

Register User

Register and save a User in the database


/api/v1/user

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/v1/user" \
 -d '{
  "surname" : "surname",
  "encodedPassword" : "encodedPassword",
  "name" : "name",
  "confirmPassword" : "confirmPassword",
  "email" : "email"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

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

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

        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        NewUserDTO newUserDTO = ; // NewUserDTO | 

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

final api_instance = DefaultApi();

final NewUserDTO newUserDTO = new NewUserDTO(); // NewUserDTO | 

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

import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        NewUserDTO newUserDTO = ; // NewUserDTO | 

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


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

// Register User
[apiInstance registerUserWith:newUserDTO
              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.UserApi()
var newUserDTO = ; // {NewUserDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new UserApi();
            var newUserDTO = new NewUserDTO(); // NewUserDTO | 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();
$newUserDTO = ; // NewUserDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $newUserDTO = WWW::OPenAPIClient::Object::NewUserDTO->new(); # NewUserDTO | 

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

try:
    # Register User
    api_response = api_instance.register_user(newUserDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->registerUser: %s\n" % e)
extern crate UserApi;

pub fn main() {
    let newUserDTO = ; // NewUserDTO

    let mut context = UserApi::Context::default();
    let result = client.registerUser(newUserDTO, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
newUserDTO *

Responses


Users

deleteUser

Delete User

Delete the actual User


/api/v1/users

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/users?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

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

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

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

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Long userId = 789; // Long | 

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


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

// Delete User
[apiInstance deleteUserWith:userId
              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.UsersApi()
var userId = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteUser(userId, 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 UsersApi();
            var userId = 789;  // Long |  (default to null)

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

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

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

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

eval {
    my $result = $api_instance->deleteUser(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->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.UsersApi()
userId = 789 # Long |  (default to null)

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

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

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

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

Scopes

Parameters

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


deleteUserImage

Delete User Image

Delete the actual User Image


/api/v1/users/image

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/users/image?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

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

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

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

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Long userId = 789; // Long | 

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


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

// Delete User Image
[apiInstance deleteUserImageWith:userId
              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.UsersApi()
var userId = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteUserImage(userId, 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 UsersApi();
            var userId = 789;  // Long |  (default to null)

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

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

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

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

eval {
    my $result = $api_instance->deleteUserImage(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->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.UsersApi()
userId = 789 # Long |  (default to null)

try:
    # Delete User Image
    api_response = api_instance.delete_user_image(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->deleteUserImage: %s\n" % e)
extern crate UsersApi;

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

    let mut context = UsersApi::Context::default();
    let result = client.deleteUserImage(userId, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


editUser

Edit User

Edit the actual User


/api/v1/users

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/v1/users?userId=789" \
 -d '{
  "address" : "address",
  "surname" : "surname",
  "name" : "name",
  "newPassword" : "newPassword",
  "confirmPassword" : "confirmPassword",
  "email" : "email",
  "currentPassword" : "currentPassword"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

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

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

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        Long userId = 789; // Long | 
        EditUserDTO editUserDTO = ; // EditUserDTO | 

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 
final EditUserDTO editUserDTO = new EditUserDTO(); // EditUserDTO | 

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

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Long userId = 789; // Long | 
        EditUserDTO editUserDTO = ; // EditUserDTO | 

        try {
            UserDTO result = apiInstance.editUser(userId, editUserDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#editUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
Long *userId = 789; //  (default to null)
EditUserDTO *editUserDTO = ; // 

// Edit User
[apiInstance editUserWith:userId
    editUserDTO:editUserDTO
              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.UsersApi()
var userId = 789; // {Long} 
var editUserDTO = ; // {EditUserDTO} 

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

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

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var userId = 789;  // Long |  (default to null)
            var editUserDTO = new EditUserDTO(); // EditUserDTO | 

            try {
                // Edit User
                UserDTO result = apiInstance.editUser(userId, editUserDTO);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.editUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$userId = 789; // Long | 
$editUserDTO = ; // EditUserDTO | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $userId = 789; # Long | 
my $editUserDTO = WWW::OPenAPIClient::Object::EditUserDTO->new(); # EditUserDTO | 

eval {
    my $result = $api_instance->editUser(userId => $userId, editUserDTO => $editUserDTO);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->editUser: $@\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.UsersApi()
userId = 789 # Long |  (default to null)
editUserDTO =  # EditUserDTO | 

try:
    # Edit User
    api_response = api_instance.edit_user(userId, editUserDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->editUser: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let userId = 789; // Long
    let editUserDTO = ; // EditUserDTO

    let mut context = UsersApi::Context::default();
    let result = client.editUser(userId, editUserDTO, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
editUserDTO *

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


getAdmin

Get Admin

Return Admin information


/api/v1/users/admin

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/users/admin?isAdmin=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

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

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

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        Boolean isAdmin = true; // Boolean | 

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

final api_instance = DefaultApi();

final Boolean isAdmin = new Boolean(); // Boolean | 

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

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Boolean isAdmin = true; // Boolean | 

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


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
Boolean *isAdmin = true; //  (default to null)

// Get Admin
[apiInstance getAdminWith:isAdmin
              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.UsersApi()
var isAdmin = true; // {Boolean} 

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

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

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var isAdmin = true;  // Boolean |  (default to null)

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$isAdmin = true; // Boolean | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $isAdmin = true; # Boolean | 

eval {
    my $result = $api_instance->getAdmin(isAdmin => $isAdmin);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->getAdmin: $@\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.UsersApi()
isAdmin = true # Boolean |  (default to null)

try:
    # Get Admin
    api_response = api_instance.get_admin(isAdmin)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->getAdmin: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let isAdmin = true; // Boolean

    let mut context = UsersApi::Context::default();
    let result = client.getAdmin(isAdmin, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
isAdmin*
Boolean
Required

Responses


getUser

Get User

Return a single User


/api/v1/users/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/users/{id}?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

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

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

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

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

final api_instance = DefaultApi();

final Long id = new Long(); // Long | 
final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.UsersApi;

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

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


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

// Get User
[apiInstance getUserWith:id
    userId:userId
              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.UsersApi()
var id = 789; // {Long} 
var userId = 789; // {Long} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUser(id, userId, 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 UsersApi();
            var id = 789;  // Long |  (default to null)
            var userId = 789;  // Long |  (default to null)

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

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

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

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

eval {
    my $result = $api_instance->getUser(id => $id, userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->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.UsersApi()
id = 789 # Long |  (default to null)
userId = 789 # Long |  (default to null)

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Query parameters
Name Description
userId*
Long (int64)
Required

Responses


getUserImage

Get User Image

Return a single User Image


/api/v1/users/image

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "http://localhost:8443/api/v1/users/image?userId=789"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

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

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

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

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 

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

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Long userId = 789; // Long | 

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


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

// Get User Image
[apiInstance getUserImageWith:userId
              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.UsersApi()
var userId = 789; // {Long} 

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

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

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

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

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

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

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

eval {
    my $result = $api_instance->getUserImage(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->getUserImage: $@\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.UsersApi()
userId = 789 # Long |  (default to null)

try:
    # Get User Image
    api_response = api_instance.get_user_image(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->getUserImage: %s\n" % e)
extern crate UsersApi;

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

    let mut context = UsersApi::Context::default();
    let result = client.getUserImage(userId, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
userId*
Long (int64)
Required

Responses


getUsers


/api/v1/users

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.UsersApi;

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

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


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

[apiInstance getUsersWithCompletionHandler: 
              ^(array[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.UsersApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUsers(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 UsersApi();

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

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

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

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

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

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

pub fn main() {

    let mut context = UsersApi::Context::default();
    let result = client.getUsers(&context).wait();

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

Scopes

Parameters

Responses


replaceUserImage

Edit User Image

Edit the actual User Image


/api/v1/users/image

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8443/api/v1/users/image?userId=789" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

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

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

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        Long userId = 789; // Long | 
        ReplaceUserImageRequest replaceUserImageRequest = ; // ReplaceUserImageRequest | 

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

final api_instance = DefaultApi();

final Long userId = new Long(); // Long | 
final ReplaceUserImageRequest replaceUserImageRequest = new ReplaceUserImageRequest(); // ReplaceUserImageRequest | 

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

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Long userId = 789; // Long | 
        ReplaceUserImageRequest replaceUserImageRequest = ; // ReplaceUserImageRequest | 

        try {
            Object result = apiInstance.replaceUserImage(userId, replaceUserImageRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#replaceUserImage");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
Long *userId = 789; //  (default to null)
ReplaceUserImageRequest *replaceUserImageRequest = ; //  (optional)

// Edit User Image
[apiInstance replaceUserImageWith:userId
    replaceUserImageRequest:replaceUserImageRequest
              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.UsersApi()
var userId = 789; // {Long} 
var opts = {
  'replaceUserImageRequest':  // {ReplaceUserImageRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var userId = 789;  // Long |  (default to null)
            var replaceUserImageRequest = new ReplaceUserImageRequest(); // ReplaceUserImageRequest |  (optional) 

            try {
                // Edit User Image
                Object result = apiInstance.replaceUserImage(userId, replaceUserImageRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.replaceUserImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$userId = 789; // Long | 
$replaceUserImageRequest = ; // ReplaceUserImageRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $userId = 789; # Long | 
my $replaceUserImageRequest = WWW::OPenAPIClient::Object::ReplaceUserImageRequest->new(); # ReplaceUserImageRequest | 

eval {
    my $result = $api_instance->replaceUserImage(userId => $userId, replaceUserImageRequest => $replaceUserImageRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->replaceUserImage: $@\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.UsersApi()
userId = 789 # Long |  (default to null)
replaceUserImageRequest =  # ReplaceUserImageRequest |  (optional)

try:
    # Edit User Image
    api_response = api_instance.replace_user_image(userId, replaceUserImageRequest=replaceUserImageRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->replaceUserImage: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let userId = 789; // Long
    let replaceUserImageRequest = ; // ReplaceUserImageRequest

    let mut context = UsersApi::Context::default();
    let result = client.replaceUserImage(userId, replaceUserImageRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
replaceUserImageRequest

Query parameters
Name Description
userId*
Long (int64)
Required

Responses