Postponed (maintainer needs more info)
Project:
Drupal core
Version:
main
Component:
rest.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2018 at 18:59 UTC
Updated:
2 Mar 2026 at 15:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerI'm not sure about the test coverage. Maybe we should add test coverage for all authentications/formats, too?
Comment #4
dawehnerThere was a typo in the PHP namespace.
Comment #5
dawehnerComment #6
wim leersThanks so much for getting this going!
Singular.
Plural.
Nit: Responds
This would be the first REST resource that (arguably) returns a collection.
Related: #2908800: RestResource plugins: use get() method with optional parameter (or no parameter) to signal list support?.
I'm wondering if we should keep this in an experimental module for now? This would be the first of its kind. Likely a pattern will emerge that we don't quite see just yet. By shipping this the official/real API, we'd have to maintain BC for the rest of the D8 cycle. If we initially ship this as experimental and wait to "graduate" to non-experimental until we have several of these, we diminish that risk.
Comment #7
wim leersComment #8
dawehnerThat is a good question. I agree with you that putting that into rest/user module itself feels wrong. At least in the context of the JS Initiative a helper module dedicated for the new admin theme would be actually the right solution. I think custom code for non generic solutions isn't the worst idea.
Comment #9
dawehnerThank you for your reviews!
Haha, well I really couldn't decide which one to pick :) Thoughts?
Comment #10
wim leers👍
You're always getting all permissions, so I'd say plural? That, or even rename it to
permissions_collection?Comment #11
dawehnerI like
permissions_collection!Comment #12
dawehnerWe are using the new name and a experimental module now.
Comment #14
dawehnerComment #16
dawehnerI just had tested the resource as logged out user. This fixes some exception.
Comment #29
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!