GET api/Staff/{Signature}
Gets a Staff object by its signature. Return the Staff object (Http Status 200). If something is wrong HTTP Status: 404 = Staff not find. 400 = Missing or or incorrect parameter. 500 = Some runtime exeption.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Signature |
Staff signature, at least four characters. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Gets a Staff object by its signature. Return the Staff object (Http Status 200). If something is wrong HTTP Status: 404 = Staff not find. 400 = Missing or or incorrect parameter. 500 = Some runtime exeption.
Staff| Name | Description | Type | Additional information |
|---|---|---|---|
| Signature |
User name at Jönköping University |
string |
None. |
| Firstname |
First name |
string |
None. |
| Lastname |
Last name |
string |
None. |
| Mobile |
Mobile number. |
string |
None. |
|
Email Address. |
string |
None. |
|
| RoomName |
Staff office |
string |
None. |
| Photo |
If photo is available and staff approved that it is shown. |
boolean |
None. |
Response Formats
application/json, text/json
{
"Signature": "sample string 1",
"Firstname": "sample string 2",
"Lastname": "sample string 3",
"Mobile": "sample string 4",
"Mail": "sample string 5",
"RoomName": "sample string 6",
"Photo": true
}
application/xml, text/xml
<Staff xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JU.API.Staff.Models"> <Firstname>sample string 2</Firstname> <Lastname>sample string 3</Lastname> <Mail>sample string 5</Mail> <Mobile>sample string 4</Mobile> <Photo>true</Photo> <RoomName>sample string 6</RoomName> <Signature>sample string 1</Signature> </Staff>