OpenAPI definition

AccountController

createAccount


/api/accounts

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/accounts" \
 -d '{
  "balance" : 6.027456183070403,
  "id" : 0,
  "accountNumber" : "accountNumber",
  "accountHolderName" : "accountHolderName"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountControllerApi;

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

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

        // Create an instance of the API class
        AccountControllerApi apiInstance = new AccountControllerApi();
        Account account = ; // Account | 

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

final api_instance = DefaultApi();

final Account account = new Account(); // Account | 

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

import org.openapitools.client.api.AccountControllerApi;

public class AccountControllerApiExample {
    public static void main(String[] args) {
        AccountControllerApi apiInstance = new AccountControllerApi();
        Account account = ; // Account | 

        try {
            Account result = apiInstance.createAccount(account);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountControllerApi#createAccount");
            e.printStackTrace();
        }
    }
}


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

[apiInstance createAccountWith:account
              completionHandler: ^(Account 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.AccountControllerApi()
var account = ; // {Account} 

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

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

            // Create an instance of the API class
            var apiInstance = new AccountControllerApi();
            var account = new Account(); // Account | 

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountControllerApi();
$account = ; // Account | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountControllerApi->new();
my $account = WWW::OPenAPIClient::Object::Account->new(); # Account | 

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

try:
    api_response = api_instance.create_account(account)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountControllerApi->createAccount: %s\n" % e)
extern crate AccountControllerApi;

pub fn main() {
    let account = ; // Account

    let mut context = AccountControllerApi::Context::default();
    let result = client.createAccount(account, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
account *

Responses


deleteAccount


/api/accounts/{id}

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.AccountControllerApi;

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


deposit


/api/accounts/{id}/deposit

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "http://localhost:8080/api/accounts/{id}/deposit?amount=1.2"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountControllerApi;

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

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

        // Create an instance of the API class
        AccountControllerApi apiInstance = new AccountControllerApi();
        Long id = 789; // Long | 
        Double amount = 1.2; // Double | 

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.AccountControllerApi;

public class AccountControllerApiExample {
    public static void main(String[] args) {
        AccountControllerApi apiInstance = new AccountControllerApi();
        Long id = 789; // Long | 
        Double amount = 1.2; // Double | 

        try {
            Account result = apiInstance.deposit(id, amount);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountControllerApi#deposit");
            e.printStackTrace();
        }
    }
}


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

[apiInstance depositWith:id
    amount:amount
              completionHandler: ^(Account 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.AccountControllerApi()
var id = 789; // {Long} 
var amount = 1.2; // {Double} 

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

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

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

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

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

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

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

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

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

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

    let mut context = AccountControllerApi::Context::default();
    let result = client.deposit(id, amount, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Query parameters
Name Description
amount*
Double (double)
Required

Responses


getAccount


/api/accounts/{id}

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.AccountControllerApi;

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

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


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

[apiInstance getAccountWith:id
              completionHandler: ^(Account 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.AccountControllerApi()
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.getAccount(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

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

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

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

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

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

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

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

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

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses


getAllAccounts


/api/accounts

Usage and SDK Samples

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

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

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

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.AccountControllerApi;

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

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


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

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

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

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

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

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

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

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

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

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

pub fn main() {

    let mut context = AccountControllerApi::Context::default();
    let result = client.getAllAccounts(&context).wait();

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

Scopes

Parameters

Responses


transfer


/api/accounts/transfer

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "http://localhost:8080/api/accounts/transfer?fromId=789&toId=789&amount=1.2"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountControllerApi;

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

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

        // Create an instance of the API class
        AccountControllerApi apiInstance = new AccountControllerApi();
        Long fromId = 789; // Long | 
        Long toId = 789; // Long | 
        Double amount = 1.2; // Double | 

        try {
            'String' result = apiInstance.transfer(fromId, toId, amount);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountControllerApi#transfer");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Long fromId = new Long(); // Long | 
final Long toId = new Long(); // Long | 
final Double amount = new Double(); // Double | 

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

import org.openapitools.client.api.AccountControllerApi;

public class AccountControllerApiExample {
    public static void main(String[] args) {
        AccountControllerApi apiInstance = new AccountControllerApi();
        Long fromId = 789; // Long | 
        Long toId = 789; // Long | 
        Double amount = 1.2; // Double | 

        try {
            'String' result = apiInstance.transfer(fromId, toId, amount);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountControllerApi#transfer");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AccountControllerApi *apiInstance = [[AccountControllerApi alloc] init];
Long *fromId = 789; //  (default to null)
Long *toId = 789; //  (default to null)
Double *amount = 1.2; //  (default to null)

[apiInstance transferWith:fromId
    toId:toId
    amount:amount
              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.AccountControllerApi()
var fromId = 789; // {Long} 
var toId = 789; // {Long} 
var amount = 1.2; // {Double} 

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

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

            // Create an instance of the API class
            var apiInstance = new AccountControllerApi();
            var fromId = 789;  // Long |  (default to null)
            var toId = 789;  // Long |  (default to null)
            var amount = 1.2;  // Double |  (default to null)

            try {
                'String' result = apiInstance.transfer(fromId, toId, amount);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccountControllerApi.transfer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountControllerApi();
$fromId = 789; // Long | 
$toId = 789; // Long | 
$amount = 1.2; // Double | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountControllerApi->new();
my $fromId = 789; # Long | 
my $toId = 789; # Long | 
my $amount = 1.2; # Double | 

eval {
    my $result = $api_instance->transfer(fromId => $fromId, toId => $toId, amount => $amount);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccountControllerApi->transfer: $@\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.AccountControllerApi()
fromId = 789 # Long |  (default to null)
toId = 789 # Long |  (default to null)
amount = 1.2 # Double |  (default to null)

try:
    api_response = api_instance.transfer(fromId, toId, amount)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountControllerApi->transfer: %s\n" % e)
extern crate AccountControllerApi;

pub fn main() {
    let fromId = 789; // Long
    let toId = 789; // Long
    let amount = 1.2; // Double

    let mut context = AccountControllerApi::Context::default();
    let result = client.transfer(fromId, toId, amount, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
fromId*
Long (int64)
Required
toId*
Long (int64)
Required
amount*
Double (double)
Required

Responses


updateAccount


/api/accounts/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: */*" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/accounts/{id}" \
 -d '{
  "balance" : 6.027456183070403,
  "id" : 0,
  "accountNumber" : "accountNumber",
  "accountHolderName" : "accountHolderName"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountControllerApi;

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

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

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.AccountControllerApi;

public class AccountControllerApiExample {
    public static void main(String[] args) {
        AccountControllerApi apiInstance = new AccountControllerApi();
        Long id = 789; // Long | 
        Account account = ; // Account | 

        try {
            Account result = apiInstance.updateAccount(id, account);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountControllerApi#updateAccount");
            e.printStackTrace();
        }
    }
}


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

[apiInstance updateAccountWith:id
    account:account
              completionHandler: ^(Account 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.AccountControllerApi()
var id = 789; // {Long} 
var account = ; // {Account} 

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

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

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

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

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

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

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

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

try:
    api_response = api_instance.update_account(id, account)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccountControllerApi->updateAccount: %s\n" % e)
extern crate AccountControllerApi;

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

    let mut context = AccountControllerApi::Context::default();
    let result = client.updateAccount(id, account, &context).wait();

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

Scopes

Parameters

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

Responses


withdraw


/api/accounts/{id}/withdraw

Usage and SDK Samples

curl -X POST \
 -H "Accept: */*" \
 "http://localhost:8080/api/accounts/{id}/withdraw?amount=1.2"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountControllerApi;

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

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

        // Create an instance of the API class
        AccountControllerApi apiInstance = new AccountControllerApi();
        Long id = 789; // Long | 
        Double amount = 1.2; // Double | 

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.AccountControllerApi;

public class AccountControllerApiExample {
    public static void main(String[] args) {
        AccountControllerApi apiInstance = new AccountControllerApi();
        Long id = 789; // Long | 
        Double amount = 1.2; // Double | 

        try {
            Account result = apiInstance.withdraw(id, amount);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountControllerApi#withdraw");
            e.printStackTrace();
        }
    }
}


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

[apiInstance withdrawWith:id
    amount:amount
              completionHandler: ^(Account 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.AccountControllerApi()
var id = 789; // {Long} 
var amount = 1.2; // {Double} 

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

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

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

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

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

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

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

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

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

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

    let mut context = AccountControllerApi::Context::default();
    let result = client.withdraw(id, amount, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Query parameters
Name Description
amount*
Double (double)
Required

Responses