POST api/Branch/PostBranch

Request Information

URI Parameters

None.

Body Parameters

BranchModel
NameDescriptionTypeAdditional information
TableBranchID

integer

None.

BranchID

globally unique identifier

None.

BranchName

string

None.

BranchOwner

string

None.

BranchMobile

string

None.

BranchProvince

string

None.

BranchCity

string

None.

BranchDataSource

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TableBranchID": 1,
  "BranchID": "e604c914-721c-4bd7-9447-21f012a5cec4",
  "BranchName": "sample string 2",
  "BranchOwner": "sample string 3",
  "BranchMobile": "sample string 4",
  "BranchProvince": "sample string 5",
  "BranchCity": "sample string 6",
  "BranchDataSource": "sample string 7"
}

application/xml, text/xml

Sample:
<BranchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ReportingServiceApi.Models.DominModels">
  <BranchCity>sample string 6</BranchCity>
  <BranchDataSource>sample string 7</BranchDataSource>
  <BranchID>e604c914-721c-4bd7-9447-21f012a5cec4</BranchID>
  <BranchMobile>sample string 4</BranchMobile>
  <BranchName>sample string 2</BranchName>
  <BranchOwner>sample string 3</BranchOwner>
  <BranchProvince>sample string 5</BranchProvince>
  <TableBranchID>1</TableBranchID>
</BranchModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiGuidResponseModel
NameDescriptionTypeAdditional information
BranchID

string

None.

LastReceiptInsertedDate

string

None.

ResponseCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "BranchID": "sample string 1",
  "LastReceiptInsertedDate": "sample string 2",
  "ResponseCode": 3
}

application/xml, text/xml

Sample:
<ApiGuidResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ReportingServiceApi.Models">
  <BranchID>sample string 1</BranchID>
  <LastReceiptInsertedDate>sample string 2</LastReceiptInsertedDate>
  <ResponseCode>3</ResponseCode>
</ApiGuidResponseModel>