Schools

Retrieve all schools, or filter by district using the district_id query parameter.

get/schools

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/schools
  • Auth: none declared

Query parameters

district_idinteger
Example:4

Filter schools by district ID

Response

List of schools

idinteger
namestring
district_idinteger
created_atstring date-time
updated_atstring date-time

Example response

[
  {
    "id": 12,
    "name": "Lincoln Middle School",
    "district_id": 4,
    "created_at": "2025-01-15T14:30:00Z",
    "updated_at": "2025-01-15T14:30:00Z"
  }
]

Changes