Get Post List
get post list
Authorizations
AuthorizationstringRequired
Query parameters
searchstringOptional
search post by name
kindinteger · enumRequiredPossible values:
kind of post (1: article, 2: gallery, 3: announcement, 4: event, 6: testimoni, 7: schedule)
typestring · enumOptionalPossible values:
(opsional) used for post with event kind
activeinteger · enumOptionalPossible values:
filter by active or not
citySlugstringOptional
filter by city (used for post with event kind)
pageintegerOptional
page number
pageSizeintegerOptional
total items in 1 page
Responses
200
Response
application/json
get
/v2/post/listGET /v2/post/list?kind=1 HTTP/1.1
Host: services.alkamedia.id
Authorization: YOUR_API_KEY
Accept: */*
200
Response
{
"data": {
"items": [
{
"authorName": "text",
"cityId": 1,
"cover": "text",
"id": 1,
"type": "offline",
"active": 1,
"created_at": "text",
"kind": 1,
"place": "text",
"subtitle": "text",
"title": "text",
"content": "text",
"link": "text",
"start": "text",
"updated_at": "text",
"authorId": 1,
"city": "text",
"end": "text",
"summary": "text",
"authorPhoto": "text"
}
],
"page": 1,
"perPage": 1,
"totalItems": 1,
"totalPages": 1
},
"message": "success",
"status": true
}Last updated