{
  "opencollection": "1.0.0",
  "info": {
    "name": "Stardog HTTP Checkpoints Roles API",
    "version": "12.0.3"
  },
  "items": [
    {
      "info": {
        "name": "Roles",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Roles",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5820/admin/roles"
          },
          "docs": "Get the names of all roles in the system"
        },
        {
          "info": {
            "name": "Add role",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:5820/admin/roles",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add role"
        },
        {
          "info": {
            "name": "Delete role",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "http://localhost:5820/admin/roles/:role",
            "params": [
              {
                "name": "role",
                "value": "",
                "type": "path",
                "description": "Role name"
              },
              {
                "name": "force",
                "value": "",
                "type": "query",
                "description": "Whether to force delete if role is assigned to users"
              }
            ]
          },
          "docs": "Delete role"
        },
        {
          "info": {
            "name": "Get users with role",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5820/admin/roles/:role/users",
            "params": [
              {
                "name": "role",
                "value": "",
                "type": "path",
                "description": "Role name"
              }
            ]
          },
          "docs": "Returns a list of all users that have a specific role"
        },
        {
          "info": {
            "name": "List Roles with their permissions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5820/admin/roles/list"
          },
          "docs": "Retrieve a detailed list of all roles, including their permissions"
        }
      ]
    }
  ],
  "bundled": true
}