Skip to content

Get Uploads

  Method: GET

/api/ps/uploads

Code samples

await fetch('/api/ps/uploads', {
    method: 'GET'
}).then(async (response) => {
    console.log(response)
})
  HTTP response status codes
Status code Description
200 OK
500 Internal Error

  Status: 200

[
    {
        "id": 58,
        "fileName": "e55d72df-6de6-4760-91cf-5c1f2310d74c.jpeg",
        "fileMime": "image/jpeg",
        "originalFileName": "pexels-anni-roenkae-3219899.jpg",
        "createAt": 1662103689887,
        "isRelationArticle": true,
        "isRelationProject": false
    },
    {
        "id": 57,
        "fileName": "5d6f8bf8-7a02-4b1b-8d3e-b74d00896b5a.png",
        "fileMime": "image/png",
        "originalFileName": "preview-600.png",
        "createAt": 1662103679976,
        "isRelationArticle": true,
        "isRelationProject": false
    },
    {
        "id": 56,
        "fileName": "20498164-ba4c-4770-8c75-80aa45cadcc6.xcf",
        "fileMime": "image/x-xcf",
        "originalFileName": "preview.xcf",
        "createAt": 1662103612370,
        "isRelationArticle": false,
        "isRelationProject": true
    }
]

  Status: 500

{
    "code": 500,
    "message": "Internal Error"
}