GET
/
api
/
views
/
resource
/
{resourceModel}
{
  "id": 123,
  "name": "<string>",
  "slug": "<string>",
  "predefined": true,
  "resourceModel": "<string>",
  "favourite": true,
  "rolesLogicExpression": "<string>",
  "roles": [
    {
      "id": 1,
      "slug": "admin",
      "name": "Administrator",
      "description": "Administrator role with all permissions",
      "predefined": false,
      "permissions": [
        {
          "ability": "read",
          "subject": "item",
          "value": true
        },
        {
          "ability": "edit",
          "subject": "item",
          "value": false
        }
      ]
    }
  ],
  "columns": [
    {}
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

resourceModel
string
required

The resource model to get views for

Response

200 - application/json

Specific resource views

id
number
required

The unique identifier of the view

name
string
required

The name of the view

slug
string
required

The slug of the view

predefined
boolean
required

Whether the view is predefined

resourceModel
string
required

The resource model associated with the view

favourite
boolean
required

Whether the view is marked as favourite

rolesLogicExpression
string
required

The roles logic expression for the view

roles
object[]
required

The roles associated with the view

columns
object[]
required

The columns associated with the view

createdAt
string<date-time>
required

The creation timestamp

updatedAt
string<date-time>
required

The last update timestamp