GET api/Client/Users

Gets a list of all users for the current client.

Response Information

Set of UserDTO-Objects

Response body formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Firstname": "sample string 2",
    "Lastname": "sample string 3",
    "EMailAddress": "sample string 4",
    "Gender": "sample string 5",
    "Company": 6,
    "Lunchroom": 7,
    "Dates": [
      "2024-09-19T09:46:55.2774471+02:00",
      "2024-09-19T09:46:55.2774471+02:00",
      "2024-09-19T09:46:55.2774471+02:00"
    ]
  },
  {
    "Id": 1,
    "Firstname": "sample string 2",
    "Lastname": "sample string 3",
    "EMailAddress": "sample string 4",
    "Gender": "sample string 5",
    "Company": 6,
    "Lunchroom": 7,
    "Dates": [
      "2024-09-19T09:46:55.2774471+02:00",
      "2024-09-19T09:46:55.2774471+02:00",
      "2024-09-19T09:46:55.2774471+02:00"
    ]
  },
  {
    "Id": 1,
    "Firstname": "sample string 2",
    "Lastname": "sample string 3",
    "EMailAddress": "sample string 4",
    "Gender": "sample string 5",
    "Company": 6,
    "Lunchroom": 7,
    "Dates": [
      "2024-09-19T09:46:55.2774471+02:00",
      "2024-09-19T09:46:55.2774471+02:00",
      "2024-09-19T09:46:55.2774471+02:00"
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LunchConnection.Models.DTOs">
  <UserDTO>
    <Company>6</Company>
    <Dates xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:dateTime>2024-09-19T09:46:55.2774471+02:00</d3p1:dateTime>
      <d3p1:dateTime>2024-09-19T09:46:55.2774471+02:00</d3p1:dateTime>
      <d3p1:dateTime>2024-09-19T09:46:55.2774471+02:00</d3p1:dateTime>
    </Dates>
    <EMailAddress>sample string 4</EMailAddress>
    <Firstname>sample string 2</Firstname>
    <Gender>sample string 5</Gender>
    <Id>1</Id>
    <Lastname>sample string 3</Lastname>
    <Lunchroom>7</Lunchroom>
  </UserDTO>
  <UserDTO>
    <Company>6</Company>
    <Dates xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:dateTime>2024-09-19T09:46:55.2774471+02:00</d3p1:dateTime>
      <d3p1:dateTime>2024-09-19T09:46:55.2774471+02:00</d3p1:dateTime>
      <d3p1:dateTime>2024-09-19T09:46:55.2774471+02:00</d3p1:dateTime>
    </Dates>
    <EMailAddress>sample string 4</EMailAddress>
    <Firstname>sample string 2</Firstname>
    <Gender>sample string 5</Gender>
    <Id>1</Id>
    <Lastname>sample string 3</Lastname>
    <Lunchroom>7</Lunchroom>
  </UserDTO>
  <UserDTO>
    <Company>6</Company>
    <Dates xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:dateTime>2024-09-19T09:46:55.2774471+02:00</d3p1:dateTime>
      <d3p1:dateTime>2024-09-19T09:46:55.2774471+02:00</d3p1:dateTime>
      <d3p1:dateTime>2024-09-19T09:46:55.2774471+02:00</d3p1:dateTime>
    </Dates>
    <EMailAddress>sample string 4</EMailAddress>
    <Firstname>sample string 2</Firstname>
    <Gender>sample string 5</Gender>
    <Id>1</Id>
    <Lastname>sample string 3</Lastname>
    <Lunchroom>7</Lunchroom>
  </UserDTO>
</ArrayOfUserDTO>