Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Nella versione FULL si possono usare soltanto i parametri contrassegnati da asterisco, in quanto gli altri vengono ignorati.

Campi per l'ordinamento: id id, pid, name, startDate, lastModified

Parametri della query REST

All parameters marked with a "*" can be used as an identifier to get a single resource as explained in this section
In FULL version only "starred" query parameters are usable: the other are silently ignored 
Available sort fields: id, pid, name, startDate, lastModified

Request Query Parameters
parametervaluedescription
parametrovaloredescrizione

*id

string

a String containing the ID of the item. See response for values

Stringa contenente l'ID dell'elemento

*pid

string

a String containing the persistent identifier. See response for values

Stringa contenente l'identificatore persistente

*idAb

string

a String containing the idAb number of the item given by

Stringa contenente l'IdAb dell'elemento assegnato da U-GOV

. See response for values

*sourceId

string

a String containing the sourceId of the item given by third parties application. See response for values

Stringa contenente il sourceId dell'elemento dato da altre applicazioni

name

string

a String containing the description of the item. "*" character can be used. See response for values

Examples:

Stringa contenente la descrizione dell'elemento. Si può usare anche il carattere asterisco "*"

ESEMPI:

Per recuperare tutti gli elementi: To search all Item


					https://arts.units.it<iris-host>/gw/rest/api/libraries

					

To search Item with ID like 123456Per trovare l'item con ID pari a 123456:


					https://arts.units.it<iris-host>/gw/rest/api/libraries?id=123456

					

To search Item with idAb like 123456Per trovare l'item idAb pari a 123456:


					https://arts.units.it<iris-host>/gw/rest/api/libraries?idAb=123456
					

To search Item with name like Per trovare l'elemento Scienze:


					https://arts.units.it<iris-host>/gw/rest/api/libraries?name=Scienze

					

...

Sono disponibili le seguenti risposte:

BASE OUTPUT: https://

...

<iris-host>/gw/rest/api/libraries/id=12345

...

Code Block
themeEclipse
titleBiblioteche: risposta base
linenumberstrue
collapsetrue
{
    "id": 1727,
    "displayValue": "ex-BIBLIOTECA CENTRALE",
    "sourceId": "1112",
    "idAb": "112079"
}

FULL OUTPUT: https://

...

<iris-host>/gw/rest/api/libraries;full/id=12345

...

 

Code Block
themeEclipse
titleBiblioteche: risposta FULL
linenumberstrue
collapsetrue
{
    "uid": "organizationUnit-1727",
    "id": 1727,
    "discriminator": "organizationUnit",
    "displayValue": "ex-BIBLIOTECA CENTRALE",
    "lastModified": "2015-12-30T00:00:00",
    "sourceType": "STRUTTURE",
    "sourceId": "1112",
    "idAb": "112079",
    "organizationUnitType": {
        "description": "library",
        "id": 154
    },
    "description": "ex-BIBLIOTECA CENTRALE",
    "sourceSubtype": "BIB",
    "abbreviation": "BIBLIOTECA CENTRALE"
}