Gemma.WebApi

<back to all web services

GetImmagineRequest

Requires Authentication
The following routes are available for this service:
GET/immagini/{Id}
GetImmagineRequest Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
ImmagineResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ImageContentTypeformstringNo
Imageformbyte[]No
ImageWidthformint?No
ImageHeightformint?No
ThumbnailContentTypeformstringNo
Thumbnailformbyte[]No
ThumbnailWidthformint?No
ThumbnailHeightformint?No
Immagine Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NomeformstringNo
RefCountformintNo
IsCachedformboolNo
DidascaliaCnIdformintNo
UrlformstringNo
ImmagineCollegataIdformintNo
ImmagineCollegataformImmagineNo
TipoImmagineIdformintNo
TipoImmagineformTipoImmagineNo
TipoImmagine Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NomeformstringNo
AltezzaformintNo
LarghezzaformintNo
IsAlphaChannelformboolNo
AlphaColorformstringNo
IsKeyColorformboolNo
KeyColorformstringNo
PosizioneformintNo
AltezzaThumbformintNo
LarghezzaThumbformintNo

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.

GET /immagini/{Id} HTTP/1.1 
Host: gemma.api.kerberos.energy 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	imageContentType: String,
	thumbnailContentType: String,
	nome: String,
	refCount: 0,
	isCached: False,
	didascaliaCnId: 0,
	url: String,
	immagineCollegataId: 0,
	immagineCollegata: 
	{
		id: 0,
		nome: String,
		refCount: 0,
		isCached: False,
		didascaliaCnId: 0,
		url: String,
		immagineCollegataId: 0,
		immagineCollegata: 
		{
			id: 0,
			nome: String,
			refCount: 0,
			isCached: False,
			didascaliaCnId: 0,
			url: String,
			immagineCollegataId: 0,
			immagineCollegata: 
			{
				id: 0,
				nome: String,
				refCount: 0,
				isCached: False,
				didascaliaCnId: 0,
				url: String,
				immagineCollegataId: 0,
				tipoImmagineId: 0,
				tipoImmagine: 
				{
					id: 0,
					nome: String,
					altezza: 0,
					larghezza: 0,
					isAlphaChannel: False,
					alphaColor: String,
					isKeyColor: False,
					keyColor: String,
					posizione: 0,
					altezzaThumb: 0,
					larghezzaThumb: 0
				}
			},
			tipoImmagineId: 0,
			tipoImmagine: 
			{
				id: 0,
				nome: String,
				altezza: 0,
				larghezza: 0,
				isAlphaChannel: False,
				alphaColor: String,
				isKeyColor: False,
				keyColor: String,
				posizione: 0,
				altezzaThumb: 0,
				larghezzaThumb: 0
			}
		},
		tipoImmagineId: 0,
		tipoImmagine: 
		{
			id: 0,
			nome: String,
			altezza: 0,
			larghezza: 0,
			isAlphaChannel: False,
			alphaColor: String,
			isKeyColor: False,
			keyColor: String,
			posizione: 0,
			altezzaThumb: 0,
			larghezzaThumb: 0
		}
	},
	tipoImmagineId: 0,
	tipoImmagine: 
	{
		id: 0,
		nome: String,
		altezza: 0,
		larghezza: 0,
		isAlphaChannel: False,
		alphaColor: String,
		isKeyColor: False,
		keyColor: String,
		posizione: 0,
		altezzaThumb: 0,
		larghezzaThumb: 0
	}
}