GET api/Users/{id}/company

Gets the default company for the given user.

Request Information

Parameters

NameDescriptionAdditional information
id
Id of the user

Define this parameter in the request URI.

Response Information

Object with relevant company informations.

Response body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2"
}

application/xml, text/xml

Sample:
<CompanyDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LunchConnection.Models.DTOs">
  <Id>1</Id>
  <Name>sample string 2</Name>
</CompanyDTO>