| GET | /articoli/{ArticoloId}/correlati | Recupera gli articoli correlati (in ingresso e in uscita). |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ArticoloId | path | int | Yes | ID dell'articolo di cui cercare le correlazioni. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ArticoliTarget | form | List<ArticoloCorrelatoDto> | No | |
| ArticoliSource | form | List<ArticoloCorrelatoDto> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| SourceId | form | int | No | |
| TargetId | form | int | No | |
| Codice | form | string | No | |
| Descrizione | form | string | No | |
| TipoRelazioneId | form | int | No | |
| TipoRelazioneNome | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}