Skip to content

Instantly share code, notes, and snippets.

@romshark
Last active February 1, 2016 16:49
Show Gist options
  • Save romshark/1162ab1f00dd709062dc to your computer and use it in GitHub Desktop.
Save romshark/1162ab1f00dd709062dc to your computer and use it in GitHub Desktop.
/users/
READ: returns a list of user ids
CREATE: creates a new user
Permissions:
Owner: -
Group("users"): read
Group("administrative"): read, create
Others: create
/users/:user_id
READ: returns information about the given users profile
UPDATE: changes the given users profile
DELETE: delete the given users profile
Permissions:
Owner("<user>"): read, update, delete
Group("administrative"): read, delete
Others: read
/users/:user_id/posts
READ: returns all post ids of the given users profile
CREATE: creates a new post on the given users profile
Permissions:
Owner(inherit): read, create
Group("<user>-friends"): read, create
Group("administrative"): read
Others: -
/users/:user_id/posts/:post_id
READ: returns the given post on the given users profile
UPDATE: changes the given post on the given users profile
DELETE: deletes the given post on the given users profile
Permissions:
Owner("<user>"): read, update, delete
Users("<owneruser>"): read, delete
Group("<user>-friends"): read
Group("administrative"): read, delete
Others: inherit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment