MyHome.ie Data Delivery Service

<back to all web services

SearchFeaturedSpots

Requires Authentication
Required role:Admin
The following routes are available for this service:
GET,POST/featuredproducts/search
SearchFeaturedSpots Parameters:
NameParameterData TypeRequiredDescription
GroupIdsbodyList<int>No
PropertyIdsbodyList<int>No
OrderIdbodyint?No
FeaturedSpotTypeIdsbodyList<int>No
LocalityIdsbodyList<int>No
StartDatebodyDateTime?No
EndDatebodyDateTime?No
PropertyClassIdsbodyList<int>No
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringNo
CorrelationIdformstringNo
ActiveUserIdformint?No
VersionformdoubleNo
RequestTypeIdformintNo
GetFeaturedProductsResponse Parameters:
NameParameterData TypeRequiredDescription
FeaturedProductsformList<FeaturedSpot>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
BaseType Parameters:
NameParameterData TypeRequiredDescription
VersionformdoubleNo
FeaturedSpot Parameters:
NameParameterData TypeRequiredDescription
FeaturedSpotIdformintNo
FeaturedSpotTypeIdformintNo
ProductIdformintNo
OrderIdformintNo
GroupIdformintNo
PropertyIdformint?No
StartDateformDateTimeNo
EndDateformDateTime?No
LocalityIdformint?No
PropertyClassIdformint?No
CreatedByUserIdformintNo
CreatedOnformDateTimeNo
ModifiedOnformDateTimeNo
EventStartsOnformDateTime?No
EventEndsOnformDateTime?No
CustomJsonformstringNo
MinPriceformdecimal?No
MaxPriceformdecimal?No
MinBedsformshort?No
MaxBedsformshort?No
PropertyTypeIdformint?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /featuredproducts/search HTTP/1.1 
Host: agentapi.myhome.ie 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	GroupIds: 
	[
		0
	],
	PropertyIds: 
	[
		0
	],
	OrderId: 0,
	FeaturedSpotTypeIds: 
	[
		0
	],
	LocalityIds: 
	[
		0
	],
	StartDate: 0001-01-01,
	EndDate: 0001-01-01,
	PropertyClassIds: 
	[
		0
	],
	ApiKey: String,
	CorrelationId: String,
	ActiveUserId: 0,
	Version: 0,
	RequestTypeId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	FeaturedProducts: 
	[
		{
			FeaturedSpotId: 0,
			FeaturedSpotTypeId: 0,
			ProductId: 0,
			OrderId: 0,
			GroupId: 0,
			PropertyId: 0,
			StartDate: 0001-01-01,
			EndDate: 0001-01-01,
			LocalityId: 0,
			PropertyClassId: 0,
			CreatedByUserId: 0,
			CreatedOn: 0001-01-01,
			ModifiedOn: 0001-01-01,
			EventStartsOn: 0001-01-01,
			EventEndsOn: 0001-01-01,
			CustomJson: String,
			MinPrice: 0,
			MaxPrice: 0,
			MinBeds: 0,
			MaxBeds: 0,
			PropertyTypeId: 0
		}
	],
	Version: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}