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 /immagini HTTP/1.1
Host: gemma.api.kerberos.energy
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
nome: String,
immagine: AA==,
thumb: AA==,
tipoImmagineId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
rowsAffected: 0,
imageWidth: 0,
imageHeight: 0,
thumbnailWidth: 0,
thumbnailHeight: 0
}