POST api/masters/getbranches
Request Information
URI Parameters
None.
Body Parameters
GetBranchesRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Header | RequestHeader |
None. |
Request Formats
application/json, text/json
Sample:
{
"Header": {
"Token": "sample string 1",
"IPAddress": "sample string 2"
}
}
application/xml, text/xml
Sample:
<GetBranchesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IndusCover.Entities.Masters.Integration">
<Header xmlns="http://schemas.datacontract.org/2004/07/IndusCover.Entities.Integration">
<IPAddress>sample string 2</IPAddress>
<Token>sample string 1</Token>
</Header>
</GetBranchesRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GetBranchesResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Branches | Collection of Branch |
None. |
|
| Result | Response |
None. |
Response Formats
application/json, text/json
Sample:
{
"Branches": [
{
"BranchID": 1,
"BranchName": "sample string 2",
"IsActive": true
},
{
"BranchID": 1,
"BranchName": "sample string 2",
"IsActive": true
}
],
"Result": {
"Result": 1,
"Messages": [
"sample string 1",
"sample string 2"
],
"TechnicalMessages": [
"sample string 1",
"sample string 2"
]
}
}
application/xml, text/xml
Sample:
<GetBranchesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IndusCover.Entities.Masters.Integration">
<Result xmlns="http://schemas.datacontract.org/2004/07/IndusCover.Entities.Integration">
<Messages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>sample string 1</d3p1:string>
<d3p1:string>sample string 2</d3p1:string>
</Messages>
<Result>1</Result>
<TechnicalMessages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>sample string 1</d3p1:string>
<d3p1:string>sample string 2</d3p1:string>
</TechnicalMessages>
</Result>
<Branches xmlns:d2p1="http://schemas.datacontract.org/2004/07/IndusCover.Entities.Masters">
<d2p1:Branch>
<d2p1:BranchID>1</d2p1:BranchID>
<d2p1:BranchName>sample string 2</d2p1:BranchName>
<d2p1:IsActive>true</d2p1:IsActive>
</d2p1:Branch>
<d2p1:Branch>
<d2p1:BranchID>1</d2p1:BranchID>
<d2p1:BranchName>sample string 2</d2p1:BranchName>
<d2p1:IsActive>true</d2p1:IsActive>
</d2p1:Branch>
</Branches>
</GetBranchesResponse>