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 /service/DeleteProductCatalog HTTP/1.1
Host: www.bernhardt.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: String,
label: String,
type: String,
cover: String,
position: 0,
hideB2B: False,
repCustom: False,
createdBy: String,
createdOn: 0001-01-01,
modifiedOn: 0001-01-01,
expiresOn: 0001-01-01,
publishOn: 0001-01-01,
active: False,
vendorId: String,
sections:
[
{
id: String,
catalogId: String,
label: String,
cover: String,
position: 0,
startPageNum: 0,
endPageNum: 0,
pageCount: 0
}
],
tags:
{
String:
[
String
]
},
attributes:
{
layout: String,
offsetPage: String,
height: 0,
width: 0,
firstPageBlank: False
},
layout: String,
width: 0,
height: 0,
firstPageBlank: False,
artboardWidth: 0,
artboardHeight: 0,
artboardPageCount: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: String,
label: String,
type: String,
cover: String,
position: 0,
hideB2B: False,
repCustom: False,
createdBy: String,
createdOn: 0001-01-01,
modifiedOn: 0001-01-01,
expiresOn: 0001-01-01,
publishOn: 0001-01-01,
active: False,
vendorId: String,
sections:
[
{
id: String,
catalogId: String,
label: String,
cover: String,
position: 0,
startPageNum: 0,
endPageNum: 0,
pageCount: 0
}
],
tags:
{
String:
[
String
]
},
attributes:
{
layout: String,
offsetPage: String,
height: 0,
width: 0,
firstPageBlank: False
},
layout: String,
width: 0,
height: 0,
firstPageBlank: False,
artboardWidth: 0,
artboardHeight: 0,
artboardPageCount: 0
}