curl --request GET \
--url https://api.example.com/municipios/:id{
"id": 123,
"nombre": "<string>",
"ubicacion": {
"type": "<string>",
"coordinates": [
{}
]
},
"activo": true
}Retrieve a specific municipality by ID
curl --request GET \
--url https://api.example.com/municipios/:id{
"id": 123,
"nombre": "<string>",
"ubicacion": {
"type": "<string>",
"coordinates": [
{}
]
},
"activo": true
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LizandroCanul/back_sdo/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer YOUR_API_TOKEN
51 for Méridahttps://api.example.com/municipios/:id
Mérida, Valladolid, Tizimíntrue{
"id": 51,
"nombre": "Mérida",
"ubicacion": {
"type": "Point",
"coordinates": [-89.5926, 20.9674]
},
"activo": true
}
curl -X GET https://api.example.com/municipios/51 \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
51103976090ParseIntPipe validation, so non-numeric IDs will return a 400 error:
{
"statusCode": 400,
"message": "Validation failed (numeric string is expected)",
"error": "Bad Request"
}
null. Handle this in your application:
if (municipio === null) {
console.log('Municipality not found');
}
null if no municipality is found with the given ID