GET api/Staff/Room/{room}

Retrieves staff via the room, where they have their workplace. Return a list of Staff object (Http Status 200). If something is wrong HTTP Status: 400 = Missing or or incorrect parameter. 500 = Some runtime exeption.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
room

Room, where they have their workplace. For example A2304

string

Required

Body Parameters

None.

Response Information

Resource Description

Retrieves staff via the room, where they have their workplace. Return a list of Staff object (Http Status 200). If something is wrong HTTP Status: 400 = Missing or or incorrect parameter. 500 = Some runtime exeption.

Collection of Staff
NameDescriptionTypeAdditional 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.

Mail

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

Sample:
[
  {
    "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
  },
  {
    "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

Sample:
<ArrayOfStaff xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JU.API.Staff.Models">
  <Staff>
    <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>
  <Staff>
    <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>
</ArrayOfStaff>