import requests
url = "https://api.diga.io/v1/role/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"permissions": [
"<string>"
]
}
]Retrieve a complete list of all roles available in the system with their permissions.
import requests
url = "https://api.diga.io/v1/role/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"permissions": [
"<string>"
]
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.