v1

latestOpenAPI 3.1.02026-07-14159142161.9 KB
roles (usersService)

Get roles list.

Get roles list.

get/company/v1/roles

Response

OK

Example response

{
  "data": [
    {
      "title": "Admin",
      "code": "ADMIN",
      "userlist": [
        {
          "firstName": "Stas",
          "lastName": "Raranetskyi",
          "avatar": "path to avatar",
          "dateUpdate": 1654180120
        }
      ],
      "departmentlist": [
        {
          "name": "Employee",
          "dateUpdate": 1654180120
        }
      ]
    }
  ],
  "meta": {
    "currentPage": 1,
    "from": 1,
    "lastPage": 1,
    "links": [
      {
        "label": "Previous"
      }
    ],
    "path": "https://domain.uspacy.ua/groups/v1/groups",
    "perPage": 20,
    "to": 2,
    "total": 2
  }
}