0.0.0
OAS 3.0.0

DPT12 API

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

Public: รายการประกาศ

/public/notices

Query Parameters
  • q
    string
  • limit
    integer int32

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

  • page
    integer int32

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

  • plan_type
    string enum
    • town
    • policy
    • specific
  • plan_sub_type
    string enum
    • new_plan
    • edit_plan
  • notice_type
    string enum
    • pr
    • annoucement
    • result
  • notice_period
    string enum
    • 15
    • 30
    • 90
  • notice_start
    string date

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

  • notice_end
    string date

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

Responses
  • 200

    The request has succeeded.

GET/public/notices
Shell cURL
curl --request GET \
  --url https://dpt-openapi.finema.dev/public/notices \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "page": 1,
  "total": 1,
  "limit": 1,
  "count": 1,
  "items": [
    {
      "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
      "plan_id": "…",
      "plan_type": "town",
      "plan_sub_type": "new_plan",
      "plan_level": "country",
      "notice_type": "pr",
      "notice_period": "15",
      "name": "…",
      "notice_start": "…",
      "notice_end": "…",
      "cover_image_path": "…",
      "objective": "…",
      "map_service_url": "…",
      "detail": "…",
      "is_opinion_enable": true,
      "is_advice_enable": true,
      "is_petition_enable": true,
      "is_purpose_enable": true,
      "is_appeal_enable": true,
      "comment_durations": [
        {
          "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
          "notice_id": "…",
          "comment_type": "opinion",
          "comment_start": "…",
          "comment_end": "…",
          "created_at": "…",
          "created_by_id": "…"
        }
      ],
      "created_at": "…",
      "created_by_id": "…",
      "updated_at": "…",
      "updated_by_id": "…"
    }
  ]
}