glpi-project / php-library-glpi

GLPI API Client Library for PHP
https://glpi-project.github.io/php-library-glpi/
GNU General Public License v3.0
25 stars 21 forks source link

Get an itemtype with all sub-items #1

Open btry opened 7 years ago

btry commented 7 years ago

For example: get a computer or a ticket should allow to get linked items and return as answer an object for the main item, and sub objects for linked ones.

Getting sub items must be optional

ajsb85 commented 7 years ago

Hi, @DIOHz0r

The project board show this task is in progress. What is the PR or branch related to this work?

Thanks

DIOHz0r commented 7 years ago

@ajsb85 This fetaure hasn't been implemented.

ajsb85 commented 7 years ago

@DIOHz0r So, could you update all tasks of the project board?

DIOHz0r commented 7 years ago

Hi @ajsb85, I don't have the permission to update the project board. I'll do that when you give me the access.

sebeka commented 6 years ago

As a hint for current situation, for you can already use the getItem()with parameters, like with_softwares , with_tickets ... You only have top add them right after the ID in http-get-style. like: $response = $itemHandler->getItem('Computer', '2?with_softwares=true&expand_dropdowns=true'); https://github.com/glpi-project/glpi/blob/master/apirest.md#get-an-item

ajsb85 commented 6 years ago

Hi, @sebeka yes, it's possible, but it is not a right way. We should propose to parse as number the Item ID and send those params apart.