POST api/UserProfiles/GetUserProfilesFromListOfCompanies

Request Information

URI Parameters

None.

Body Parameters

Collection of string

Request Formats

application/json, text/json

Sample:
[
  "sample string 1",
  "sample string 2"
]

application/xml, text/xml

Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample string 1</string>
  <string>sample string 2</string>
</ArrayOfstring>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of UserProfileViewModel
NameDescriptionTypeAdditional information
Id

string

String length: inclusive between 0 and 128

FirstName

string

String length: inclusive between 0 and 55

LastName

string

String length: inclusive between 0 and 55

Address

string

String length: inclusive between 0 and 100

Gender

string

String length: inclusive between 0 and 22

ImageUrl

string

None.

IsInactive

boolean

None.

IsLocked

boolean

None.

Company

IdTextModel

None.

Country

LocationAddress

None.

User

ValueTextModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "sample string 1",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Address": "sample string 4",
    "Gender": "sample string 5",
    "ImageUrl": "sample string 6",
    "IsInactive": true,
    "IsLocked": true,
    "Company": {
      "Id": 1,
      "Text": "sample string 2"
    },
    "Country": {
      "ImageUrl": "sample string 1",
      "Id": "sample string 2",
      "Name": "sample string 3"
    },
    "User": {
      "Value": "sample string 1",
      "Text": "sample string 2"
    }
  },
  {
    "Id": "sample string 1",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Address": "sample string 4",
    "Gender": "sample string 5",
    "ImageUrl": "sample string 6",
    "IsInactive": true,
    "IsLocked": true,
    "Company": {
      "Id": 1,
      "Text": "sample string 2"
    },
    "Country": {
      "ImageUrl": "sample string 1",
      "Id": "sample string 2",
      "Name": "sample string 3"
    },
    "User": {
      "Value": "sample string 1",
      "Text": "sample string 2"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserProfileViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <UserProfileViewModel>
    <Address>sample string 4</Address>
    <Company>
      <Id>1</Id>
      <Text>sample string 2</Text>
    </Company>
    <Country>
      <Id>sample string 2</Id>
      <Name>sample string 3</Name>
      <ImageUrl>sample string 1</ImageUrl>
    </Country>
    <FirstName>sample string 2</FirstName>
    <Gender>sample string 5</Gender>
    <Id>sample string 1</Id>
    <ImageUrl>sample string 6</ImageUrl>
    <IsInactive>true</IsInactive>
    <IsLocked>true</IsLocked>
    <LastName>sample string 3</LastName>
    <User>
      <Text>sample string 2</Text>
      <Value>sample string 1</Value>
    </User>
  </UserProfileViewModel>
  <UserProfileViewModel>
    <Address>sample string 4</Address>
    <Company>
      <Id>1</Id>
      <Text>sample string 2</Text>
    </Company>
    <Country>
      <Id>sample string 2</Id>
      <Name>sample string 3</Name>
      <ImageUrl>sample string 1</ImageUrl>
    </Country>
    <FirstName>sample string 2</FirstName>
    <Gender>sample string 5</Gender>
    <Id>sample string 1</Id>
    <ImageUrl>sample string 6</ImageUrl>
    <IsInactive>true</IsInactive>
    <IsLocked>true</IsLocked>
    <LastName>sample string 3</LastName>
    <User>
      <Text>sample string 2</Text>
      <Value>sample string 1</Value>
    </User>
  </UserProfileViewModel>
</ArrayOfUserProfileViewModel>