OpenAPI definition

CounterofferRestController

acceptCounteroffer


/api/counteroffers/acceptCounteroffer/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8080/api/counteroffers/acceptCounteroffer/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CounterofferRestControllerApi;

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

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

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

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

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

        try {
            'String' result = apiInstance.acceptCounteroffer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CounterofferRestControllerApi#acceptCounteroffer");
            e.printStackTrace();
        }
    }
}


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

[apiInstance acceptCounterofferWith:id
              completionHandler: ^('String' 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.CounterofferRestControllerApi()
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.acceptCounteroffer(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 - OK

string

addCounteroffer


/api/counteroffers/addCounteroffer/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8080/api/counteroffers/addCounteroffer/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CounterofferRestControllerApi;

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

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

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

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

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

        try {
            'String' result = apiInstance.addCounteroffer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CounterofferRestControllerApi#addCounteroffer");
            e.printStackTrace();
        }
    }
}


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

[apiInstance addCounterofferWith:id
              completionHandler: ^('String' 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.CounterofferRestControllerApi()
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.addCounteroffer(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 - OK

string

createCounteroffer


/api/counteroffers/addCounteroffer/{id}

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "https://localhost:8080/api/counteroffers/addCounteroffer/{id}" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CounterofferRestControllerApi;

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

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

        // Create an instance of the API class
        CounterofferRestControllerApi apiInstance = new CounterofferRestControllerApi();
        Long id = 789; // Long | 
        Float body = 3.4; // Float | 

        try {
            Counteroffer result = apiInstance.createCounteroffer(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CounterofferRestControllerApi#createCounteroffer");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.CounterofferRestControllerApi;

public class CounterofferRestControllerApiExample {
    public static void main(String[] args) {
        CounterofferRestControllerApi apiInstance = new CounterofferRestControllerApi();
        Long id = 789; // Long | 
        Float body = 3.4; // Float | 

        try {
            Counteroffer result = apiInstance.createCounteroffer(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CounterofferRestControllerApi#createCounteroffer");
            e.printStackTrace();
        }
    }
}


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

[apiInstance createCounterofferWith:id
    body:body
              completionHandler: ^(Counteroffer 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.CounterofferRestControllerApi()
var id = 789; // {Long} 
var body = 3.4; // {Float} 

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

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

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

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

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

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

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

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

try:
    api_response = api_instance.create_counteroffer(id, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CounterofferRestControllerApi->createCounteroffer: %s\n" % e)
extern crate CounterofferRestControllerApi;

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

    let mut context = CounterofferRestControllerApi::Context::default();
    let result = client.createCounteroffer(id, body, &context).wait();

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

Scopes

Parameters

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

number (float)

Responses

Status: 201 - Created

{
id:
integer (int64)
newPrice:
number (float)
date:
string
product:
{
id:
integer (int64)
title:
string
description:
string
category:
string
price:
number (float)
isSold:
boolean
image:
boolean
user:
{
id:
name:
surname:
email:
address:
encodedPassword:
categoria1:
categoria2:
categoria3:
imageFile:
roles:
transmitter:
{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]
receiver:
{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]
price:
number (float)

createTransaction


/api/counteroffers/acceptCounteroffer/{id}

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "https://localhost:8080/api/counteroffers/acceptCounteroffer/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CounterofferRestControllerApi;

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

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

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

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

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

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


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

[apiInstance createTransactionWith:id
              completionHandler: ^(Transaction 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.CounterofferRestControllerApi()
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.createTransaction(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 201 - Created

{
id:
integer (int64)
date:
string
price:
number (float)

LoginRestController

logOut


/api/users/logout

Usage and SDK Samples

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

pub fn main() {

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

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

Scopes

Parameters

Responses

Status: 200 - OK

{
status:
string
Enum: SUCCESS, FAILURE
message:
string
error:
string

login


/api/users/login

Usage and SDK Samples

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Body parameters
Name Description
loginRequest *

{
username:
string
password:
string

Responses

Status: 200 - OK

{
status:
string
Enum: SUCCESS, FAILURE
message:
string
error:
string

refreshToken


/api/users/refresh

Usage and SDK Samples

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Responses

Status: 200 - OK

{
status:
string
Enum: SUCCESS, FAILURE
message:
string
error:
string

ProductRestController

createProduct


/api/products/

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "https://localhost:8080/api/products/" \
 -d '{
  "image" : true,
  "price" : 6.0274563,
  "isSold" : true,
  "description" : "description",
  "id" : 0,
  "title" : "title",
  "category" : "category",
  "user" : {
    "address" : "address",
    "surname" : "surname",
    "imageFile" : {
      "binaryStream" : "{}"
    },
    "encodedPassword" : "encodedPassword",
    "categoria3" : "categoria3",
    "roles" : [ "roles", "roles" ],
    "name" : "name",
    "categoria2" : "categoria2",
    "categoria1" : "categoria1",
    "id" : 0,
    "email" : "email"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

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

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

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

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


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

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

// Create an instance of the API class
var api = new OpenApiDefinition.ProductRestControllerApi()
var product = ; // {Product} 

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

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

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

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

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

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

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

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

# Create an instance of the API class
api_instance = openapi_client.ProductRestControllerApi()
product =  # Product | 

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

pub fn main() {
    let product = ; // Product

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

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

Scopes

Parameters

Body parameters
Name Description
product *

{
id:
integer (int64)
title:
string
description:
string
category:
string
price:
number (float)
isSold:
boolean
image:
boolean
user:
{
id:
name:
surname:
email:
address:
encodedPassword:
categoria1:
categoria2:
categoria3:
imageFile:
roles:

Responses

Status: 201 - Created

{
id:
integer (int64)
title:
string
description:
string
category:
string
price:
number (float)
isSold:
boolean
image:
boolean
user:
{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]

deleteProduct


/api/products/{id}

Usage and SDK Samples

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

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

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

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

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

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

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


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

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

// Create an instance of the API class
var api = new OpenApiDefinition.ProductRestControllerApi()
var id = 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 ProductRestControllerApi();
            var id = 789;  // Long |  (default to null)

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 - OK

{
id:
integer (int64)
title:
string
description:
string
category:
string
price:
number (float)
isSold:
boolean
image:
boolean
user:
{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]

downloadImage


/api/products/{id}/image

Usage and SDK Samples

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 - OK


editImage


/api/products/{id}/image

Usage and SDK Samples

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

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

{
imageFile:
string (binary)

Responses

Status: 200 - OK


getProductById


/api/products/{id}

Usage and SDK Samples

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 - OK

{
id:
integer (int64)
title:
string
description:
string
category:
string
price:
number (float)
isSold:
boolean
image:
boolean
user:
{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]

updateProduct


/api/products/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "https://localhost:8080/api/products/{id}" \
 -d '{
  "image" : true,
  "price" : 6.0274563,
  "isSold" : true,
  "description" : "description",
  "id" : 0,
  "title" : "title",
  "category" : "category",
  "user" : {
    "address" : "address",
    "surname" : "surname",
    "imageFile" : {
      "binaryStream" : "{}"
    },
    "encodedPassword" : "encodedPassword",
    "categoria3" : "categoria3",
    "roles" : [ "roles", "roles" ],
    "name" : "name",
    "categoria2" : "categoria2",
    "categoria1" : "categoria1",
    "id" : 0,
    "email" : "email"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProductRestControllerApi;

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

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

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

        try {
            Product result = apiInstance.updateProduct(id, product);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductRestControllerApi#updateProduct");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ProductRestControllerApi;

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Long id = 789; // Long | 
        Product product = ; // Product | 

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

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

{
id:
integer (int64)
title:
string
description:
string
category:
string
price:
number (float)
isSold:
boolean
image:
boolean
user:
{
id:
name:
surname:
email:
address:
encodedPassword:
categoria1:
categoria2:
categoria3:
imageFile:
roles:

Responses

Status: 200 - OK

{
id:
integer (int64)
title:
string
description:
string
category:
string
price:
number (float)
isSold:
boolean
image:
boolean
user:
{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]

uploadImage


/api/products/{id}/image

Usage and SDK Samples

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

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

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

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

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

public class ProductRestControllerApiExample {
    public static void main(String[] args) {
        ProductRestControllerApi apiInstance = new ProductRestControllerApi();
        Long id = 789; // Long | 
        InlineObject1 inlineObject1 = ; // InlineObject1 | 

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


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

[apiInstance uploadImageWith:id
    inlineObject1:inlineObject1
              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.ProductRestControllerApi()
var id = 789; // {Long} 
var opts = {
  'inlineObject1':  // {InlineObject1} 
};

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

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

{
imageFile:
string (binary)

Responses

Status: 200 - OK


TransactionRestController

comfirmTransaction


/api/transactions/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8080/api/transactions/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionRestControllerApi;

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

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

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

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

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

        try {
            'String' result = apiInstance.comfirmTransaction(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRestControllerApi#comfirmTransaction");
            e.printStackTrace();
        }
    }
}


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

[apiInstance comfirmTransactionWith:id
              completionHandler: ^('String' 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.TransactionRestControllerApi()
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.comfirmTransaction(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 - OK

string

newTransaction


/api/transactions/

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "https://localhost:8080/api/transactions/" \
 -d '{
  "image" : true,
  "price" : 6.0274563,
  "isSold" : true,
  "description" : "description",
  "id" : 0,
  "title" : "title",
  "category" : "category",
  "user" : {
    "address" : "address",
    "surname" : "surname",
    "imageFile" : {
      "binaryStream" : "{}"
    },
    "encodedPassword" : "encodedPassword",
    "categoria3" : "categoria3",
    "roles" : [ "roles", "roles" ],
    "name" : "name",
    "categoria2" : "categoria2",
    "categoria1" : "categoria1",
    "id" : 0,
    "email" : "email"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TransactionRestControllerApi;

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

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

        // Create an instance of the API class
        TransactionRestControllerApi apiInstance = new TransactionRestControllerApi();
        Product product = ; // Product | 

        try {
            'String' result = apiInstance.newTransaction(product);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRestControllerApi#newTransaction");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TransactionRestControllerApi;

public class TransactionRestControllerApiExample {
    public static void main(String[] args) {
        TransactionRestControllerApi apiInstance = new TransactionRestControllerApi();
        Product product = ; // Product | 

        try {
            'String' result = apiInstance.newTransaction(product);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TransactionRestControllerApi#newTransaction");
            e.printStackTrace();
        }
    }
}


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

[apiInstance newTransactionWith:product
              completionHandler: ^('String' 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.TransactionRestControllerApi()
var product = ; // {Product} 

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

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

            // Create an instance of the API class
            var apiInstance = new TransactionRestControllerApi();
            var product = new Product(); // Product | 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TransactionRestControllerApi();
$product = ; // Product | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TransactionRestControllerApi->new();
my $product = WWW::OPenAPIClient::Object::Product->new(); # Product | 

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

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

pub fn main() {
    let product = ; // Product

    let mut context = TransactionRestControllerApi::Context::default();
    let result = client.newTransaction(product, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
product *

{
id:
integer (int64)
title:
string
description:
string
category:
string
price:
number (float)
isSold:
boolean
image:
boolean
user:
{
id:
name:
surname:
email:
address:
encodedPassword:
categoria1:
categoria2:
categoria3:
imageFile:
roles:

Responses

Status: 201 - Created

string

UserRestController

createProfile


/api/users/

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "https://localhost:8080/api/users/" \
 -d '{
  "address" : "address",
  "surname" : "surname",
  "imageFile" : {
    "binaryStream" : "{}"
  },
  "encodedPassword" : "encodedPassword",
  "categoria3" : "categoria3",
  "roles" : [ "roles", "roles" ],
  "name" : "name",
  "categoria2" : "categoria2",
  "categoria1" : "categoria1",
  "id" : 0,
  "email" : "email"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

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

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

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

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

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


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

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

// Create an instance of the API class
var api = new OpenApiDefinition.UserRestControllerApi()
var user = ; // {User} 

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

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

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

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

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

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

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

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

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

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

pub fn main() {
    let user = ; // User

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

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

Scopes

Parameters

Body parameters
Name Description
user *

{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]

Responses

Status: 201 - Created

{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]

deleteProfile


/api/users/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: */*" \
 "https://localhost:8080/api/users/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 - OK

{
id:
integer (int64)
title:
string
description:
string
category:
string
price:
number (float)
isSold:
boolean
image:
boolean
user:
{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]

editProfile


/api/users/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "https://localhost:8080/api/users/{id}" \
 -d '{
  "address" : "address",
  "surname" : "surname",
  "imageFile" : {
    "binaryStream" : "{}"
  },
  "encodedPassword" : "encodedPassword",
  "categoria3" : "categoria3",
  "roles" : [ "roles", "roles" ],
  "name" : "name",
  "categoria2" : "categoria2",
  "categoria1" : "categoria1",
  "id" : 0,
  "email" : "email"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

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

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

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

public class UserRestControllerApiExample {
    public static void main(String[] args) {
        UserRestControllerApi apiInstance = new UserRestControllerApi();
        Long id = 789; // Long | 
        User user = ; // User | 

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

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

{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]

Responses

Status: 200 - OK

{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]

getProfile


/api/users/{id}

Usage and SDK Samples

curl -X GET \
 -H "Accept: */*" \
 "https://localhost:8080/api/users/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserRestControllerApi;

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 - OK

{
id:
integer (int64)
name:
string
surname:
string
email:
string
address:
string
encodedPassword:
string
categoria1:
string
categoria2:
string
categoria3:
string
imageFile:
{
binaryStream:
roles:
[
string
]