REST API

OrderRestController

getOrderItemsByEmail


/api/v1/orders/{email}/items

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://localhost:8080//api/v1/orders/{email}/items"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrderRestControllerApi;

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

public class OrderRestControllerApiExample {

    public static void main(String[] args) {
        
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        String email = email_example; // String | 
        try {
            array[OrderItemDTO] result = apiInstance.getOrderItemsByEmail(email);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#getOrderItemsByEmail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrderRestControllerApi;

public class OrderRestControllerApiExample {

    public static void main(String[] args) {
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        String email = email_example; // String | 
        try {
            array[OrderItemDTO] result = apiInstance.getOrderItemsByEmail(email);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#getOrderItemsByEmail");
            e.printStackTrace();
        }
    }
}
String *email = email_example; // 

OrderRestControllerApi *apiInstance = [[OrderRestControllerApi alloc] init];

[apiInstance getOrderItemsByEmailWith:email
              completionHandler: ^(array[OrderItemDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApi = require('rest_api');

var api = new RestApi.OrderRestControllerApi()
var email = email_example; // {{String}} 

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

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

            var apiInstance = new OrderRestControllerApi();
            var email = email_example;  // String | 

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

$api_instance = new Swagger\Client\ApiOrderRestControllerApi();
$email = email_example; // String | 

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

my $api_instance = WWW::SwaggerClient::OrderRestControllerApi->new();
my $email = email_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.OrderRestControllerApi()
email = email_example # String | 

try: 
    api_response = api_instance.get_order_items_by_email(email)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->getOrderItemsByEmail: %s\n" % e)

Parameters

Path parameters
Name Description
email*
String
Required

Responses

Status: 200 - OK


modifyOrderStatusByEmail


/api/v1/orders/{email}/status

Usage and SDK Samples

curl -X PUT\
-H "Accept: */*"\
"http://localhost:8080//api/v1/orders/{email}/status?orderStatus="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrderRestControllerApi;

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

public class OrderRestControllerApiExample {

    public static void main(String[] args) {
        
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        String email = email_example; // String | 
        String orderStatus = orderStatus_example; // String | 
        try {
            array[OrderDTO] result = apiInstance.modifyOrderStatusByEmail(email, orderStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#modifyOrderStatusByEmail");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrderRestControllerApi;

public class OrderRestControllerApiExample {

    public static void main(String[] args) {
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        String email = email_example; // String | 
        String orderStatus = orderStatus_example; // String | 
        try {
            array[OrderDTO] result = apiInstance.modifyOrderStatusByEmail(email, orderStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#modifyOrderStatusByEmail");
            e.printStackTrace();
        }
    }
}
String *email = email_example; // 
String *orderStatus = orderStatus_example; // 

OrderRestControllerApi *apiInstance = [[OrderRestControllerApi alloc] init];

[apiInstance modifyOrderStatusByEmailWith:email
    orderStatus:orderStatus
              completionHandler: ^(array[OrderDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApi = require('rest_api');

var api = new RestApi.OrderRestControllerApi()
var email = email_example; // {{String}} 
var orderStatus = orderStatus_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.modifyOrderStatusByEmail(email, orderStatus, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new OrderRestControllerApi();
            var email = email_example;  // String | 
            var orderStatus = orderStatus_example;  // String | 

            try
            {
                array[OrderDTO] result = apiInstance.modifyOrderStatusByEmail(email, orderStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrderRestControllerApi.modifyOrderStatusByEmail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiOrderRestControllerApi();
$email = email_example; // String | 
$orderStatus = orderStatus_example; // String | 

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

my $api_instance = WWW::SwaggerClient::OrderRestControllerApi->new();
my $email = email_example; # String | 
my $orderStatus = orderStatus_example; # String | 

eval { 
    my $result = $api_instance->modifyOrderStatusByEmail(email => $email, orderStatus => $orderStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrderRestControllerApi->modifyOrderStatusByEmail: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.OrderRestControllerApi()
email = email_example # String | 
orderStatus = orderStatus_example # String | 

try: 
    api_response = api_instance.modify_order_status_by_email(email, orderStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->modifyOrderStatusByEmail: %s\n" % e)

Parameters

Path parameters
Name Description
email*
String
Required
Query parameters
Name Description
orderStatus*
String
Required

Responses

Status: 200 - OK


read1


/api/v1/orders/{orderId}

Usage and SDK Samples

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

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

public class OrderRestControllerApiExample {

    public static void main(String[] args) {
        
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Long orderId = 789; // Long | 
        try {
            OrderDTO result = apiInstance.read1(orderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#read1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrderRestControllerApi;

public class OrderRestControllerApiExample {

    public static void main(String[] args) {
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        Long orderId = 789; // Long | 
        try {
            OrderDTO result = apiInstance.read1(orderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#read1");
            e.printStackTrace();
        }
    }
}
Long *orderId = 789; // 

OrderRestControllerApi *apiInstance = [[OrderRestControllerApi alloc] init];

[apiInstance read1With:orderId
              completionHandler: ^(OrderDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApi = require('rest_api');

var api = new RestApi.OrderRestControllerApi()
var orderId = 789; // {{Long}} 

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

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

            var apiInstance = new OrderRestControllerApi();
            var orderId = 789;  // Long | 

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

$api_instance = new Swagger\Client\ApiOrderRestControllerApi();
$orderId = 789; // Long | 

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

my $api_instance = WWW::SwaggerClient::OrderRestControllerApi->new();
my $orderId = 789; # Long | 

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

# create an instance of the API class
api_instance = swagger_client.OrderRestControllerApi()
orderId = 789 # Long | 

try: 
    api_response = api_instance.read1(orderId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->read1: %s\n" % e)

Parameters

Path parameters
Name Description
orderId*
Long (int64)
Required

Responses

Status: 200 - OK


register1


/api/v1/orders

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8080//api/v1/orders"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrderRestControllerApi;

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

public class OrderRestControllerApiExample {

    public static void main(String[] args) {
        
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        OrderDTO body = ; // OrderDTO | 
        try {
            OrderDTO result = apiInstance.register1(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#register1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrderRestControllerApi;

public class OrderRestControllerApiExample {

    public static void main(String[] args) {
        OrderRestControllerApi apiInstance = new OrderRestControllerApi();
        OrderDTO body = ; // OrderDTO | 
        try {
            OrderDTO result = apiInstance.register1(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrderRestControllerApi#register1");
            e.printStackTrace();
        }
    }
}
OrderDTO *body = ; // 

OrderRestControllerApi *apiInstance = [[OrderRestControllerApi alloc] init];

[apiInstance register1With:body
              completionHandler: ^(OrderDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApi = require('rest_api');

var api = new RestApi.OrderRestControllerApi()
var body = ; // {{OrderDTO}} 

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

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

            var apiInstance = new OrderRestControllerApi();
            var body = new OrderDTO(); // OrderDTO | 

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

$api_instance = new Swagger\Client\ApiOrderRestControllerApi();
$body = ; // OrderDTO | 

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

my $api_instance = WWW::SwaggerClient::OrderRestControllerApi->new();
my $body = WWW::SwaggerClient::Object::OrderDTO->new(); # OrderDTO | 

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

# create an instance of the API class
api_instance = swagger_client.OrderRestControllerApi()
body =  # OrderDTO | 

try: 
    api_response = api_instance.register1(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrderRestControllerApi->register1: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


ProductRestContorller

getProductList


/api/v1/products

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://localhost:8080//api/v1/products?productDTO="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductRestContorllerApi;

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

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        ProductDTO productDTO = ; // ProductDTO | 
        try {
            array[Product] result = apiInstance.getProductList(productDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#getProductList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductRestContorllerApi;

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        ProductDTO productDTO = ; // ProductDTO | 
        try {
            array[Product] result = apiInstance.getProductList(productDTO);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#getProductList");
            e.printStackTrace();
        }
    }
}
ProductDTO *productDTO = ; // 

ProductRestContorllerApi *apiInstance = [[ProductRestContorllerApi alloc] init];

[apiInstance getProductListWith:productDTO
              completionHandler: ^(array[Product] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApi = require('rest_api');

var api = new RestApi.ProductRestContorllerApi()
var productDTO = ; // {{ProductDTO}} 

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

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

            var apiInstance = new ProductRestContorllerApi();
            var productDTO = new ProductDTO(); // ProductDTO | 

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

$api_instance = new Swagger\Client\ApiProductRestContorllerApi();
$productDTO = ; // ProductDTO | 

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

my $api_instance = WWW::SwaggerClient::ProductRestContorllerApi->new();
my $productDTO = ; # ProductDTO | 

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

# create an instance of the API class
api_instance = swagger_client.ProductRestContorllerApi()
productDTO =  # ProductDTO | 

try: 
    api_response = api_instance.get_product_list(productDTO)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestContorllerApi->getProductList: %s\n" % e)

Parameters

Query parameters
Name Description
productDTO*
ProductDTO
Required

Responses

Status: 200 - OK


modify


/api/v1/products/{productId}

Usage and SDK Samples

curl -X PUT\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8080//api/v1/products/{productId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductRestContorllerApi;

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

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        ProductDTO body = ; // ProductDTO | 
        Long productId = 789; // Long | 
        try {
            ProductDTO result = apiInstance.modify(body, productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#modify");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductRestContorllerApi;

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        ProductDTO body = ; // ProductDTO | 
        Long productId = 789; // Long | 
        try {
            ProductDTO result = apiInstance.modify(body, productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#modify");
            e.printStackTrace();
        }
    }
}
ProductDTO *body = ; // 
Long *productId = 789; // 

ProductRestContorllerApi *apiInstance = [[ProductRestContorllerApi alloc] init];

[apiInstance modifyWith:body
    productId:productId
              completionHandler: ^(ProductDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApi = require('rest_api');

var api = new RestApi.ProductRestContorllerApi()
var body = ; // {{ProductDTO}} 
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.modify(bodyproductId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ProductRestContorllerApi();
            var body = new ProductDTO(); // ProductDTO | 
            var productId = 789;  // Long | 

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

$api_instance = new Swagger\Client\ApiProductRestContorllerApi();
$body = ; // ProductDTO | 
$productId = 789; // Long | 

try {
    $result = $api_instance->modify($body, $productId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductRestContorllerApi->modify: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductRestContorllerApi;

my $api_instance = WWW::SwaggerClient::ProductRestContorllerApi->new();
my $body = WWW::SwaggerClient::Object::ProductDTO->new(); # ProductDTO | 
my $productId = 789; # Long | 

eval { 
    my $result = $api_instance->modify(body => $body, productId => $productId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductRestContorllerApi->modify: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ProductRestContorllerApi()
body =  # ProductDTO | 
productId = 789 # Long | 

try: 
    api_response = api_instance.modify(body, productId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestContorllerApi->modify: %s\n" % e)

Parameters

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

Responses

Status: 200 - OK


read


/api/v1/products/{productId}

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://localhost:8080//api/v1/products/{productId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductRestContorllerApi;

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

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        Long productId = 789; // Long | 
        try {
            ProductDTO result = apiInstance.read(productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#read");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductRestContorllerApi;

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        Long productId = 789; // Long | 
        try {
            ProductDTO result = apiInstance.read(productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#read");
            e.printStackTrace();
        }
    }
}
Long *productId = 789; // 

ProductRestContorllerApi *apiInstance = [[ProductRestContorllerApi alloc] init];

[apiInstance readWith:productId
              completionHandler: ^(ProductDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApi = require('rest_api');

var api = new RestApi.ProductRestContorllerApi()
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.read(productId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ProductRestContorllerApi();
            var productId = 789;  // Long | 

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

$api_instance = new Swagger\Client\ApiProductRestContorllerApi();
$productId = 789; // Long | 

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

my $api_instance = WWW::SwaggerClient::ProductRestContorllerApi->new();
my $productId = 789; # Long | 

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

# create an instance of the API class
api_instance = swagger_client.ProductRestContorllerApi()
productId = 789 # Long | 

try: 
    api_response = api_instance.read(productId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestContorllerApi->read: %s\n" % e)

Parameters

Path parameters
Name Description
productId*
Long (int64)
Required

Responses

Status: 200 - OK


register


/api/v1/products

Usage and SDK Samples

curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8080//api/v1/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductRestContorllerApi;

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

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        ProductDTO body = ; // ProductDTO | 
        try {
            ProductDTO result = apiInstance.register(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#register");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductRestContorllerApi;

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        ProductDTO body = ; // ProductDTO | 
        try {
            ProductDTO result = apiInstance.register(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#register");
            e.printStackTrace();
        }
    }
}
ProductDTO *body = ; // 

ProductRestContorllerApi *apiInstance = [[ProductRestContorllerApi alloc] init];

[apiInstance registerWith:body
              completionHandler: ^(ProductDTO output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApi = require('rest_api');

var api = new RestApi.ProductRestContorllerApi()
var body = ; // {{ProductDTO}} 

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

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

            var apiInstance = new ProductRestContorllerApi();
            var body = new ProductDTO(); // ProductDTO | 

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

$api_instance = new Swagger\Client\ApiProductRestContorllerApi();
$body = ; // ProductDTO | 

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

my $api_instance = WWW::SwaggerClient::ProductRestContorllerApi->new();
my $body = WWW::SwaggerClient::Object::ProductDTO->new(); # ProductDTO | 

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

# create an instance of the API class
api_instance = swagger_client.ProductRestContorllerApi()
body =  # ProductDTO | 

try: 
    api_response = api_instance.register(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestContorllerApi->register: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


remove


/api/v1/products/{productId}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: */*"\
"http://localhost:8080//api/v1/products/{productId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductRestContorllerApi;

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

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        Long productId = 789; // Long | 
        try {
            map['String', Long] result = apiInstance.remove(productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#remove");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductRestContorllerApi;

public class ProductRestContorllerApiExample {

    public static void main(String[] args) {
        ProductRestContorllerApi apiInstance = new ProductRestContorllerApi();
        Long productId = 789; // Long | 
        try {
            map['String', Long] result = apiInstance.remove(productId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestContorllerApi#remove");
            e.printStackTrace();
        }
    }
}
Long *productId = 789; // 

ProductRestContorllerApi *apiInstance = [[ProductRestContorllerApi alloc] init];

[apiInstance removeWith:productId
              completionHandler: ^(map['String', Long] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApi = require('rest_api');

var api = new RestApi.ProductRestContorllerApi()
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.remove(productId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ProductRestContorllerApi();
            var productId = 789;  // Long | 

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

$api_instance = new Swagger\Client\ApiProductRestContorllerApi();
$productId = 789; // Long | 

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

my $api_instance = WWW::SwaggerClient::ProductRestContorllerApi->new();
my $productId = 789; # Long | 

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

# create an instance of the API class
api_instance = swagger_client.ProductRestContorllerApi()
productId = 789 # Long | 

try: 
    api_response = api_instance.remove(productId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductRestContorllerApi->remove: %s\n" % e)

Parameters

Path parameters
Name Description
productId*
Long (int64)
Required

Responses

Status: 200 - OK