Rt cli/REST interface - roadmap?

I note that there was some mention of cleaning up the REST interface as
a potential SoC project.

I’ve been somewhat stymied here by the REST interface - in particular,
it’s not clear how (or if it’s even possible to) do the following -

rt list -t user ...
- determine user's group membership
- determine/set privileged status
- list group members

Given that the REST interface appears to lean heavily on the
SearchBuilder-provided functionality, it doesn’t look like it might be
overly onerous to tackle this. Currently the paucity of the REST / rt
command-line tool is a bit of a showstopper here, so I’m prepared to
devote some time to this, but obviously I don’t want to do that if the
work’s already happening or likely to happen soon.

So, quick plea for info: what’s the status of this work? Is there a
pre-existing design/plan for the missing bits of the REST interface? (I
can’t see this on the wiki). Is anyone currently doing this or soon to
do it?

Thanks in advance,
jan

jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661 jan's very old home page
Ceci n’est pas une pipe |

Hi Jan,

I maintain RT::Client::REST library[1] which I wrote about a year ago.
It is based on the rt command-line tool but provides OO classes for easy
integration into other tools. If you (or someone) starts to
improve/change/enlarge the server side code, please keep me in the loop
so that I can keep the library updated.

Thank you,

  • Dmitri.
  1. RT-Client-REST-0.51 - talk to RT installation using REST protocol. - metacpan.org

Jan Grant wrote:

Hi Jan,

I maintain RT::Client::REST library[1] which I wrote about a year ago. It is
based on the rt command-line tool but provides OO classes for easy integration
into other tools. If you (or someone) starts to improve/change/enlarge the
server side code, please keep me in the loop so that I can keep the library
updated.

Thank you,

  • Dmitri.
  1. RT-Client-REST-0.51 - talk to RT installation using REST protocol. - metacpan.org

Hi Dmitri. Thanks for the response! - it turns out to be relatively easy
to add the bits I was missing*. I’ll grab a copy of your package and
have a nose through it to try to sort out how to keep the REST additions
in the same flavour as what’s currently there.

Cheers,
jan

  • although the first pass was definitely a hack: just added a quick
    query syntax for user queries that exposed the functionality of
    RT::Users and built on that, etc. It’s enough to get things moving here;
    I’ll try to tidy up and revisit in the light of RT::Client::REST.

jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661 jan's very old home page
If it’s broken really badly - don’t fix it either.