|
|
GET:site/roles/{roleid}From $1目次
Overviewpublic. Retrieve a role Uri Parameters
Query ParametersNone Return Codes
Message FormatOutput: <permissions>
<operations mask="{int}">{text}</operations>
<role id="{int}" href="{uri}">{text}</role>
</permissions>
Implementation NotesUse GET:site/operations to retrieve a list of all operations currently defined on the site. Code SamplesThe following code example retrieves information about the Admin role: Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("site", "roles", "=Admin").Get();
Sample response: <permissions>
<operations mask="9223372036854779903">LOGIN,BROWSE,READ,SUBSCRIBE,UPDATE,CREATE,DELETE,CHANGEPERMISSIONS,CONTROLPANEL,ADMIN</operations>
<role id="5" href="http://deki-hayes/@api/deki/site/roles/5">Admin</role>
</permissions>
タグ:
|
||||||||||||||||||