[Bps-public-commit] rt-extension-rest2 branch, rest2-additional-docs, created. 1.01-1-gf26f050

Craig Kaiser craig at bestpractical.com
Tue Jan 9 13:56:22 EST 2018


The branch, rest2-additional-docs has been created
        at  f26f050010546aece364a6f1faaaf7def1535ab6 (commit)

- Log -----------------------------------------------------------------
commit f26f050010546aece364a6f1faaaf7def1535ab6
Author: Craig Kaiser <craig at bestpractical.com>
Date:   Tue Jan 9 13:55:31 2018 -0500

    Add examples of complex ticket queries for docs

diff --git a/lib/RT/Extension/REST2.pm b/lib/RT/Extension/REST2.pm
index b7e2a7b..c2144ff 100644
--- a/lib/RT/Extension/REST2.pm
+++ b/lib/RT/Extension/REST2.pm
@@ -254,6 +254,9 @@ controls available in response bodies rather than hardcoding URLs.
 
     GET /tickets?query=<TicketSQL>
         search for tickets using TicketSQL
+         Ex. /REST/2.0/tickets?query=Status="open"'
+         Ex. /REST/2.0/tickets?query=CF.{MyCustomField}="True"'
+         Ex. curl -G --data-urlencode "query=id=1 AND Status='new'" -u 'root:password' 'myRT...REST/2.0/tickets'
 
     GET /tickets?simple=1;query=<simple search query>
         search for tickets using simple search syntax

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list