[Rt-commit] rt branch, 5.0/rest2-take-untake-steal-ticket, repushed

Aaron Trevena ast at bestpractical.com
Tue Sep 22 05:46:51 EDT 2020


The branch 5.0/rest2-take-untake-steal-ticket was deleted and repushed:
       was e76649fdefc23d967114f1f9a95f9f944e41fedd
       now 72106a0623d45435e005c4f18887a80ccc75a91a

1: f6deb2bdbd ! 1: 44ec382b80 Add take/untake/steal endpoints to REST2 API
    @@ -21,6 +21,25 @@
      =head3 Ticket Examples
      
      Below are some examples using the endpoints above.
    +@@
    +         -d '{ "Content": "Testing a comment", "ContentType": "text/plain", "CustomFields": {"Severity": "High"} }'
    +         'https://myrt.com/REST/2.0/ticket/6/comment'
    + 
    ++    # Take a ticket
    ++    curl -X PUT -H "Content-Type: application/json" -u 'root:password'
    ++    'https://myrt.com/REST/2.0/ticket/6/take'
    ++
    ++    # Untake a ticket
    ++    curl -X PUT -H "Content-Type: application/json" -u 'root:password'
    ++    'https://myrt.com/REST/2.0/ticket/6/untake'
    ++
    ++    # Steal a ticket
    ++    curl -X PUT -H "Content-Type: application/json" -u 'root:password'
    ++    'https://myrt.com/REST/2.0/ticket/6/steal'
    ++
    +     # Create an Asset
    +     curl -X POST -H "Content-Type: application/json" -u 'root:password'
    +         -d '{"Name" : "Asset From Rest", "Catalog" : "General assets", "Content" : "Some content"}'
     
     diff --git a/lib/RT/REST2/Resource/Ownership.pm b/lib/RT/REST2/Resource/Ownership.pm
     new file mode 100644
2: e76649fdef = 2: 72106a0623 Add tests for new REST2 take/untake/steal endpoints



More information about the rt-commit mailing list