You are not logged in.
We're trying to use GLPI Rest API to get some info into another aplication.
We can "see", select tickets, who is it assigned to,..., however for example for a user we get only the id.
Where or how can we decode the id's we get from the current API (get username from user with id 23)
Is there a way to query (readonly) dropdowns ?
The replies from the API don't return related data, we could check it and "decode" the id's if there was a way.
We're using GLPI 6.5.1.
Is there something we're missing ?
Any help appreciated please.
Pete
Offline
Missed another question sorry,
another thing that we're not getting via the API is the list of which users/technitians that had intervention on a ticket.
If it's possible we'll need to get the team they're into (group/entity/profile ?)
Is there a way to get this ?
Offline
did you try expand_dropdowns=true option ?
http://localhost/glpi95/apirest.php/Ticket/$ticketid/?expand_dropdowns=true
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
to get users group :
http://localhost/glpi95/apirest.php/user/$users_id/Group_user?expand_dropdowns=true
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
to get profiles/entities
http://localhost/glpi95/apirest.php/user/$users_id/Profile_user?expand_dropdowns=true
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