Districts

Get district by ID

Changed on

Retrieve a district by its numeric ID

get/districts/{id}

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/districts/{id}
  • Auth: none declared

Path parameters

idinteger required
Example:3

Numeric district ID

Response

District found successfully

idinteger
namestring
created_atstring date-time
updated_atstring date-time

Example response

{
  "id": 3,
  "name": "Central District",
  "created_at": "2025-01-15T14:30:00Z",
  "updated_at": "2025-01-15T14:30:00Z"
}

Changes