GET /v1/waiting-lists/

List Waiting List

Query parameters

  • page number

    Current page

  • pageSize number

    Number of items per page

  • selectAll boolean

    Determines if all items are selected

  • where object

    App\Classes\WaitingLists\Models\WaitingList Filters: 0, 1, 2

    Hide where attributes Show where attributes object
  • sort object

    App\Classes\WaitingLists\Models\WaitingList Sorting by createdAt

    Hide sort attribute Show sort attribute object
    • createdAt string

      Values are asc or desc.

Responses

  • 200 application/json

    Paginated response

    Hide response attributes Show response attributes object
    • data array[object] Required

      Waiting List schema

      Hide data attributes Show data attributes object
      • id string Required

        id

      • companyId string Required

        Company ID

      • classId string Required

        Class ID

      • studentId string Required

        Student ID

      • createdAt string(date-time) Required

        Created date

    • pagination object Required

      Pagination schema

      Hide pagination attributes Show pagination attributes object
      • total integer Required

        Total number of items

      • count integer Required

        Number of items on this page

      • perPage integer

        Number of items per page

      • currentPage integer

        Current page number

      • totalPages integer

        Total number of pages

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

GET /v1/waiting-lists/
curl \
 --request GET 'https://api-dev.classmanager.io/v1/waiting-lists/'
Response examples (200)
{
  "data": [
    {
      "id": "loc_xxxxxxxxxxx",
      "companyId": "co_123123123123",
      "classId": "cls_123123123123",
      "studentId": "stu_123123123123",
      "createdAt": "2023-12-05 14:30:41"
    }
  ],
  "pagination": {
    "total": 15,
    "count": 10,
    "perPage": 10,
    "currentPage": 1,
    "totalPages": 2
  }
}
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}