Skip to content

API "Common optional parameters" fields not working #8071

Description

@sophia-huynh

In the RESTful API Documentation, there are "Common optional parameters" mentioned: fields and filter, which should be usable in various routes. However, the fields parameter seems to not work for some of the routes -- of the ones I've tried, these had no change when fields was provided:

  • GET /api/users
  • GET /api/users/:id
  • GET /api/courses
  • GET /api/courses/:id

The optional parameter filter does seem to work for these, though I haven't tested it on every route (the usages of get_collection seems to indicate it should be fine).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions