GET api/mbranch/get-branch/{branchId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| branchId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
BranchDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CountryId | integer |
None. |
|
| StateId | integer |
None. |
|
| DistrictId | integer |
None. |
|
| Code | string |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| Countries | Collection of CountryDTO |
None. |
|
| States | Collection of StateDTO |
None. |
|
| DistrictDTOs | Collection of DistrictDTO |
None. |
|
| CountryName | string |
None. |
|
| StateName | string |
None. |
|
| DistrictName | string |
None. |
|
| IsMapped | integer |
None. |
|
| UpdatedBy | string |
None. |
|
| UpdatedDate | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"CountryId": 1,
"StateId": 1,
"DistrictId": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Description": "sample string 4",
"Countries": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
}
],
"States": [
{
"Id": 1,
"CountryId": 1,
"CountryName": "sample string 2",
"CountryCode": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Status": true,
"ISTransaction": true,
"HiddenCountryId": 7,
"Countries": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
}
]
},
{
"Id": 1,
"CountryId": 1,
"CountryName": "sample string 2",
"CountryCode": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Status": true,
"ISTransaction": true,
"HiddenCountryId": 7,
"Countries": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
}
]
}
],
"DistrictDTOs": [
{
"Id": 1,
"StateId": 1,
"StateCode": "sample string 2",
"StateName": "sample string 3",
"CountryId": 1,
"CountryCode": "sample string 4",
"CountryName": "sample string 5",
"Code": "sample string 6",
"Name": "sample string 7",
"Status": true,
"Countries": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
}
],
"States": [
{
"Id": 1,
"CountryId": 1,
"CountryName": "sample string 2",
"CountryCode": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Status": true,
"ISTransaction": true,
"HiddenCountryId": 7,
"Countries": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
}
]
},
{
"Id": 1,
"CountryId": 1,
"CountryName": "sample string 2",
"CountryCode": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Status": true,
"ISTransaction": true,
"HiddenCountryId": 7,
"Countries": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
}
]
}
]
},
{
"Id": 1,
"StateId": 1,
"StateCode": "sample string 2",
"StateName": "sample string 3",
"CountryId": 1,
"CountryCode": "sample string 4",
"CountryName": "sample string 5",
"Code": "sample string 6",
"Name": "sample string 7",
"Status": true,
"Countries": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
}
],
"States": [
{
"Id": 1,
"CountryId": 1,
"CountryName": "sample string 2",
"CountryCode": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Status": true,
"ISTransaction": true,
"HiddenCountryId": 7,
"Countries": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
}
]
},
{
"Id": 1,
"CountryId": 1,
"CountryName": "sample string 2",
"CountryCode": "sample string 3",
"Code": "sample string 4",
"Name": "sample string 5",
"Status": true,
"ISTransaction": true,
"HiddenCountryId": 7,
"Countries": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true
}
]
}
]
}
],
"CountryName": "sample string 5",
"StateName": "sample string 6",
"DistrictName": "sample string 7",
"IsMapped": 8,
"UpdatedBy": "sample string 9",
"UpdatedDate": "sample string 10"
}
application/xml, text/xml
Sample:
<BranchDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.Master">
<Code>sample string 2</Code>
<Countries>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
</Countries>
<CountryId>1</CountryId>
<CountryName>sample string 5</CountryName>
<Description>sample string 4</Description>
<DistrictDTOs>
<DistrictDTO>
<Code>sample string 6</Code>
<Countries>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
</Countries>
<CountryCode>sample string 4</CountryCode>
<CountryId>1</CountryId>
<CountryName>sample string 5</CountryName>
<Id>1</Id>
<Name>sample string 7</Name>
<StateCode>sample string 2</StateCode>
<StateId>1</StateId>
<StateName>sample string 3</StateName>
<States>
<StateDTO>
<Code>sample string 4</Code>
<Countries>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
</Countries>
<CountryCode>sample string 3</CountryCode>
<CountryId>1</CountryId>
<CountryName>sample string 2</CountryName>
<HiddenCountryId>7</HiddenCountryId>
<ISTransaction>true</ISTransaction>
<Id>1</Id>
<Name>sample string 5</Name>
<Status>true</Status>
</StateDTO>
<StateDTO>
<Code>sample string 4</Code>
<Countries>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
</Countries>
<CountryCode>sample string 3</CountryCode>
<CountryId>1</CountryId>
<CountryName>sample string 2</CountryName>
<HiddenCountryId>7</HiddenCountryId>
<ISTransaction>true</ISTransaction>
<Id>1</Id>
<Name>sample string 5</Name>
<Status>true</Status>
</StateDTO>
</States>
<Status>true</Status>
</DistrictDTO>
<DistrictDTO>
<Code>sample string 6</Code>
<Countries>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
</Countries>
<CountryCode>sample string 4</CountryCode>
<CountryId>1</CountryId>
<CountryName>sample string 5</CountryName>
<Id>1</Id>
<Name>sample string 7</Name>
<StateCode>sample string 2</StateCode>
<StateId>1</StateId>
<StateName>sample string 3</StateName>
<States>
<StateDTO>
<Code>sample string 4</Code>
<Countries>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
</Countries>
<CountryCode>sample string 3</CountryCode>
<CountryId>1</CountryId>
<CountryName>sample string 2</CountryName>
<HiddenCountryId>7</HiddenCountryId>
<ISTransaction>true</ISTransaction>
<Id>1</Id>
<Name>sample string 5</Name>
<Status>true</Status>
</StateDTO>
<StateDTO>
<Code>sample string 4</Code>
<Countries>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
</Countries>
<CountryCode>sample string 3</CountryCode>
<CountryId>1</CountryId>
<CountryName>sample string 2</CountryName>
<HiddenCountryId>7</HiddenCountryId>
<ISTransaction>true</ISTransaction>
<Id>1</Id>
<Name>sample string 5</Name>
<Status>true</Status>
</StateDTO>
</States>
<Status>true</Status>
</DistrictDTO>
</DistrictDTOs>
<DistrictId>1</DistrictId>
<DistrictName>sample string 7</DistrictName>
<Id>1</Id>
<IsMapped>8</IsMapped>
<Name>sample string 3</Name>
<StateId>1</StateId>
<StateName>sample string 6</StateName>
<States>
<StateDTO>
<Code>sample string 4</Code>
<Countries>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
</Countries>
<CountryCode>sample string 3</CountryCode>
<CountryId>1</CountryId>
<CountryName>sample string 2</CountryName>
<HiddenCountryId>7</HiddenCountryId>
<ISTransaction>true</ISTransaction>
<Id>1</Id>
<Name>sample string 5</Name>
<Status>true</Status>
</StateDTO>
<StateDTO>
<Code>sample string 4</Code>
<Countries>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
<CountryDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<Status>true</Status>
</CountryDTO>
</Countries>
<CountryCode>sample string 3</CountryCode>
<CountryId>1</CountryId>
<CountryName>sample string 2</CountryName>
<HiddenCountryId>7</HiddenCountryId>
<ISTransaction>true</ISTransaction>
<Id>1</Id>
<Name>sample string 5</Name>
<Status>true</Status>
</StateDTO>
</States>
<UpdatedBy>sample string 9</UpdatedBy>
<UpdatedDate>sample string 10</UpdatedDate>
</BranchDTO>