NewsItem

NewsItem

{} NewsItem
id
required
allOf
ref_news_id
required
string uuid
subject
required
string
desc
required
string
thumb_url
required
string
html
required
string
status
required
string
embed
required
string
link
required
string
tag
required
string
insdate
required
string date

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

uptdate
required
string date

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

strdate
required
string date

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

enddate
required
string date

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

postdate
required
string date

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

is_pin
required
boolean
is_active
required
boolean
created_at
required
string date-time
read-only

the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

created_by_id
required
string
read-only
updated_at
required
string date-time
read-only

the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

updated_by_id
required
string
read-only
photo
required
array object[]
download
required
array object[]

NewsPhoto

{} NewsPhoto
photo_id
required
string uuid
photo_did
required
string uuid
photo_name
required
string
photo_file_name
required
string
photo_type
required
string
photo_url
required
string
photo_order
required
integer int32

Signed 32-bit integers (commonly used integer type).

news_id
required
string uuid

NewsType

{} NewsType
id
required
allOf
name
required
string
remark
string
tags
required
array object[]
read-only
created_at
required
string date-time
read-only

the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

created_by_id
required
string
read-only
updated_at
required
string date-time
read-only

the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

updated_by_id
required
string
read-only
0.0.0
OAS 3.0.0

DPT56 API

Client Libraries
Shell
Ruby
Node.js
PHP
Python
C
More
Authentication
Bearer Authentication (BearerAuth)

Site Configurations

Public: รายการแบนเนอร์

/public/banners

Get all banners

Responses
  • 200

    The request has succeeded.

GET/public/banners
Shell cURL
curl --request GET \
  --url https://dpt-openapi.finema.dev/public/banners
[
  {
    "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
    "name": "…",
    "url": "…",
    "seq": 1,
    "file_title": "…",
    "file_name": "…",
    "file_path": "…",
    "file_size": 1,
    "video_url": "…",
    "start_date": "…",
    "end_date": "…",
    "created_at": "…",
    "created_by_id": "…",
    "updated_at": "…",
    "updated_by_id": "…"
  }
]

Public: รายการป็อปอัพ

/public/popups

Get all popups

Responses
  • 200

    The request has succeeded.

GET/public/popups
Shell cURL
curl --request GET \
  --url https://dpt-openapi.finema.dev/public/popups
[
  {
    "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
    "name": "…",
    "url": "…",
    "seq": 1,
    "file_title": "…",
    "file_name": "…",
    "file_path": "…",
    "file_size": 1,
    "created_at": "…",
    "created_by_id": "…",
    "updated_at": "…",
    "updated_by_id": "…"
  }
]

Public: ข่าว ประเภทข่าว

Backoffice: จัดการแบนเนอร์

Backoffice: จัดการป็อปอัพ

Backoffice: จัดการข่าว

Backoffice: จัดการประเภทข่าว