Districts
Get district by ID
Changed onRetrieve 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
Example response
{
"id": 3,
"name": "Central District",
"created_at": "2025-01-15T14:30:00Z",
"updated_at": "2025-01-15T14:30:00Z"
}Changes
- ○
endpoint added
- ○