#RESTful or not?

2 messages · Page 1 of 1 (latest)

latent gate
#

I have a resource to which I can assign permissions, I would like to be able to set global default permissions and then permissions for the individual resources

I'm thinking, individual resource endpoints will look like this: [VERB] /api/v1/resource/:id/permissions
default permissions that apply to all resources might look like this: [VERB] /api/v1/resource/permissions

Is it still RESTful or am I butchering this? Thanks!

edgy chasm
#

looks fine to me. It's permissions associated with the resource.

The only nitpick I have is that collections are usually named in plural: /api/v1/resources/permissions