Open
Bug 2094122
Opened 3 days ago
Updated 14 hours ago
Migrate extension WebService REST resources to native Mojo API
Categories
(bugzilla.mozilla.org :: API, task)
Tracking
()
ASSIGNED
People
(Reporter: xavier.lhour, Assigned: xavier.lhour)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
Part of the REST-to-Mojo migration tracked in bug 2057358.
All core REST resources are now native Mojo controllers. The only routes still served by the legacy REST server (rest.cgi, Bugzilla::WebService::Server::REST) are the ones registered by extensions through the webservice` hook.
Port them to native Mojo controllers (extensions/<Name>/lib/API/V1/*.pm with setup_routes, so the legacy server can be removed afterwards.
Endpoints (9 extensions, 36 routes):
- BugModal (7):
GET /rest/bug_modal/initial_field_values,GET /rest/bug_modal/product_info,GET /rest/bug_modal/edit/<id>,GET /rest/bug_modal/cc/<id>,GET /rest/bug_modal/comment_tags/<id>,PUT /rest/bug_modal/update_comment_tags/<id>,GET /rest/bug_modal/new_product/<id> - Review (8):
GET /rest/review/suggestions[/<bug_id>|/<product>[/<component>]],GET /rest/review/flag_activity[/<flag_id>|/type_name/<name>|/requestee/<login>|/setter/<login>|/type_id/<id>] - ComponentWatching (4):
GETandPOST /rest/component-watching,GETandDELETE /rest/component-watching/<id> - EditComments (4):
GET /rest/editcomments/comment,GETandPUT /rest/editcomments/comment/<id>,PUT /rest/editcomments/revision - MyDashboard (4):
PUT /rest/[mydashboard/]bug_interest_unmark,GET /rest/mydashboard/run_bug_query,GET /rest/mydashboard/run_flag_query,GET /rest/mydashboard/run_last_changes - PhabBugz (4):
GET /rest/phabbugz/check_bug/<rev_id>/<user_id>,GET /rest/phabbugz/check_enter_bug/<product>/<user_id>,GET /rest/phabbugz/bug_revisions/<id>,GET /rest/phabbugz/user/<id> - ProdCompSearch (2):
GET /rest/prod_comp_search/find/<query>,GET /rest/prod_comp_search/frequent - Bitly (2):
GET /rest/bitly/shorten,GET /rest/bitly/list - InvalidBugHelper (1):
POST /rest/invalid_bug_helper/close/<id>
Once this lands, WS_DISPATCH is empty and bug 2081819 can remove rest.cgi, Bugzilla::WebService::Server::REST and JSONRPC.
| Assignee | ||
Updated•3 days ago
|
Updated•3 days ago
|
Assignee: nobody → xavier.lhour
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 1•2 days ago
|
||
(via GitHub webhook, authenticated as shared-secret)
You need to log in
before you can comment on or make changes to this bug.
Description
•