Light Docs

List all users paginated

GET
/users

Authorization

bearerAuth

Response Body

application/json

application/json

curl -X GET "http://localhost:8000/api/users"
{
  "data": [
    {
      "id": 0,
      "name": "string",
      "email": "string",
      "role": {
        "id": 0,
        "name": "string",
        "permissions": [
          null
        ],
        "created_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z"
      }
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "path": "string",
    "per_page": 0,
    "to": 1
  }
}
{
  "message": "string"
}