GET User/employeesbybranch?branchid={branchid}
Gets data of all users linked to a branch.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| branchid | decimal number |
Required |
Body Parameters
None.
Response Information
Resource Description
Array of users data received and processed
Collection of User| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
|
| name | string |
None. |
|
| username | string |
None. |
|
| teamname | string |
None. |
|
| teamid | string |
None. |
|
| branches | Collection of Branch |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": "sample string 1",
"name": "sample string 2",
"username": "sample string 3",
"teamname": "sample string 4",
"teamid": "sample string 5",
"branches": [
{
"id": "sample string 1",
"name": "sample string 2",
"ecomm_name": "sample string 3"
},
{
"id": "sample string 1",
"name": "sample string 2",
"ecomm_name": "sample string 3"
}
]
},
{
"id": "sample string 1",
"name": "sample string 2",
"username": "sample string 3",
"teamname": "sample string 4",
"teamid": "sample string 5",
"branches": [
{
"id": "sample string 1",
"name": "sample string 2",
"ecomm_name": "sample string 3"
},
{
"id": "sample string 1",
"name": "sample string 2",
"ecomm_name": "sample string 3"
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sportrick.ApiModel">
<User>
<branches>
<Branch>
<ecomm_name>sample string 3</ecomm_name>
<id>sample string 1</id>
<name>sample string 2</name>
</Branch>
<Branch>
<ecomm_name>sample string 3</ecomm_name>
<id>sample string 1</id>
<name>sample string 2</name>
</Branch>
</branches>
<id>sample string 1</id>
<name>sample string 2</name>
<teamid>sample string 5</teamid>
<teamname>sample string 4</teamname>
<username>sample string 3</username>
</User>
<User>
<branches>
<Branch>
<ecomm_name>sample string 3</ecomm_name>
<id>sample string 1</id>
<name>sample string 2</name>
</Branch>
<Branch>
<ecomm_name>sample string 3</ecomm_name>
<id>sample string 1</id>
<name>sample string 2</name>
</Branch>
</branches>
<id>sample string 1</id>
<name>sample string 2</name>
<teamid>sample string 5</teamid>
<teamname>sample string 4</teamname>
<username>sample string 3</username>
</User>
</ArrayOfUser>