Skip to content

Commit da93a23

Browse files
committed
Added to the ticket api interface
1 parent 235550b commit da93a23

8 files changed

Lines changed: 737 additions & 24 deletions

File tree

api/http.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
require_once INCLUDE_DIR."class.dispatcher.php";
1919
$dispatcher = patterns('',
2020
url_post("^/tickets\.(?P<format>xml|json|email)$", array('api.tickets.php:TicketApiController','create')),
21+
url_get("^/tickets\.(?P<format>xml|json)$", array('api.tickets.php:TicketApiController','getTickets')),
22+
url_get("^/tickets/(?P<id>\d+)\.(?P<format>xml|json)$", array('api.tickets.php:TicketApiController','getTicket')),
23+
url_post("^/tickets/(?P<id>\d+)/add_thread\.(?P<format>xml|json)$", array('api.tickets.php:TicketApiController','addThread')),
24+
url_get("^/tickets/number/(?P<number>[^/]+)\.(?P<format>xml|json)$", array('api.tickets.php:TicketApiController','getTicketByNumber')),
2125
url('^/tasks/', patterns('',
2226
url_post("^cron$", array('api.cron.php:CronApiController', 'execute'))
2327
))

0 commit comments

Comments
 (0)