Read
GET
GET risorsa ById
Per effettuare una lettura di una risorsa per chiave, occorre richiedere in GET la risorsa specificando l’id/chiave:
- La configurazione della richiesta HTTP come GET.
La risposta ottenuta, è composta da:
status:200.headers: informazioni sulla risposta ottenuta.body: il contenuto vero e proprio della risposta, in formato JSON.
GET: es. tse.smart-api.teamsystem.cloud/api/{product}/{version}/company/{defaultCompany}/{module}/{resource}/{id}
Parametri
- id: codice identificativo della risorsa da leggere
Codici risposta
200: l'oggetto{risorsa}DTOrichiesto404: se l'oggetto non è stato trovato
GET risorsa
Per effettuare una lettura di tutti i record di una risorsa è sufficiente chiamare il servizio.
- La configurazione della richiesta HTTP come GET.
La risposta ottenuta, è composta da:
status:200.headers: informazioni sulla risposta ottenuta.body: il contenuto vero e proprio della risposta, in formato JSON un array della singola risorsa.
GET: tse.smart-api.teamsystem.cloud/api/{product}/v1/company/{defaultCompany}/{module}/{resources}
curl -X 'GET' \
'https://tse.smart-api.teamsystem.cloud/api/tse10/v1/company/1/document/orders?fields=document-id%2Cregistry-date%2Cdocument-number%2Cdocument-date&document-number=00001®istration-number=202100000128&document-date=2025-10-10§ional=00&pagecount=5&pageposition=0&orderby=document-number&user=admin' \
-H 'accept: application/json' \
-H 'accept-language: it-IT'
Parametri
$filter: Espressione OData che usa i campi dell’entità per recuperare un sottoinsieme dei risultati. Per ulteriori dettagli sull'utilizzo del linguaggio è possibile trovare informazioni in Link.
L'implementazione dei filtri OData ad oggi supporta i seguenti operatiori:
- eq - equal: $filter=
nomecampo eq xxxxxx; - ne - not equal: $filter=
nomecampo ne xxxxxx; - gt - greater than: $filter=
nomecampo gt xxxxxx) - ge - greater than or equal: $filter=
nomecampo ge xxxxxx; - lt - less than: $filter=
nomecampo lt xxxxxx; - le - less than or equal: $filter=
nomecampo le xxxxxx; - and - logical and: $filter=
condizione1 and condizione2; - or - logical or: $filter=
condizione1 or condizione2; - not - logical not: $filter=
not condizione; - contains() - contains: $filter=
contains(nomecampo, 'valore'); - startswith() - starts with: $filter=
startswith(nomecampo, 'valore'); - endwith() - ends with: $filter=
endwith(nomecampo, 'valore');
Codici risposta
200: l'oggetto{risorsa}DTOrichiesto404: se l'oggetto non è stato trovato