GET api/subService/{id}/description
Gets the description of a sub service.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The sub service id. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A SubServiceDescriptionViewModel object.
Cyberlogic.eTourism.Domain.ViewModels.SubServices.SubServiceDescriptionViewModelName | Description | Type | Additional information |
---|---|---|---|
SubServiceId | integer |
None. |
|
Name | string |
None. |
|
Descriptions | Collection of Cyberlogic.eTourism.Domain.ViewModels.SubServices.SubServiceSupplierDescriptionViewModel |
None. |
|
Suppliers | Collection of Cyberlogic.eTourism.Domain.ViewModels.Suppliers.SupplierSimpleViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "SubServiceId": 1, "Name": "sample string 2", "Descriptions": [ { "Name": "sample string 1", "Overview": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": { "MainDescription": "sample string 1" } }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": { "MainDescription": "sample string 1" } } ], "Media": { "DefaultImage": { "MainUrl": "sample string 1", "ThumbUrl": "sample string 2" }, "DefaultVideo": "sample string 1", "Images": [ { "MainUrl": "sample string 1", "ThumbUrl": "sample string 2", "Tags": [ "sample string 1", "sample string 2" ], "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] }, { "MainUrl": "sample string 1", "ThumbUrl": "sample string 2", "Tags": [ "sample string 1", "sample string 2" ], "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] } ], "Videos": [ { "MainUrl": "sample string 1", "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] }, { "MainUrl": "sample string 1", "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] } ] }, "SpecificSuppliers": [ { "Id": 1, "Name": "sample string 2" }, { "Id": 1, "Name": "sample string 2" } ] }, { "Name": "sample string 1", "Overview": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": { "MainDescription": "sample string 1" } }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": { "MainDescription": "sample string 1" } } ], "Media": { "DefaultImage": { "MainUrl": "sample string 1", "ThumbUrl": "sample string 2" }, "DefaultVideo": "sample string 1", "Images": [ { "MainUrl": "sample string 1", "ThumbUrl": "sample string 2", "Tags": [ "sample string 1", "sample string 2" ], "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] }, { "MainUrl": "sample string 1", "ThumbUrl": "sample string 2", "Tags": [ "sample string 1", "sample string 2" ], "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] } ], "Videos": [ { "MainUrl": "sample string 1", "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] }, { "MainUrl": "sample string 1", "Description": [ { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" }, { "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" }, "Description": "sample string 1" } ] } ] }, "SpecificSuppliers": [ { "Id": 1, "Name": "sample string 2" }, { "Id": 1, "Name": "sample string 2" } ] } ], "Suppliers": [ { "Id": 1, "Name": "sample string 2" }, { "Id": 1, "Name": "sample string 2" } ] }
text/html
Sample:
{"SubServiceId":1,"Name":"sample string 2","Descriptions":[{"Name":"sample string 1","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":{"MainDescription":"sample string 1"}},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":{"MainDescription":"sample string 1"}}],"Media":{"DefaultImage":{"MainUrl":"sample string 1","ThumbUrl":"sample string 2"},"DefaultVideo":"sample string 1","Images":[{"MainUrl":"sample string 1","ThumbUrl":"sample string 2","Tags":["sample string 1","sample string 2"],"Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]},{"MainUrl":"sample string 1","ThumbUrl":"sample string 2","Tags":["sample string 1","sample string 2"],"Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]}],"Videos":[{"MainUrl":"sample string 1","Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]},{"MainUrl":"sample string 1","Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]}]},"SpecificSuppliers":[{"Id":1,"Name":"sample string 2"},{"Id":1,"Name":"sample string 2"}]},{"Name":"sample string 1","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":{"MainDescription":"sample string 1"}},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":{"MainDescription":"sample string 1"}}],"Media":{"DefaultImage":{"MainUrl":"sample string 1","ThumbUrl":"sample string 2"},"DefaultVideo":"sample string 1","Images":[{"MainUrl":"sample string 1","ThumbUrl":"sample string 2","Tags":["sample string 1","sample string 2"],"Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]},{"MainUrl":"sample string 1","ThumbUrl":"sample string 2","Tags":["sample string 1","sample string 2"],"Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]}],"Videos":[{"MainUrl":"sample string 1","Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]},{"MainUrl":"sample string 1","Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]}]},"SpecificSuppliers":[{"Id":1,"Name":"sample string 2"},{"Id":1,"Name":"sample string 2"}]}],"Suppliers":[{"Id":1,"Name":"sample string 2"},{"Id":1,"Name":"sample string 2"}]}
application/xml, text/xml
Sample:
<SubServiceDescriptionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.SubServices"> <Descriptions> <SubServiceSupplierDescriptionViewModel> <Media xmlns:d4p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d4p1:DefaultImage> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> <d4p1:ThumbUrl>sample string 2</d4p1:ThumbUrl> </d4p1:DefaultImage> <d4p1:DefaultVideo>sample string 1</d4p1:DefaultVideo> <d4p1:Images> <d4p1:ImageViewModel> <d4p1:Description> <d4p1:ImageDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:ImageDescriptionViewModel> <d4p1:ImageDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:ImageDescriptionViewModel> </d4p1:Description> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> <d4p1:Tags xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:string>sample string 1</d7p1:string> <d7p1:string>sample string 2</d7p1:string> </d4p1:Tags> <d4p1:ThumbUrl>sample string 2</d4p1:ThumbUrl> </d4p1:ImageViewModel> <d4p1:ImageViewModel> <d4p1:Description> <d4p1:ImageDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:ImageDescriptionViewModel> <d4p1:ImageDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:ImageDescriptionViewModel> </d4p1:Description> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> <d4p1:Tags xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:string>sample string 1</d7p1:string> <d7p1:string>sample string 2</d7p1:string> </d4p1:Tags> <d4p1:ThumbUrl>sample string 2</d4p1:ThumbUrl> </d4p1:ImageViewModel> </d4p1:Images> <d4p1:Videos> <d4p1:VideoViewModel> <d4p1:Description> <d4p1:VideoDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:VideoDescriptionViewModel> <d4p1:VideoDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:VideoDescriptionViewModel> </d4p1:Description> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> </d4p1:VideoViewModel> <d4p1:VideoViewModel> <d4p1:Description> <d4p1:VideoDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:VideoDescriptionViewModel> <d4p1:VideoDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:VideoDescriptionViewModel> </d4p1:Description> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> </d4p1:VideoViewModel> </d4p1:Videos> </Media> <Name>sample string 1</Name> <Overview> <SubServiceOverviewViewModel> <Description> <MainDescription>sample string 1</MainDescription> </Description> <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d6p1:Id>1</d6p1:Id> <d6p1:InternetCode>sample string 3</d6p1:InternetCode> <d6p1:Name>sample string 2</d6p1:Name> </Language> </SubServiceOverviewViewModel> <SubServiceOverviewViewModel> <Description> <MainDescription>sample string 1</MainDescription> </Description> <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d6p1:Id>1</d6p1:Id> <d6p1:InternetCode>sample string 3</d6p1:InternetCode> <d6p1:Name>sample string 2</d6p1:Name> </Language> </SubServiceOverviewViewModel> </Overview> <SpecificSuppliers xmlns:d4p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Suppliers"> <d4p1:SupplierSimpleViewModel> <d4p1:Id>1</d4p1:Id> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:SupplierSimpleViewModel> <d4p1:SupplierSimpleViewModel> <d4p1:Id>1</d4p1:Id> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:SupplierSimpleViewModel> </SpecificSuppliers> </SubServiceSupplierDescriptionViewModel> <SubServiceSupplierDescriptionViewModel> <Media xmlns:d4p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d4p1:DefaultImage> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> <d4p1:ThumbUrl>sample string 2</d4p1:ThumbUrl> </d4p1:DefaultImage> <d4p1:DefaultVideo>sample string 1</d4p1:DefaultVideo> <d4p1:Images> <d4p1:ImageViewModel> <d4p1:Description> <d4p1:ImageDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:ImageDescriptionViewModel> <d4p1:ImageDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:ImageDescriptionViewModel> </d4p1:Description> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> <d4p1:Tags xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:string>sample string 1</d7p1:string> <d7p1:string>sample string 2</d7p1:string> </d4p1:Tags> <d4p1:ThumbUrl>sample string 2</d4p1:ThumbUrl> </d4p1:ImageViewModel> <d4p1:ImageViewModel> <d4p1:Description> <d4p1:ImageDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:ImageDescriptionViewModel> <d4p1:ImageDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:ImageDescriptionViewModel> </d4p1:Description> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> <d4p1:Tags xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:string>sample string 1</d7p1:string> <d7p1:string>sample string 2</d7p1:string> </d4p1:Tags> <d4p1:ThumbUrl>sample string 2</d4p1:ThumbUrl> </d4p1:ImageViewModel> </d4p1:Images> <d4p1:Videos> <d4p1:VideoViewModel> <d4p1:Description> <d4p1:VideoDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:VideoDescriptionViewModel> <d4p1:VideoDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:VideoDescriptionViewModel> </d4p1:Description> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> </d4p1:VideoViewModel> <d4p1:VideoViewModel> <d4p1:Description> <d4p1:VideoDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:VideoDescriptionViewModel> <d4p1:VideoDescriptionViewModel> <d4p1:Description>sample string 1</d4p1:Description> <d4p1:Language> <d4p1:Id>1</d4p1:Id> <d4p1:InternetCode>sample string 3</d4p1:InternetCode> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:Language> </d4p1:VideoDescriptionViewModel> </d4p1:Description> <d4p1:MainUrl>sample string 1</d4p1:MainUrl> </d4p1:VideoViewModel> </d4p1:Videos> </Media> <Name>sample string 1</Name> <Overview> <SubServiceOverviewViewModel> <Description> <MainDescription>sample string 1</MainDescription> </Description> <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d6p1:Id>1</d6p1:Id> <d6p1:InternetCode>sample string 3</d6p1:InternetCode> <d6p1:Name>sample string 2</d6p1:Name> </Language> </SubServiceOverviewViewModel> <SubServiceOverviewViewModel> <Description> <MainDescription>sample string 1</MainDescription> </Description> <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d6p1:Id>1</d6p1:Id> <d6p1:InternetCode>sample string 3</d6p1:InternetCode> <d6p1:Name>sample string 2</d6p1:Name> </Language> </SubServiceOverviewViewModel> </Overview> <SpecificSuppliers xmlns:d4p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Suppliers"> <d4p1:SupplierSimpleViewModel> <d4p1:Id>1</d4p1:Id> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:SupplierSimpleViewModel> <d4p1:SupplierSimpleViewModel> <d4p1:Id>1</d4p1:Id> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:SupplierSimpleViewModel> </SpecificSuppliers> </SubServiceSupplierDescriptionViewModel> </Descriptions> <Name>sample string 2</Name> <SubServiceId>1</SubServiceId> <Suppliers xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Suppliers"> <d2p1:SupplierSimpleViewModel> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:SupplierSimpleViewModel> <d2p1:SupplierSimpleViewModel> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:SupplierSimpleViewModel> </Suppliers> </SubServiceDescriptionViewModel>