10 months ago
1 changed files
Download Patch File
Download Diff File
@@ -225,3 +225,36 @@ with name "resource1" at Redis ID 0:
Additionally, users and groups have to exist in Redis. We can
use the GN2 users already in Redis from GN2, but for completeness'
** Using the API
There are two REST endpoints, /available/ and /run-action/.
Takes two parameters, ~resource~ and ~user~. An example query URL
would look like:
A JSON representation of the actions available to the given user
on that resource is returned. For instance, if the resource in
question is one of the above, that either allows or disallows
access to the ~data~ action, and the user has full access, the
result would be:
Takes at least three parameters, ~resource~, ~user~, and ~action~. An
example query URL would look like:
Actions may require additional parameters, which are provided like
any other URL parameters. What the returned value actually is obviously
depends on the action in question.