GET api/Teams
Gets all teams that the authenticated employee is allowed to see.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
An Http response message with the following status codes: 200 = success (includes the list of teams that can be empty), 400 = bad request (the request is malformed or with invalid data), 500 = something went wrong (the request was not processed).
Collection of SimpleTeam| Name | Description | Type | Additional information |
|---|---|---|---|
| TeamId | integer |
None. |
|
| TeamName | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"TeamId": 1,
"TeamName": "sample string 2"
},
{
"TeamId": 1,
"TeamName": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfSimpleTeam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO">
<SimpleTeam>
<TeamId>1</TeamId>
<TeamName>sample string 2</TeamName>
</SimpleTeam>
<SimpleTeam>
<TeamId>1</TeamId>
<TeamName>sample string 2</TeamName>
</SimpleTeam>
</ArrayOfSimpleTeam>