Students

Get all sessions for a student

Changed on

Retrieve all sessions associated with a specific student, including bridge table information.

Date Filtering Options:

  • Use startDate and endDate for date range filtering: ?startDate=2025-09-01&endDate=2025-09-30
  • Use month and year for monthly filtering: ?month=9&year=2025
  • Use year alone for yearly filtering: ?year=2025

Attendance Filtering:

  • Use present to filter by attendance: ?present=true or ?present=false

Combining Filters: All filters can be combined: ?month=9&year=2025&present=true

get/students/{student_id}/sessions

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/students/{student_id}/sessions
  • Auth: none declared

Path parameters

student_idstring uuid required
Example:987fcdeb-51a2-43d1-9f4c-123456789abc

UUID of the student

Query parameters

startDatestring date
Example:2025-09-01

Filter sessions starting after this date (YYYY-MM-DD format)

endDatestring date
Example:2025-09-30

Filter sessions ending before this date (YYYY-MM-DD format)

monthinteger
Example:9

Filter sessions by month (1-12). Can be combined with year parameter.

yearinteger
Example:2025

Filter sessions by year. Can be combined with month parameter or used alone.

presentboolean
Example:true

Filter sessions by student's attendance status

pageinteger

Page Number of pagination

limitinteger

Number of Items per page in pagination

Response

List of sessions with student relationship details

student_idstring uuid required

UUID of the associated student

presentboolean required

Whether the student was present at this session

notesstring nullable

Session-specific notes about the student

created_atstring date-time required

When the session-student relationship was created

updated_atstring date-time required

When the session-student relationship was last updated

Example response

[
  {
    "session": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "session_name": "Fluency work with Florence",
      "start_datetime": "2024-01-15T14:30:00Z",
      "end_datetime": "2024-01-15T15:30:00Z",
      "therapist_id": "987fcdeb-51a2-43d1-9f4c-123456789abc",
      "session_parent_id": "123e4567-e89b-12d3-a456-426614174000",
      "notes": "Patient showed improvement in anxiety management techniques",
      "location": "To the land where the honey runs...",
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T10:35:00Z",
      "repetition": {
        "recur_start": "2025-09-13T17:19:00Z",
        "recur_end": "2025-11-13T17:19:00Z",
        "every_n_weeks": 2,
        "days": [
          1,
          3,
          5
        ]
      }
    },
    "student_id": "987fcdeb-51a2-43d1-9f4c-123456789abc",
    "present": true,
    "notes": "Worked on balance exercises",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:35:00Z"
  }
]

Changes

    • ●

      removed the optional property // from the response with the status

    • ○

      added the optional property // to the response with the status

    • ▲

      the response's property type changed from no type to object for status

    • ○

      added the optional property / to the response with the status

    • ○

      removed subschema #2 from the response property allOf list for the response status

    • ○

      added the required property / to the response with the status

    • ○

      added the required property / to the response with the status

    • ○

      added the required property / to the response with the status

    • ○

      added the required property / to the response with the status

    • ○

      added the required property / to the response with the status