Query parameters
-
page
integer Default value is
1
. -
perPage
integer Maximum value is
250
. Default value is100
. -
search
string | null -
sortBy
string | null Default value is
-published_at
. -
isPublished
boolean | null Default value is
true
.
GET
/api/announcements
curl \
-X GET https://metropolitanacolombia.org/api/announcements \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"items": [
{
"title": "string",
"description": "string",
"isPublished": false,
"id": "string",
"contentSummary": "string",
"publishedAt": "2024-05-04T09:42:00+00:00",
"createdAt": "2024-05-04T09:42:00+00:00",
"updatedAt": "2024-05-04T09:42:00+00:00"
}
],
"total": 42,
"page": 42,
"perPage": 42,
"totalPages": 42,
"hasNextPage": true
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}