GET api/company/{id}/details
Gets company details.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The company id. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
An object of type CompanyViewModel.
Cyberlogic.eTourism.Domain.ViewModels.Shared.CompanyViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
LocationDetails | Cyberlogic.eTourism.Domain.ViewModels.Shared.CompanyViewModel+LocationDetailsViewModel |
None. |
|
ContactDetails | Cyberlogic.eTourism.Domain.ViewModels.Shared.CompanyViewModel+ContactDetailsViewModel |
None. |
|
TaxDetails | Cyberlogic.eTourism.Domain.ViewModels.Shared.CompanyViewModel+TaxDetailsViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2", "LocationDetails": { "Address": "sample string 1", "Area": "sample string 2" }, "ContactDetails": { "Telephone1": "sample string 1", "Telephone2": "sample string 2", "Fax": "sample string 3", "Email": "sample string 4" }, "TaxDetails": { "TaxCode": "sample string 1", "TaxOffice": "sample string 2" } }
text/html
Sample:
{"Id":1,"Name":"sample string 2","LocationDetails":{"Address":"sample string 1","Area":"sample string 2"},"ContactDetails":{"Telephone1":"sample string 1","Telephone2":"sample string 2","Fax":"sample string 3","Email":"sample string 4"},"TaxDetails":{"TaxCode":"sample string 1","TaxOffice":"sample string 2"}}
application/xml, text/xml
Sample:
<CompanyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <ContactDetails> <Email>sample string 4</Email> <Fax>sample string 3</Fax> <Telephone1>sample string 1</Telephone1> <Telephone2>sample string 2</Telephone2> </ContactDetails> <Id>1</Id> <LocationDetails> <Address>sample string 1</Address> <Area>sample string 2</Area> </LocationDetails> <Name>sample string 2</Name> <TaxDetails> <TaxCode>sample string 1</TaxCode> <TaxOffice>sample string 2</TaxOffice> </TaxDetails> </CompanyViewModel>