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 2017-12-08 15:50:47

lus
Member
Registered: 2017-12-08
Posts: 2

REST API not Stateless

I’m currently having an Issue with the REST API. The GLPI REST API is not stateless and is therefore not compatible with REST API Clients.
https://en.wikipedia.org/wiki/Represent … telessness

I would like to use the REST API with PocketQuery.
https://marketplace.atlassian.com/plugi … r/overview

Sadly this is not possible as I would have to retrieve a Session-Token to request Data from the API.
https://github.com/glpi-project/glpi/bl … it-session


Has there anyone a solution for this Issue to make the REST API stateless? I had multiple ideas how to achieve this. For example I thought about a wrapper for the API. Maybe someone already found a solution to this issue or is this on the GLPI Roadmap to fix this issue?

Help is appreciated.

Offline

#2 2017-12-12 13:13:48

lus
Member
Registered: 2017-12-08
Posts: 2

Re: REST API not Stateless

I have no solution to this problem yet. Still I would like to share my workaround.
I switched to using mysql. For this I added the mysql driver to my confluence and make a direct jdbc connection to the DB and run SQL Querys.

I still have a interest in the API fixed / stateless. If you found a better solution please share it.

Offline

Board footer

Powered by FluxBB