Get Post List

get post list

get
/v2/post/list

get post list

Authorizations
AuthorizationstringRequired
Query parameters
searchstringOptional

search post by name

kindinteger · enumRequired

kind of post (1: article, 2: gallery, 3: announcement, 4: event, 6: testimoni, 7: schedule)

Possible values:
typestring · enumOptional

(opsional) used for post with event kind

Possible values:
activeinteger · enumOptional

filter by active or not

Possible values:
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/list
GET /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