TrustablePerimeter
An action to withdraw money from an account
Uniform Resource Locator: /account/withdraw
Method: POST
Parameters:
id - id of an account
amount - amount of money to withdraw
Unless you specify all the arguments, calling this action will throw an exception
This action shows customer(s) data.
Uniform Resource Locator: /customers
Method: POST
Parameters:
id - id of a customer
If you don't specify the id parameter, this action will return every customer in the database
This action shows account(s) data.
Uniform Resource Locator: /accounts
Method: POST
Parameters:
id - id of an account
If you don't specify the id parameter, this action will return every account in the database
This action creates or updates a customer.
Uniform Resource Locator: /customer/create
Method: POST
Parameters:
id - id of a customer
name - name of the customer
account - account id that belong to the customer
If a customer in the database already has the same id, data from the request will replace data in the database
This action creates or updates an account.
Uniform Resource Locator: /account/create
Method: POST
Parameters:
id - id of a customer
customer - id of the customer that the account belongs to
If an account in the database already has the same id, data from the request will replace data in the database