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 2020-09-08 14:33:02

peteredhair
Member
Registered: 2019-11-13
Posts: 6

Missing API Features or lack of how to knowledge

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

#2 2020-09-08 14:50:20

peteredhair
Member
Registered: 2019-11-13
Posts: 6

Re: Missing API Features or lack of how to knowledge

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

#3 2020-09-13 12:12:10

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

Re: Missing API Features or lack of how to knowledge

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.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#4 2020-09-13 12:18:50

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

Re: Missing API Features or lack of how to knowledge

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.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#5 2020-09-13 12:21:33

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

Re: Missing API Features or lack of how to knowledge

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.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

Board footer

Powered by FluxBB