Gemma.WebApi

<back to all web services

GetArticoliCorrelati

Articoli
Requires Authentication
The following routes are available for this service:
GET/articoli/{ArticoloId}/correlatiRecupera gli articoli correlati (in ingresso e in uscita).
GetArticoliCorrelati Parameters:
NameParameterData TypeRequiredDescription
ArticoloIdpathintYesID dell'articolo di cui cercare le correlazioni.
ArticoliCorrelatiResponse Parameters:
NameParameterData TypeRequiredDescription
ArticoliTargetformList<ArticoloCorrelatoDto>No
ArticoliSourceformList<ArticoloCorrelatoDto>No
ResponseStatusformResponseStatusNo
ArticoloCorrelatoDto Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
SourceIdformintNo
TargetIdformintNo
CodiceformstringNo
DescrizioneformstringNo
TipoRelazioneIdformintNo
TipoRelazioneNomeformstringNo

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 /articoli/{ArticoloId}/correlati HTTP/1.1 
Host: gemma.api.kerberos.energy 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	articoliTarget: 
	[
		{
			id: 0,
			sourceId: 0,
			targetId: 0,
			codice: String,
			descrizione: String,
			tipoRelazioneId: 0,
			tipoRelazioneNome: String
		}
	],
	articoliSource: 
	[
		{
			id: 0,
			sourceId: 0,
			targetId: 0,
			codice: String,
			descrizione: String,
			tipoRelazioneId: 0,
			tipoRelazioneNome: String
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}