Closed Bug 958057 Opened 12 years ago Closed 12 years ago

REST API - No example of non-rewrite endpoint in POD docs, no config directions for how to create rewrite

Categories

(Bugzilla :: WebService, defect)

4.5.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: justdave, Assigned: dkl)

Details

Attachments

(1 file)

The "CONNECTING" section in the POD docs for Bugzilla::WebService::Server::REST currently shows the following: >The endpoint for the REST interface is the rest.cgi script in your Bugzilla >installation. If using Apache and mod_rewrite is installed and enabled, you can >also use /rest/ as your endpoint. For example, if your Bugzilla is at >bugzilla.yourdomain.com, then your REST client would access the API via: >http://bugzilla.yourdomain.com/rest/bug/35 which looks cleaner. 1) What does an example URL look like if you're not using mod_rewrite? 2) How do I configure mod_rewrite if I want to use it? (What RewriteRule would I add?)
I note that I can't really come up with my own RewriteRule if I don't know what the URL looks like without it that it needs to rewrite to. rest.cgi/bug/35 ? rest.cgi?method=bug&params={id:35} ?
Good point. Patch coming.
Assignee: webservice → dkl
Status: NEW → ASSIGNED
Attached patch 958057_1.patchSplinter Review
Attachment #8357845 - Flags: review?(justdave)
Comment on attachment 8357845 [details] [diff] [review] 958057_1.patch Works for me. Thanks!
Attachment #8357845 - Flags: review?(justdave) → review+
Flags: approval+
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk modified Bugzilla/WebService/Server/REST.pm Committed revision 8860.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 5.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: