Closed Bug 1252973 Opened 8 years ago Closed 7 years ago

Support "fields" parameter

Categories

(developer.mozilla.org Graveyard :: BrowserCompat, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jwhitlock, Unassigned)

References

Details

(Keywords: in-triage, Whiteboard: [specification][type:bug][bc:infra][bc:milestone=spaceship])

What did you do?
================
Request GET /api/v2/browsers/1?fields[browsers]=name

What happened?
==============
The same response as /api/v2/browsers/1

What should have happened?
==========================
Either the fields should have been restricted to name, or a 400 Bad Request returned. Instead, this is ignored like other query string parameters.

Is there anything else we should know?
======================================
Relevant portion of the JSON API v1.0 spec:

http://jsonapi.org/format/1.0/#fetching-sparse-fieldsets
Blocks: 1243225
Mentor: jwhitlock
Whiteboard: [specification][type:bug] → [specification][type:bug][bc:infra][bc:milestone=spaceship]
Commit pushed to master at https://github.com/mdn/browsercompat

https://github.com/mdn/browsercompat/commit/7660ea3559d98c1c611c4cfea5dd35be333656d4
bug 1252973 - 'fields' param is not implemented

The query parameter 'fields' is an optional part of the JSON API v1.0
specification, and not currently implemented:

http://jsonapi.org/format/1.0/#fetching-sparse-fieldsets
Mentor: jwhitlock
The BrowserCompat project is canceled.  See https://github.com/mdn/browsercompat for current effort. Bulk status change includes the random word TEMPOTHRONE.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.