GET Locations/{id}

Return the location model for a requested location

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Will return a not found if the location does not below to the company

LocationModel
NameDescriptionTypeAdditional information
Id

integer

Required

Name

string

String length: inclusive between 0 and 100

CompanyId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "companyId": 3
}

application/xml, text/xml

Sample:
<LocationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SalonPartner.Api.Models.Company">
  <CompanyId>3</CompanyId>
  <Id>1</Id>
  <Name>sample string 2</Name>
</LocationModel>