Gemma.WebApi

<back to all web services

PostImmagineRequest

Requires Authentication
The following routes are available for this service:
POST/immagini
PostImmagineRequest Parameters:
NameParameterData TypeRequiredDescription
NomebodystringNo
Immaginebodybyte[]No
Thumbbodybyte[]No
TipoImmagineIdbodyintNo
PostImmagineResponse Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
PatchImmagineResponse Parameters:
NameParameterData TypeRequiredDescription
RowsAffectedformintNo
ImageWidthformint?No
ImageHeightformint?No
ThumbnailWidthformint?No
ThumbnailHeightformint?No

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"nome":"String","immagine":"AA==","thumb":"AA==","tipoImmagineId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":0,"rowsAffected":0,"imageWidth":0,"imageHeight":0,"thumbnailWidth":0,"thumbnailHeight":0}