All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreatePolicy | Post /policies | Create an Access Control Policy |
DeletePolicy | Delete /policies/{id} | Delete an Access Control Policy |
GetPolicy | Get /policies/{id} | Get an Access Control Policy |
ListPolicies | Get /policies | List Access Control Policies |
UpdatePolicy | Put /policies/{id} | Update an Access Control Polic |
Policy CreatePolicy($body)
Create an Access Control Policy
The subject making the request needs to be assigned to a policy containing: { \"resources\": [\"rn:hydra:policies\"], \"actions\": [\"create\"], \"effect\": \"allow\" }
Name | Type | Description | Notes |
---|---|---|---|
body | Policy | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeletePolicy($id)
Delete an Access Control Policy
The subject making the request needs to be assigned to a policy containing: { \"resources\": [\"rn:hydra:policies:<id>\"], \"actions\": [\"delete\"], \"effect\": \"allow\" }
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id of the policy. |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Policy GetPolicy($id)
Get an Access Control Policy
The subject making the request needs to be assigned to a policy containing: { \"resources\": [\"rn:hydra:policies:<id>\"], \"actions\": [\"get\"], \"effect\": \"allow\" }
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id of the policy. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Policy ListPolicies($offset, $limit)
List Access Control Policies
The subject making the request needs to be assigned to a policy containing: { \"resources\": [\"rn:hydra:policies\"], \"actions\": [\"list\"], \"effect\": \"allow\" }
Name | Type | Description | Notes |
---|---|---|---|
offset | int64 | The offset from where to start looking. | [optional] |
limit | int64 | The maximum amount of policies returned. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Policy UpdatePolicy($id, $body)
Update an Access Control Polic
The subject making the request needs to be assigned to a policy containing: { \"resources\": [\"rn:hydra:policies\"], \"actions\": [\"update\"], \"effect\": \"allow\" }
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id of the policy. | |
body | Policy | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]