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 /featuredspot/book HTTP/1.1
Host: agentapi.myhome.ie
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
UserId: 0,
FeaturedSpot:
{
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
},
ApiKey: String,
CorrelationId: String,
ActiveUserId: 0,
Version: 0,
RequestTypeId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
FeaturedProduct:
{
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
}
}
}