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: 4

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: 4

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: 5,124

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...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.4.6(behaviours2.2.1+fusioninventoty 9.4+1.1+applicatifs2.5.0+fields 1.9.1) php7.3 mysql5.6 hebergé sur serveur mutualisé.
TEST GLPI9.5.1   php7.4 mariadb 10.3 ubuntu20.04 ( echec d'install en mutualisé, mais OK en local)

Offline

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

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 5,124

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...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.4.6(behaviours2.2.1+fusioninventoty 9.4+1.1+applicatifs2.5.0+fields 1.9.1) php7.3 mysql5.6 hebergé sur serveur mutualisé.
TEST GLPI9.5.1   php7.4 mariadb 10.3 ubuntu20.04 ( echec d'install en mutualisé, mais OK en local)

Offline

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

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 5,124

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...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.4.6(behaviours2.2.1+fusioninventoty 9.4+1.1+applicatifs2.5.0+fields 1.9.1) php7.3 mysql5.6 hebergé sur serveur mutualisé.
TEST GLPI9.5.1   php7.4 mariadb 10.3 ubuntu20.04 ( echec d'install en mutualisé, mais OK en local)

Offline

Board footer

Powered by FluxBB