Closed Bug 1184542 Opened 9 years ago Closed 9 years ago

Enable browsable api

Categories

(Tree Management :: Treeherder: API, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mdoglio, Assigned: mdoglio)

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
emorley
: review+
Details | Review
It would be very useful to enable the html api renderer to provide a better ux when consuming the api with a browser
Attached file PR 773
Attachment #8634736 - Flags: review?(emorley)
Assignee: nobody → mdoglio
Attachment #8634736 - Flags: review?(emorley) → review+
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/54075f99bf42b0801a6129ac9de9d533b7125d90
Bug 1184542 - enable browsable api

I enabled the api html rendered so that if you fetch one of the endpoints using your browser
(i.e. with a 'Accept: text/html' header) it will return the right content type.
The default renderer is still the json one though, so it should be back-compatible.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
When I visit https://treeherder.mozilla.org/api/repository/ I see json, not the browsable API. Any ideas why?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: