Exploring Accounts Resource in API
Overview
The Accounts resource is a RESTful API endpoint responsible for handling various account-related operations. It provides methods to create, retrieve, update, and delete account information. The resource is annotated with the path "/account" and extends the HBankDataAccess
Creating an Account
The createAccountExternal
Retrieving Account Details
The getAccountExternal
The getAccountExternal
@GET
@Path
getAccountInternal
@GET
@Path("/{accountNumber}")
@Produces("application/json")
public Response getAccountExternal(
@PathParam("accountNumber") Long accountNumber)
{
/** This will list one single account of the specified number. */
logger.entering(this.getClass().getName(),
"getAccountExternal(Long accountNumber)");
Response myResponse = getAccountInternal(accountNumber);
HBankDataAccess myHBankDataAccess = new HBankDataAccess();
myHBankDataAccess.terminate();
logger.exiting(this.getClass().getName(),
"getAccountExternal(Long accountNumber)", myResponse);
return myResponse;
}
Listing Accounts by Customer
The getAccountsByCustomerExternal
Updating Account Details
The updateAccountExternal
Deleting an Account
The deleteAccountExternal
This is an auto-generated document by Swimm 🌊 and has not yet been verified by a human