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)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: justdave, Assigned: dkl)
Details
Attachments
(1 file)
|
1.22 KB,
patch
|
justdave
:
review+
|
Details | Diff | Splinter Review |
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?)
| Reporter | ||
Comment 1•12 years ago
|
||
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¶ms={id:35} ?
| Assignee | ||
Comment 2•12 years ago
|
||
Good point. Patch coming.
Assignee: webservice → dkl
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•12 years ago
|
||
Attachment #8357845 -
Flags: review?(justdave)
| Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 8357845 [details] [diff] [review]
958057_1.patch
Works for me. Thanks!
Attachment #8357845 -
Flags: review?(justdave) → review+
| Reporter | ||
Updated•12 years ago
|
Flags: approval+
| Assignee | ||
Comment 5•12 years ago
|
||
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
Updated•12 years ago
|
Target Milestone: --- → Bugzilla 5.0
You need to log in
before you can comment on or make changes to this bug.
Description
•