You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2021-05-15 15:39:34

aziz
Member
Registered: 2021-03-30
Posts: 109

add criteria to get request

i'm using this url to get the tickets :https://xxxxx.with6.glpi-network.cloud/apirest.php/ticket/?session_token=n4jmnv9g4vj12p9q59xxxxxx
but they come order by id . how can i add a criteria to get them ordered with the most recent date at top (last update date )
Thanks a lot smile

Offline

#2 2021-05-17 01:29:19

aziz
Member
Registered: 2021-03-30
Posts: 109

Re: add criteria to get request

aucune réponse personne ne sait pas  comment il faut faire ?

Last edited by aziz (2021-05-17 01:29:35)

Offline

#3 2021-05-17 04:31:07

bastien
Member
Registered: 2008-09-07
Posts: 32

Re: add criteria to get request

Bonjour,

Dans les ressources il y a pas mal d'infos https://xxxxx.with6.glpi-network.cloud/ … arch-items

Offline

#4 2021-05-18 11:00:08

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: add criteria to get request

use this url
http://Myserver/glpi/apirest.php/search/Ticket/?is_deleted=0&as_map=0&sort=19&order=DESC


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

Board footer

Powered by FluxBB