POST api/PiggyBankDetailsRest/AccountID/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

None.

Body Parameters

Collection of Account
NameDescriptionTypeAdditional information
CustomerID

integer

None.

AccountID

integer

None.

AccountName

string

None.

AccountBalance

integer

None.

AccountType

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CustomerID": 1,
    "AccountID": 2,
    "AccountName": "sample string 3",
    "AccountBalance": 4,
    "AccountType": 5
  },
  {
    "CustomerID": 1,
    "AccountID": 2,
    "AccountName": "sample string 3",
    "AccountBalance": 4,
    "AccountType": 5
  }
]

application/xml, text/xml

Sample:
<ArrayOfAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InnoBank.Models">
  <Account>
    <AccountBalance>4</AccountBalance>
    <AccountID>2</AccountID>
    <AccountName>sample string 3</AccountName>
    <AccountType>5</AccountType>
    <CustomerID>1</CustomerID>
  </Account>
  <Account>
    <AccountBalance>4</AccountBalance>
    <AccountID>2</AccountID>
    <AccountName>sample string 3</AccountName>
    <AccountType>5</AccountType>
    <CustomerID>1</CustomerID>
  </Account>
</ArrayOfAccount>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of PiggyBankDetails
NameDescriptionTypeAdditional information
PiggyBankDetailsId

integer

None.

PiggyBankName

string

None.

PiggyBankAge

string

None.

PiggyBankGender

string

None.

GoalName

string

None.

GoalAmount

integer

None.

AccountID

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PiggyBankDetailsId": 1,
    "PiggyBankName": "sample string 2",
    "PiggyBankAge": "sample string 3",
    "PiggyBankGender": "sample string 4",
    "GoalName": "sample string 5",
    "GoalAmount": 6,
    "AccountID": 7
  },
  {
    "PiggyBankDetailsId": 1,
    "PiggyBankName": "sample string 2",
    "PiggyBankAge": "sample string 3",
    "PiggyBankGender": "sample string 4",
    "GoalName": "sample string 5",
    "GoalAmount": 6,
    "AccountID": 7
  }
]

application/xml, text/xml

Sample:
<ArrayOfPiggyBankDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InnoBank.Models">
  <PiggyBankDetails>
    <AccountID>7</AccountID>
    <GoalAmount>6</GoalAmount>
    <GoalName>sample string 5</GoalName>
    <PiggyBankAge>sample string 3</PiggyBankAge>
    <PiggyBankDetailsId>1</PiggyBankDetailsId>
    <PiggyBankGender>sample string 4</PiggyBankGender>
    <PiggyBankName>sample string 2</PiggyBankName>
  </PiggyBankDetails>
  <PiggyBankDetails>
    <AccountID>7</AccountID>
    <GoalAmount>6</GoalAmount>
    <GoalName>sample string 5</GoalName>
    <PiggyBankAge>sample string 3</PiggyBankAge>
    <PiggyBankDetailsId>1</PiggyBankDetailsId>
    <PiggyBankGender>sample string 4</PiggyBankGender>
    <PiggyBankName>sample string 2</PiggyBankName>
  </PiggyBankDetails>
</ArrayOfPiggyBankDetails>