GET api/Staff?filter={filter}

Gets staff that matches the selection filter. 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
filter

Can be any of the first name, last name, signature or phone. Or a combination of these. If there are several separate with spaces% 20. For example, you can search filter=joakim%20andersson. If empty, all personnel are returned. The recommendation is that you always have at least 3 characters in search (long response times otherwise) Note that if there are exactly two values in the filer, it will be assumed to be first and last name. Note

string

Required

Body Parameters

None.

Response Information

Resource Description

Gets staff that matches the selection filter. 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>