GET /presentations

Retrieves paginated list of presentations with thumbnails.

Query parameters

  • page integer

    Page number

    Minimum value is 1. Default value is 1.

  • pageSize integer

    Number of presentations per page (1-100)

    Minimum value is 1, maximum value is 100. Default value is 10.

  • filter string

    Filter presentations by title (case-insensitive search)

    Maximum length is 100.

  • sort string

    Sort order - ascending (asc) or descending (desc)

    Values are asc or desc. Default value is asc.

Responses

  • 200 application/json

    success

    Hide response attributes Show response attributes object
    • success boolean
    • code integer(int32)
    • message string
    • data array[object]
      Hide data attributes Show data attributes object
      • id string
      • title string
      • thumbnail object
        Hide thumbnail attributes Show thumbnail attributes object
        • id string
        • elements array[object]
          Hide elements attributes Show elements attributes object
          • type string
          • id string
          • left number
          • top number
          • width number
          • height number
          • viewBox array[integer]
          • path string
          • fill string
          • fixedRatio boolean
          • opacity number
          • rotate integer
          • flipV boolean
          • lineHeight number
          • content string
          • defaultFontName string
          • defaultColor string
          • start array[integer]
          • end array[integer]
          • points array[string]
          • color string
          • style string
          • wordSpace integer
        • background object
          Hide background attributes Show background attributes object
          • type string
          • color string
      • createdAt string(date-time)
      • updatedAt string(date-time)
    • pagination object
      Hide pagination attributes Show pagination attributes object
      • currentPage

        The current page number (1-based indexing)

      • pageSize

        Number of items per page

      • totalItems

        Total number of items across all pages

      • totalPages

        Total number of available pages

  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • success boolean
    • code integer
    • errorCode string
    • message string
    • timestamp string(date-time)
GET /presentations
curl \
 --request GET 'https://api.huy-devops.site/api/presentations' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "success": true,
  "code": 200,
  "message": "string",
  "data": [
    {
      "id": "string",
      "title": "string",
      "thumbnail": {
        "id": "string",
        "elements": [
          {
            "type": "string",
            "id": "string",
            "left": 42.0,
            "top": 42.0,
            "width": 42.0,
            "height": 42.0,
            "viewBox": [
              42
            ],
            "path": "string",
            "fill": "string",
            "fixedRatio": true,
            "opacity": 42.0,
            "rotate": 42,
            "flipV": true,
            "lineHeight": 42.0,
            "content": "string",
            "defaultFontName": "string",
            "defaultColor": "string",
            "start": [
              42
            ],
            "end": [
              42
            ],
            "points": [
              "string"
            ],
            "color": "string",
            "style": "string",
            "wordSpace": 42
          }
        ],
        "background": {
          "type": "string",
          "color": "string"
        }
      },
      "createdAt": "2025-05-04T09:42:00Z",
      "updatedAt": "2025-05-04T09:42:00Z"
    }
  ],
  "pagination": {
    "currentPage": 1,
    "pageSize": 10,
    "totalItems": 100,
    "totalPages": 10
  }
}
Response examples (500)
{
  "success": false,
  "code": 42,
  "errorCode": "string",
  "message": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}