[Rt-commit] rt branch, 5.0/rest2-add-asset-and-transaction-sql-endpoints, repushed

Craig Kaiser craig at bestpractical.com
Fri Mar 5 09:42:14 EST 2021


The branch 5.0/rest2-add-asset-and-transaction-sql-endpoints was deleted and repushed:
       was 15253f85e2b17e375ab5f92f2fc4894df0e23700
       now 6042fbc44bb65c229289b89f55057963f0f5429b

1: fddc958fec = 1: 201a95d9b4 Add RT::REST2::Collection::QueryBySQL role
2: 3eb0917e37 = 2: 0719ed0ada Preserve first_row and show_rows across the CleanSlate
3: bc3c1e62e1 = 3: cf10a86999 Add test for REST2 assetSQL search
4: 90cf24e377 = 4: ca45f91551 Add test for REST2 transactionSQL search
5: 15253f85e2 ! 5: 6042fbc44b Update REST2 docs for TransactionSQL and AssetSQL
    @@ -17,6 +17,19 @@
              search for transactions using L</JSON searches> syntax
      
     @@
    +     GET /transaction/:id
    +         retrieve a transaction
    + 
    ++=head3 Transactions Examples
    ++
    ++    # Search transactions using C<TransactionSQL>
    ++    curl --request GET -u 'root:password'
    ++      "https://myrt.com/REST/2.0/transactions?query=Creator='Dave' AND Type='Correspond'"
    ++
    + =head3 Attachments and Messages
    + 
    +     GET /attachments?query=<JSON>
    +@@
      
      =head3 Assets
      
    @@ -27,3 +40,14 @@
          POST /assets
              search for assets using L</JSON searches> syntax
      
    +@@
    +     -d '[{ "field" : "id", "operator" : ">=", "value" : 0 }]'
    +     'https://myrt.com/REST/2.0/assets'
    + 
    ++    # Search assets using AssetSQL
    ++     curl --request GET -u 'root:password'
    ++      "https://myrt.com/REST/2.0/assets?query=Catalog='General assets' AND 'CF.{Asset Type}' LIKE 'Computer'"
    ++
    + =head3 Catalogs
    + 
    +     GET /catalogs/all



More information about the rt-commit mailing list