Viver bem API Documentation

Apartment

findAll

Finds all Apartment


/api/v1/apartments

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/apartments?page=&size=&direction=&ap_status="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApartmentApi;

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

public class ApartmentApiExample {

    public static void main(String[] args) {
        
        ApartmentApi apiInstance = new ApartmentApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        String direction = direction_example; // String | 
        String apStatus = apStatus_example; // String | 
        try {
            array[Apartment] result = apiInstance.findAll(page, size, direction, apStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApartmentApi#findAll");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApartmentApi;

public class ApartmentApiExample {

    public static void main(String[] args) {
        ApartmentApi apiInstance = new ApartmentApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        String direction = direction_example; // String | 
        String apStatus = apStatus_example; // String | 
        try {
            array[Apartment] result = apiInstance.findAll(page, size, direction, apStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApartmentApi#findAll");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; //  (optional) (default to 0)
Integer *size = 56; //  (optional) (default to 12)
String *direction = direction_example; //  (optional) (default to asc)
String *apStatus = apStatus_example; //  (optional)

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

// Finds all Apartment
[apiInstance findAllWith:page
    size:size
    direction:direction
    apStatus:apStatus
              completionHandler: ^(array[Apartment] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.ApartmentApi()
var opts = { 
  'page': 56, // {{Integer}} 
  'size': 56, // {{Integer}} 
  'direction': direction_example, // {{String}} 
  'apStatus': apStatus_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findAll(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ApartmentApi();
            var page = 56;  // Integer |  (optional)  (default to 0)
            var size = 56;  // Integer |  (optional)  (default to 12)
            var direction = direction_example;  // String |  (optional)  (default to asc)
            var apStatus = apStatus_example;  // String |  (optional) 

            try
            {
                // Finds all Apartment
                array[Apartment] result = apiInstance.findAll(page, size, direction, apStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApartmentApi.findAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApartmentApi();
$page = 56; // Integer | 
$size = 56; // Integer | 
$direction = direction_example; // String | 
$apStatus = apStatus_example; // String | 

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

my $api_instance = WWW::SwaggerClient::ApartmentApi->new();
my $page = 56; # Integer | 
my $size = 56; # Integer | 
my $direction = direction_example; # String | 
my $apStatus = apStatus_example; # String | 

eval { 
    my $result = $api_instance->findAll(page => $page, size => $size, direction => $direction, apStatus => $apStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ApartmentApi->findAll: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApartmentApi()
page = 56 # Integer |  (optional) (default to 0)
size = 56 # Integer |  (optional) (default to 12)
direction = direction_example # String |  (optional) (default to asc)
apStatus = apStatus_example # String |  (optional)

try: 
    # Finds all Apartment
    api_response = api_instance.find_all3(page=page, size=size, direction=direction, apStatus=apStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApartmentApi->findAll: %s\n" % e)

Parameters

Query parameters
Name Description
page
Integer (int32)
size
Integer (int32)
direction
String
ap_status
String

Responses

Status: 200 - Success

Status: 500 - Internal Error


findByNumberAp

Finds a Apartment


/api/v1/apartments/{ap_num}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/apartments/{ap_num}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApartmentApi;

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

public class ApartmentApiExample {

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

public class ApartmentApiExample {

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

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

// Finds a Apartment
[apiInstance findByNumberApWith:apNum
              completionHandler: ^(array[Apartment] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.ApartmentApi()
var apNum = 789; // {{Long}} 

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

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

            var apiInstance = new ApartmentApi();
            var apNum = 789;  // Long | 

            try
            {
                // Finds a Apartment
                array[Apartment] result = apiInstance.findByNumberAp(apNum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApartmentApi.findByNumberAp: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApartmentApi();
$apNum = 789; // Long | 

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

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

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

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

try: 
    # Finds a Apartment
    api_response = api_instance.find_by_number_ap(apNum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ApartmentApi->findByNumberAp: %s\n" % e)

Parameters

Path parameters
Name Description
ap_num*
Long (int64)
Required

Responses

Status: 200 - Success

Status: 404 - Not Found

Status: 500 - Internal Error


update

Updates a Apartment


/api/v1/apartments

Usage and SDK Samples

curl -X PUT\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/apartments"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApartmentApi;

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

public class ApartmentApiExample {

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

public class ApartmentApiExample {

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

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

// Updates a Apartment
[apiInstance updateWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.ApartmentApi()
var body = ; // {{ApartmentsRequestDTO}} 

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

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

            var apiInstance = new ApartmentApi();
            var body = new ApartmentsRequestDTO(); // ApartmentsRequestDTO | 

            try
            {
                // Updates a Apartment
                apiInstance.update(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApartmentApi.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApartmentApi();
$body = ; // ApartmentsRequestDTO | 

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

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

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

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

try: 
    # Updates a Apartment
    api_instance.update(body)
except ApiException as e:
    print("Exception when calling ApartmentApi->update: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 204 - No Content

Status: 404 - Not Found

Status: 500 - Internal Error


updateStatus

Updates Apartment Status


/api/v1/apartments/{ap_num}

Usage and SDK Samples

curl -X PATCH\
"http://localhost:8080/api/v1/apartments/{ap_num}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApartmentApi;

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

public class ApartmentApiExample {

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

public class ApartmentApiExample {

    public static void main(String[] args) {
        ApartmentApi apiInstance = new ApartmentApi();
        Long apNum = 789; // Long | 
        try {
            apiInstance.updateStatus(apNum);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApartmentApi#updateStatus");
            e.printStackTrace();
        }
    }
}
Long *apNum = 789; // 

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

// Updates Apartment Status
[apiInstance updateStatusWith:apNum
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.ApartmentApi()
var apNum = 789; // {{Long}} 

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

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

            var apiInstance = new ApartmentApi();
            var apNum = 789;  // Long | 

            try
            {
                // Updates Apartment Status
                apiInstance.updateStatus(apNum);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApartmentApi.updateStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiApartmentApi();
$apNum = 789; // Long | 

try {
    $api_instance->updateStatus($apNum);
} catch (Exception $e) {
    echo 'Exception when calling ApartmentApi->updateStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApartmentApi;

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

eval { 
    $api_instance->updateStatus(apNum => $apNum);
};
if ($@) {
    warn "Exception when calling ApartmentApi->updateStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

try: 
    # Updates Apartment Status
    api_instance.update_status(apNum)
except ApiException as e:
    print("Exception when calling ApartmentApi->updateStatus: %s\n" % e)

Parameters

Path parameters
Name Description
ap_num*
Long (int64)
Required

Responses

Status: 204 - No Content

Status: 404 - Not Found

Status: 500 - Internal Error


Authentication

login

Login a User

Login a User and returns a JWT Token


/api/v1/auth/login

Usage and SDK Samples

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

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

public class AuthenticationApiExample {

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

public class AuthenticationApiExample {

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

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

// Login a User
[apiInstance loginWith:body
              completionHandler: ^(array[TokenDTO] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.AuthenticationApi()
var body = ; // {{LoginRequestDTO}} 

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

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

            var apiInstance = new AuthenticationApi();
            var body = new LoginRequestDTO(); // LoginRequestDTO | 

            try
            {
                // Login a User
                array[TokenDTO] result = apiInstance.login(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationApi.login: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationApi();
$body = ; // LoginRequestDTO | 

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

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

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

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

try: 
    # Login a User
    api_response = api_instance.login(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationApi->login: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Success

Status: 404 - Not Found

Status: 500 - Internal Error


register

Creates a new User

Creates a new User with USER_ROLE enum


/api/v1/auth/register

Usage and SDK Samples

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

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

public class AuthenticationApiExample {

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

public class AuthenticationApiExample {

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

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

// Creates a new User
[apiInstance registerWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.AuthenticationApi()
var body = ; // {{RegisterRequestDTO}} 

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

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

            var apiInstance = new AuthenticationApi();
            var body = new RegisterRequestDTO(); // RegisterRequestDTO | 

            try
            {
                // Creates a new User
                apiInstance.register(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationApi.register: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationApi();
$body = ; // RegisterRequestDTO | 

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

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

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

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

try: 
    # Creates a new User
    api_instance.register(body)
except ApiException as e:
    print("Exception when calling AuthenticationApi->register: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Created

Status: 400 - Bad Request

Status: 500 - Internal Error


Contract

findAll

Finds all Contract


/api/v1/contracts

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/contracts?page=&size=&direction="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContractApi;

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

public class ContractApiExample {

    public static void main(String[] args) {
        
        ContractApi apiInstance = new ContractApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        String direction = direction_example; // String | 
        try {
            array[Contract] result = apiInstance.findAll(page, size, direction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContractApi#findAll");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContractApi;

public class ContractApiExample {

    public static void main(String[] args) {
        ContractApi apiInstance = new ContractApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        String direction = direction_example; // String | 
        try {
            array[Contract] result = apiInstance.findAll(page, size, direction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContractApi#findAll");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; //  (optional) (default to 0)
Integer *size = 56; //  (optional) (default to 12)
String *direction = direction_example; //  (optional) (default to asc)

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

// Finds all Contract
[apiInstance findAllWith:page
    size:size
    direction:direction
              completionHandler: ^(array[Contract] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.ContractApi()
var opts = { 
  'page': 56, // {{Integer}} 
  'size': 56, // {{Integer}} 
  'direction': direction_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findAll(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ContractApi();
            var page = 56;  // Integer |  (optional)  (default to 0)
            var size = 56;  // Integer |  (optional)  (default to 12)
            var direction = direction_example;  // String |  (optional)  (default to asc)

            try
            {
                // Finds all Contract
                array[Contract] result = apiInstance.findAll(page, size, direction);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContractApi.findAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiContractApi();
$page = 56; // Integer | 
$size = 56; // Integer | 
$direction = direction_example; // String | 

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

my $api_instance = WWW::SwaggerClient::ContractApi->new();
my $page = 56; # Integer | 
my $size = 56; # Integer | 
my $direction = direction_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.ContractApi()
page = 56 # Integer |  (optional) (default to 0)
size = 56 # Integer |  (optional) (default to 12)
direction = direction_example # String |  (optional) (default to asc)

try: 
    # Finds all Contract
    api_response = api_instance.find_all2(page=page, size=size, direction=direction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContractApi->findAll: %s\n" % e)

Parameters

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

Responses

Status: 200 - Success

Status: 500 - Internal Error


findByUuid

Finds a Contract

Finds a Contract by UUID


/api/v1/contracts/{uuid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/contracts/{uuid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContractApi;

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

public class ContractApiExample {

    public static void main(String[] args) {
        
        ContractApi apiInstance = new ContractApi();
        UUID uuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[Contract] result = apiInstance.findByUuid(uuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContractApi#findByUuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContractApi;

public class ContractApiExample {

    public static void main(String[] args) {
        ContractApi apiInstance = new ContractApi();
        UUID uuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 
        try {
            array[Contract] result = apiInstance.findByUuid(uuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContractApi#findByUuid");
            e.printStackTrace();
        }
    }
}
UUID *uuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // 

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

// Finds a Contract
[apiInstance findByUuidWith:uuid
              completionHandler: ^(array[Contract] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.ContractApi()
var uuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} 

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

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

            var apiInstance = new ContractApi();
            var uuid = new UUID(); // UUID | 

            try
            {
                // Finds a Contract
                array[Contract] result = apiInstance.findByUuid(uuid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContractApi.findByUuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiContractApi();
$uuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | 

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

my $api_instance = WWW::SwaggerClient::ContractApi->new();
my $uuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | 

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

# create an instance of the API class
api_instance = swagger_client.ContractApi()
uuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | 

try: 
    # Finds a Contract
    api_response = api_instance.find_by_uuid(uuid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContractApi->findByUuid: %s\n" % e)

Parameters

Path parameters
Name Description
uuid*
UUID (uuid)
Required

Responses

Status: 200 - Success

Status: 404 - Not Found

Status: 500 - Internal Error


save

Adds a new Contract


/api/v1/contracts

Usage and SDK Samples

curl -X POST\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/contracts?num_ap="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContractApi;

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

public class ContractApiExample {

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

public class ContractApiExample {

    public static void main(String[] args) {
        ContractApi apiInstance = new ContractApi();
        ContractRequestSaveDTO body = ; // ContractRequestSaveDTO | 
        Long numAp = 789; // Long | 
        try {
            apiInstance.save(body, numAp);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContractApi#save");
            e.printStackTrace();
        }
    }
}
ContractRequestSaveDTO *body = ; // 
Long *numAp = 789; // 

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

// Adds a new Contract
[apiInstance saveWith:body
    numAp:numAp
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.ContractApi()
var body = ; // {{ContractRequestSaveDTO}} 
var numAp = 789; // {{Long}} 

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

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

            var apiInstance = new ContractApi();
            var body = new ContractRequestSaveDTO(); // ContractRequestSaveDTO | 
            var numAp = 789;  // Long | 

            try
            {
                // Adds a new Contract
                apiInstance.save(body, numAp);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContractApi.save: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiContractApi();
$body = ; // ContractRequestSaveDTO | 
$numAp = 789; // Long | 

try {
    $api_instance->save($body, $numAp);
} catch (Exception $e) {
    echo 'Exception when calling ContractApi->save: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContractApi;

my $api_instance = WWW::SwaggerClient::ContractApi->new();
my $body = WWW::SwaggerClient::Object::ContractRequestSaveDTO->new(); # ContractRequestSaveDTO | 
my $numAp = 789; # Long | 

eval { 
    $api_instance->save(body => $body, numAp => $numAp);
};
if ($@) {
    warn "Exception when calling ContractApi->save: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ContractApi()
body =  # ContractRequestSaveDTO | 
numAp = 789 # Long | 

try: 
    # Adds a new Contract
    api_instance.save(body, numAp)
except ApiException as e:
    print("Exception when calling ContractApi->save: %s\n" % e)

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
num_ap*
Long (int64)
Required

Responses

Status: 201 - Created

Status: 400 - Bad Request

Status: 500 - Internal Error


update

Updates a Contract


/api/v1/contracts

Usage and SDK Samples

curl -X PUT\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/contracts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContractApi;

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

public class ContractApiExample {

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

public class ContractApiExample {

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

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

// Updates a Contract
[apiInstance updateWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.ContractApi()
var body = ; // {{ContractRequestUpdateDTO}} 

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

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

            var apiInstance = new ContractApi();
            var body = new ContractRequestUpdateDTO(); // ContractRequestUpdateDTO | 

            try
            {
                // Updates a Contract
                apiInstance.update(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContractApi.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiContractApi();
$body = ; // ContractRequestUpdateDTO | 

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

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

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

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

try: 
    # Updates a Contract
    api_instance.update(body)
except ApiException as e:
    print("Exception when calling ContractApi->update: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 204 - No Content

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 500 - Internal Error


Payment

findAll

Finds all Payments


/api/v1/payments

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/payments?page=&size=&direction="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

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

public class PaymentApiExample {

    public static void main(String[] args) {
        
        PaymentApi apiInstance = new PaymentApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        String direction = direction_example; // String | 
        try {
            array[Contract] result = apiInstance.findAll(page, size, direction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#findAll");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PaymentApi;

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        String direction = direction_example; // String | 
        try {
            array[Contract] result = apiInstance.findAll(page, size, direction);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#findAll");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; //  (optional) (default to 0)
Integer *size = 56; //  (optional) (default to 12)
String *direction = direction_example; //  (optional) (default to desc)

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

// Finds all Payments
[apiInstance findAllWith:page
    size:size
    direction:direction
              completionHandler: ^(array[Contract] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.PaymentApi()
var opts = { 
  'page': 56, // {{Integer}} 
  'size': 56, // {{Integer}} 
  'direction': direction_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findAll(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new PaymentApi();
            var page = 56;  // Integer |  (optional)  (default to 0)
            var size = 56;  // Integer |  (optional)  (default to 12)
            var direction = direction_example;  // String |  (optional)  (default to desc)

            try
            {
                // Finds all Payments
                array[Contract] result = apiInstance.findAll(page, size, direction);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.findAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPaymentApi();
$page = 56; // Integer | 
$size = 56; // Integer | 
$direction = direction_example; // String | 

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

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $page = 56; # Integer | 
my $size = 56; # Integer | 
my $direction = direction_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
page = 56 # Integer |  (optional) (default to 0)
size = 56 # Integer |  (optional) (default to 12)
direction = direction_example # String |  (optional) (default to desc)

try: 
    # Finds all Payments
    api_response = api_instance.find_all1(page=page, size=size, direction=direction)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->findAll: %s\n" % e)

Parameters

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

Responses

Status: 200 - Success

Status: 500 - Internal Error


findByPaymentDate

Finds all Payments by date


/api/v1/payments/{date}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/payments/{date}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PaymentApi;

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

public class PaymentApiExample {

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

public class PaymentApiExample {

    public static void main(String[] args) {
        PaymentApi apiInstance = new PaymentApi();
        String date = date_example; // String | 
        try {
            array[Contract] result = apiInstance.findByPaymentDate(date);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PaymentApi#findByPaymentDate");
            e.printStackTrace();
        }
    }
}
String *date = date_example; // 

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

// Finds all Payments by date
[apiInstance findByPaymentDateWith:date
              completionHandler: ^(array[Contract] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.PaymentApi()
var date = date_example; // {{String}} 

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

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

            var apiInstance = new PaymentApi();
            var date = date_example;  // String | 

            try
            {
                // Finds all Payments by date
                array[Contract] result = apiInstance.findByPaymentDate(date);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.findByPaymentDate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPaymentApi();
$date = date_example; // String | 

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

my $api_instance = WWW::SwaggerClient::PaymentApi->new();
my $date = date_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.PaymentApi()
date = date_example # String | 

try: 
    # Finds all Payments by date
    api_response = api_instance.find_by_payment_date(date)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentApi->findByPaymentDate: %s\n" % e)

Parameters

Path parameters
Name Description
date*
String
Required

Responses

Status: 200 - Success

Status: 500 - Internal Error


save

Adds a new Payment


/api/v1/payments

Usage and SDK Samples

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

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

public class PaymentApiExample {

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

public class PaymentApiExample {

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

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

// Adds a new Payment
[apiInstance saveWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.PaymentApi()
var body = ; // {{PaymentRequestDTO}} 

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

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

            var apiInstance = new PaymentApi();
            var body = new PaymentRequestDTO(); // PaymentRequestDTO | 

            try
            {
                // Adds a new Payment
                apiInstance.save(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PaymentApi.save: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPaymentApi();
$body = ; // PaymentRequestDTO | 

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

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

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

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

try: 
    # Adds a new Payment
    api_instance.save(body)
except ApiException as e:
    print("Exception when calling PaymentApi->save: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Created

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 500 - Internal Error


Tenant

delete

Deletes a Tenant


/api/v1/tenants/{id}

Usage and SDK Samples

curl -X DELETE\
"http://localhost:8080/api/v1/tenants/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TenantApi;

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

public class TenantApiExample {

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

public class TenantApiExample {

    public static void main(String[] args) {
        TenantApi apiInstance = new TenantApi();
        Long id = 789; // Long | 
        try {
            apiInstance.delete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantApi#delete");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

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

// Deletes a Tenant
[apiInstance deleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.TenantApi()
var id = 789; // {{Long}} 

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

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

            var apiInstance = new TenantApi();
            var id = 789;  // Long | 

            try
            {
                // Deletes a Tenant
                apiInstance.delete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TenantApi.delete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTenantApi();
$id = 789; // Long | 

try {
    $api_instance->delete($id);
} catch (Exception $e) {
    echo 'Exception when calling TenantApi->delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TenantApi;

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

eval { 
    $api_instance->delete(id => $id);
};
if ($@) {
    warn "Exception when calling TenantApi->delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

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

try: 
    # Deletes a Tenant
    api_instance.delete(id)
except ApiException as e:
    print("Exception when calling TenantApi->delete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - No Content

Status: 404 - Not Found

Status: 500 - Internal Error


findAll

Finds all Tenant


/api/v1/tenants

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/tenants?page=&size=&direction=&name=&date=&is_active="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TenantApi;

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

public class TenantApiExample {

    public static void main(String[] args) {
        
        TenantApi apiInstance = new TenantApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        String direction = direction_example; // String | 
        String name = name_example; // String | 
        String date = date_example; // String | 
        Boolean isActive = true; // Boolean | 
        try {
            array[Tenant] result = apiInstance.findAll(page, size, direction, name, date, isActive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantApi#findAll");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TenantApi;

public class TenantApiExample {

    public static void main(String[] args) {
        TenantApi apiInstance = new TenantApi();
        Integer page = 56; // Integer | 
        Integer size = 56; // Integer | 
        String direction = direction_example; // String | 
        String name = name_example; // String | 
        String date = date_example; // String | 
        Boolean isActive = true; // Boolean | 
        try {
            array[Tenant] result = apiInstance.findAll(page, size, direction, name, date, isActive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantApi#findAll");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; //  (optional) (default to 0)
Integer *size = 56; //  (optional) (default to 12)
String *direction = direction_example; //  (optional) (default to desc)
String *name = name_example; //  (optional)
String *date = date_example; //  (optional)
Boolean *isActive = true; //  (optional) (default to true)

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

// Finds all Tenant
[apiInstance findAllWith:page
    size:size
    direction:direction
    name:name
    date:date
    isActive:isActive
              completionHandler: ^(array[Tenant] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.TenantApi()
var opts = { 
  'page': 56, // {{Integer}} 
  'size': 56, // {{Integer}} 
  'direction': direction_example, // {{String}} 
  'name': name_example, // {{String}} 
  'date': date_example, // {{String}} 
  'isActive': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findAll(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new TenantApi();
            var page = 56;  // Integer |  (optional)  (default to 0)
            var size = 56;  // Integer |  (optional)  (default to 12)
            var direction = direction_example;  // String |  (optional)  (default to desc)
            var name = name_example;  // String |  (optional) 
            var date = date_example;  // String |  (optional) 
            var isActive = true;  // Boolean |  (optional)  (default to true)

            try
            {
                // Finds all Tenant
                array[Tenant] result = apiInstance.findAll(page, size, direction, name, date, isActive);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TenantApi.findAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTenantApi();
$page = 56; // Integer | 
$size = 56; // Integer | 
$direction = direction_example; // String | 
$name = name_example; // String | 
$date = date_example; // String | 
$isActive = true; // Boolean | 

try {
    $result = $api_instance->findAll($page, $size, $direction, $name, $date, $isActive);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TenantApi->findAll: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TenantApi;

my $api_instance = WWW::SwaggerClient::TenantApi->new();
my $page = 56; # Integer | 
my $size = 56; # Integer | 
my $direction = direction_example; # String | 
my $name = name_example; # String | 
my $date = date_example; # String | 
my $isActive = true; # Boolean | 

eval { 
    my $result = $api_instance->findAll(page => $page, size => $size, direction => $direction, name => $name, date => $date, isActive => $isActive);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantApi->findAll: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TenantApi()
page = 56 # Integer |  (optional) (default to 0)
size = 56 # Integer |  (optional) (default to 12)
direction = direction_example # String |  (optional) (default to desc)
name = name_example # String |  (optional)
date = date_example # String |  (optional)
isActive = true # Boolean |  (optional) (default to true)

try: 
    # Finds all Tenant
    api_response = api_instance.find_all(page=page, size=size, direction=direction, name=name, date=date, isActive=isActive)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantApi->findAll: %s\n" % e)

Parameters

Query parameters
Name Description
page
Integer (int32)
size
Integer (int32)
direction
String
name
String
date
String
is_active
Boolean

Responses

Status: 200 - Success

Status: 500 - Internal Error


findByCPF

Finds a Tenant

Finds a Tenant by CPF


/api/v1/tenants/by-cpf

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/tenants/by-cpf?cpf="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TenantApi;

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

public class TenantApiExample {

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

public class TenantApiExample {

    public static void main(String[] args) {
        TenantApi apiInstance = new TenantApi();
        String cpf = cpf_example; // String | 
        try {
            array[Tenant] result = apiInstance.findByCPF(cpf);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantApi#findByCPF");
            e.printStackTrace();
        }
    }
}
String *cpf = cpf_example; // 

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

// Finds a Tenant
[apiInstance findByCPFWith:cpf
              completionHandler: ^(array[Tenant] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.TenantApi()
var cpf = cpf_example; // {{String}} 

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

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

            var apiInstance = new TenantApi();
            var cpf = cpf_example;  // String | 

            try
            {
                // Finds a Tenant
                array[Tenant] result = apiInstance.findByCPF(cpf);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TenantApi.findByCPF: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTenantApi();
$cpf = cpf_example; // String | 

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

my $api_instance = WWW::SwaggerClient::TenantApi->new();
my $cpf = cpf_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.TenantApi()
cpf = cpf_example # String | 

try: 
    # Finds a Tenant
    api_response = api_instance.find_by_cpf(cpf)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantApi->findByCPF: %s\n" % e)

Parameters

Query parameters
Name Description
cpf*
String
Required

Responses

Status: 200 - Success

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 500 - Internal Error


findById

Finds a Tenant

Finds a Tenant by ID


/api/v1/tenants/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/tenants/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TenantApi;

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

public class TenantApiExample {

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

public class TenantApiExample {

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

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

// Finds a Tenant
[apiInstance findByIdWith:id
              completionHandler: ^(array[Tenant] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.TenantApi()
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.findById(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new TenantApi();
            var id = 789;  // Long | 

            try
            {
                // Finds a Tenant
                array[Tenant] result = apiInstance.findById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TenantApi.findById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTenantApi();
$id = 789; // Long | 

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

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

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

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

try: 
    # Finds a Tenant
    api_response = api_instance.find_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantApi->findById: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 - Success

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 500 - Internal Error


save

Adds a new Tenant


/api/v1/tenants

Usage and SDK Samples

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

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

public class TenantApiExample {

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

public class TenantApiExample {

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

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

// Adds a new Tenant
[apiInstance saveWith:body
              completionHandler: ^(Tenant output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.TenantApi()
var body = ; // {{Tenant}} 

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

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

            var apiInstance = new TenantApi();
            var body = new Tenant(); // Tenant | 

            try
            {
                // Adds a new Tenant
                Tenant result = apiInstance.save(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TenantApi.save: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTenantApi();
$body = ; // Tenant | 

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

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

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

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

try: 
    # Adds a new Tenant
    api_response = api_instance.save(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantApi->save: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Created

Status: 500 - Internal Error


update

Updates a Tenant


/api/v1/tenants

Usage and SDK Samples

curl -X PUT\
-H "Content-Type: application/json"\
"http://localhost:8080/api/v1/tenants"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TenantApi;

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

public class TenantApiExample {

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

public class TenantApiExample {

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

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

// Updates a Tenant
[apiInstance updateWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ViverBemApiDocumentation = require('viver_bem_api_documentation');

var api = new ViverBemApiDocumentation.TenantApi()
var body = ; // {{TenantsRequestDTO}} 

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

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

            var apiInstance = new TenantApi();
            var body = new TenantsRequestDTO(); // TenantsRequestDTO | 

            try
            {
                // Updates a Tenant
                apiInstance.update(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TenantApi.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTenantApi();
$body = ; // TenantsRequestDTO | 

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

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

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

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

try: 
    # Updates a Tenant
    api_instance.update(body)
except ApiException as e:
    print("Exception when calling TenantApi->update: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 204 - No Content

Status: 404 - Not Found

Status: 500 - Internal Error