Gemma.WebApi

<back to all web services

TestoQuery

Requires Authentication
Required role:Admin
TestoQuery Parameters:
NameParameterData TypeRequiredDescription
Idqueryint?No
IdGreaterThanOrEqualToqueryint?No
IdGreaterThanqueryint?No
IdLessThanqueryint?No
IdLessThanOrEqualToqueryint?No
IdNotEqualToqueryint?No
IdBetweenqueryint[]No
IdInqueryint[]No
TipoTestoIdqueryint?No
TipoTestoIdGreaterThanOrEqualToqueryint?No
TipoTestoIdGreaterThanqueryint?No
TipoTestoIdLessThanqueryint?No
TipoTestoIdLessThanOrEqualToqueryint?No
TipoTestoIdNotEqualToqueryint?No
TipoTestoIdBetweenqueryint[]No
TipoTestoIdInqueryint[]No
TestoVersioneCorrenteIdqueryint?No
TestoVersioneCorrenteIdGreaterThanOrEqualToqueryint?No
TestoVersioneCorrenteIdGreaterThanqueryint?No
TestoVersioneCorrenteIdLessThanqueryint?No
TestoVersioneCorrenteIdLessThanOrEqualToqueryint?No
TestoVersioneCorrenteIdNotEqualToqueryint?No
TestoVersioneCorrenteIdBetweenqueryint[]No
TestoVersioneCorrenteIdInqueryint[]No
TitoloquerystringNo
TitoloStartsWithquerystringNo
TitoloEndsWithquerystringNo
TitoloContainsquerystringNo
TitoloLikequerystringNo
TitoloBetweenquerystring[]No
TitoloInquerystring[]No
Numeroqueryint?No
NumeroGreaterThanOrEqualToqueryint?No
NumeroGreaterThanqueryint?No
NumeroLessThanqueryint?No
NumeroLessThanOrEqualToqueryint?No
NumeroNotEqualToqueryint?No
NumeroBetweenqueryint[]No
NumeroInqueryint[]No
TipoDocumentoIdqueryint?No
TipoDocumentoIdGreaterThanOrEqualToqueryint?No
TipoDocumentoIdGreaterThanqueryint?No
TipoDocumentoIdLessThanqueryint?No
TipoDocumentoIdLessThanOrEqualToqueryint?No
TipoDocumentoIdNotEqualToqueryint?No
TipoDocumentoIdBetweenqueryint[]No
TipoDocumentoIdInqueryint[]No
ArticoloIdqueryint?No
ArticoloIdGreaterThanOrEqualToqueryint?No
ArticoloIdGreaterThanqueryint?No
ArticoloIdLessThanqueryint?No
ArticoloIdLessThanOrEqualToqueryint?No
ArticoloIdNotEqualToqueryint?No
ArticoloIdBetweenqueryint[]No
ArticoloIdInqueryint[]No
IsModelloquerybool?No
DocumentoIdqueryint?No
DocumentoIdGreaterThanOrEqualToqueryint?No
DocumentoIdGreaterThanqueryint?No
DocumentoIdLessThanqueryint?No
DocumentoIdLessThanOrEqualToqueryint?No
DocumentoIdNotEqualToqueryint?No
DocumentoIdBetweenqueryint[]No
DocumentoIdInqueryint[]No
TipoStatoTestoIdqueryint?No
TipoStatoTestoIdGreaterThanOrEqualToqueryint?No
TipoStatoTestoIdGreaterThanqueryint?No
TipoStatoTestoIdLessThanqueryint?No
TipoStatoTestoIdLessThanOrEqualToqueryint?No
TipoStatoTestoIdNotEqualToqueryint?No
TipoStatoTestoIdBetweenqueryint[]No
TipoStatoTestoIdInqueryint[]No
DataApprovazionequeryDateTime?No
DataApprovazioneGreaterThanOrEqualToqueryDateTime?No
DataApprovazioneGreaterThanqueryDateTime?No
DataApprovazioneLessThanqueryDateTime?No
DataApprovazioneLessThanOrEqualToqueryDateTime?No
DataApprovazioneNotEqualToqueryDateTime?No
DataApprovazioneBetweenqueryDateTime[]No
DataApprovazioneInqueryDateTime[]No
UtenteApprovazioneIdqueryint?No
UtenteApprovazioneIdGreaterThanOrEqualToqueryint?No
UtenteApprovazioneIdGreaterThanqueryint?No
UtenteApprovazioneIdLessThanqueryint?No
UtenteApprovazioneIdLessThanOrEqualToqueryint?No
UtenteApprovazioneIdNotEqualToqueryint?No
UtenteApprovazioneIdBetweenqueryint[]No
UtenteApprovazioneIdInqueryint[]No
TagNotificaquerystringNo
TagNotificaStartsWithquerystringNo
TagNotificaEndsWithquerystringNo
TagNotificaContainsquerystringNo
TagNotificaLikequerystringNo
TagNotificaBetweenquerystring[]No
TagNotificaInquerystring[]No
QueryBase Parameters:
NameParameterData TypeRequiredDescription
Skipformint?No
Takeformint?No
OrderByformstringNo
OrderByDescformstringNo
IncludeformstringNo
FieldsformstringNo
MetaformDictionary<string, string>No
Testo Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TipoTestoIdformintNo
TestoVersioneCorrenteIdformintNo
TitoloformstringNo
NumeroformintNo
TipoDocumentoIdformintNo
ArticoloIdformintNo
IsModelloformboolNo
DocumentoIdformintNo
TipoStatoTestoIdformintNo
DataApprovazioneformDateTimeNo
UtenteApprovazioneIdformintNo
TagNotificaformstringNo
QueryResponse<T> Parameters:
NameParameterData TypeRequiredDescription
OffsetformintNo
TotalformintNo
ResultsformList<T>No
MetaformDictionary<string, string>No
ResponseStatusformResponseStatusNo

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 /jsv/reply/TestoQuery HTTP/1.1 
Host: gemma.api.kerberos.energy 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	idGreaterThanOrEqualTo: 0,
	idGreaterThan: 0,
	idLessThan: 0,
	idLessThanOrEqualTo: 0,
	idNotEqualTo: 0,
	idBetween: 
	[
		0
	],
	idIn: 
	[
		0
	],
	tipoTestoId: 0,
	tipoTestoIdGreaterThanOrEqualTo: 0,
	tipoTestoIdGreaterThan: 0,
	tipoTestoIdLessThan: 0,
	tipoTestoIdLessThanOrEqualTo: 0,
	tipoTestoIdNotEqualTo: 0,
	tipoTestoIdBetween: 
	[
		0
	],
	tipoTestoIdIn: 
	[
		0
	],
	testoVersioneCorrenteId: 0,
	testoVersioneCorrenteIdGreaterThanOrEqualTo: 0,
	testoVersioneCorrenteIdGreaterThan: 0,
	testoVersioneCorrenteIdLessThan: 0,
	testoVersioneCorrenteIdLessThanOrEqualTo: 0,
	testoVersioneCorrenteIdNotEqualTo: 0,
	testoVersioneCorrenteIdBetween: 
	[
		0
	],
	testoVersioneCorrenteIdIn: 
	[
		0
	],
	titolo: String,
	titoloStartsWith: String,
	titoloEndsWith: String,
	titoloContains: String,
	titoloLike: String,
	titoloBetween: 
	[
		String
	],
	titoloIn: 
	[
		String
	],
	numero: 0,
	numeroGreaterThanOrEqualTo: 0,
	numeroGreaterThan: 0,
	numeroLessThan: 0,
	numeroLessThanOrEqualTo: 0,
	numeroNotEqualTo: 0,
	numeroBetween: 
	[
		0
	],
	numeroIn: 
	[
		0
	],
	tipoDocumentoId: 0,
	tipoDocumentoIdGreaterThanOrEqualTo: 0,
	tipoDocumentoIdGreaterThan: 0,
	tipoDocumentoIdLessThan: 0,
	tipoDocumentoIdLessThanOrEqualTo: 0,
	tipoDocumentoIdNotEqualTo: 0,
	tipoDocumentoIdBetween: 
	[
		0
	],
	tipoDocumentoIdIn: 
	[
		0
	],
	articoloId: 0,
	articoloIdGreaterThanOrEqualTo: 0,
	articoloIdGreaterThan: 0,
	articoloIdLessThan: 0,
	articoloIdLessThanOrEqualTo: 0,
	articoloIdNotEqualTo: 0,
	articoloIdBetween: 
	[
		0
	],
	articoloIdIn: 
	[
		0
	],
	isModello: False,
	documentoId: 0,
	documentoIdGreaterThanOrEqualTo: 0,
	documentoIdGreaterThan: 0,
	documentoIdLessThan: 0,
	documentoIdLessThanOrEqualTo: 0,
	documentoIdNotEqualTo: 0,
	documentoIdBetween: 
	[
		0
	],
	documentoIdIn: 
	[
		0
	],
	tipoStatoTestoId: 0,
	tipoStatoTestoIdGreaterThanOrEqualTo: 0,
	tipoStatoTestoIdGreaterThan: 0,
	tipoStatoTestoIdLessThan: 0,
	tipoStatoTestoIdLessThanOrEqualTo: 0,
	tipoStatoTestoIdNotEqualTo: 0,
	tipoStatoTestoIdBetween: 
	[
		0
	],
	tipoStatoTestoIdIn: 
	[
		0
	],
	dataApprovazione: 0001-01-01T00:00:00,
	dataApprovazioneGreaterThanOrEqualTo: 0001-01-01T00:00:00,
	dataApprovazioneGreaterThan: 0001-01-01T00:00:00,
	dataApprovazioneLessThan: 0001-01-01T00:00:00,
	dataApprovazioneLessThanOrEqualTo: 0001-01-01T00:00:00,
	dataApprovazioneNotEqualTo: 0001-01-01T00:00:00,
	dataApprovazioneBetween: 
	[
		"0001-01-01T00: 00:00"
	],
	dataApprovazioneIn: 
	[
		"0001-01-01T00: 00:00"
	],
	utenteApprovazioneId: 0,
	utenteApprovazioneIdGreaterThanOrEqualTo: 0,
	utenteApprovazioneIdGreaterThan: 0,
	utenteApprovazioneIdLessThan: 0,
	utenteApprovazioneIdLessThanOrEqualTo: 0,
	utenteApprovazioneIdNotEqualTo: 0,
	utenteApprovazioneIdBetween: 
	[
		0
	],
	utenteApprovazioneIdIn: 
	[
		0
	],
	tagNotifica: String,
	tagNotificaStartsWith: String,
	tagNotificaEndsWith: String,
	tagNotificaContains: String,
	tagNotificaLike: String,
	tagNotificaBetween: 
	[
		String
	],
	tagNotificaIn: 
	[
		String
	],
	skip: 0,
	take: 0,
	orderBy: String,
	orderByDesc: String,
	include: String,
	fields: String,
	meta: 
	{
		String: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	offset: 0,
	total: 0,
	results: 
	[
		{
			id: 0,
			tipoTestoId: 0,
			testoVersioneCorrenteId: 0,
			titolo: String,
			numero: 0,
			tipoDocumentoId: 0,
			articoloId: 0,
			isModello: False,
			documentoId: 0,
			tipoStatoTestoId: 0,
			utenteApprovazioneId: 0,
			tagNotifica: String
		}
	],
	meta: 
	{
		String: String
	},
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}