GET /patrons
List of patrons

Supported Formats

json

Errors

Code Description
404 Not Found
500 Internal Server error

Examples

Request
{
  per_page: 10,
  page: 1
}

Response
{
  "data": [
    {
      "id": 1,
      "position": 2,
      "name": "Company Inc.",
      "link": "https://company.com",
      "logo_url": "https://api.lfa.com/rails/active_storage/representations/logo.jpg"
    },
    {
      "id": 2,
      "position": 1,
      "name": "Corporation Inc.",
      "link": "https://corporation.com",
      "logo_url": "https://api.lfa.com/rails/active_storage/representations/logo.jpg"
    }
  ],
  "pagination": {
      "per_page": 10,
      "page": 1,
      "total_pages": 1,
      "total": 2
  }
}

Params

Param name Description
per_page
optional

Number of records per page

Validations:

  • Must be a Integer

page
optional

Page number

Validations:

  • Must be a Integer