Status

Tree Management
Treeherder: API
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: mdoglio, Assigned: mdoglio)

Tracking

Details

Attachments

(1 attachment)

46 bytes, text/x-github-pull-request
emorley
: review+
Details | Review | Splinter Review
(Assignee)

Description

2 years ago
It would be very useful to enable the html api renderer to provide a better ux when consuming the api with a browser
(Assignee)

Comment 1

2 years ago
Created attachment 8634736 [details] [review]
PR 773
Attachment #8634736 - Flags: review?(emorley)
(Assignee)

Updated

2 years ago
Assignee: nobody → mdoglio
Attachment #8634736 - Flags: review?(emorley) → review+

Comment 2

2 years ago
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
Last Resolved: 2 years ago
Resolution: --- → FIXED
When I visit https://treeherder.mozilla.org/api/repository/ I see json, not the browsable API. Any ideas why?
Same for eg https://treeherder.mozilla.org/api/project/mozilla-inbound/
You need to log in before you can comment on or make changes to this bug.