github.com/rpdict/ponzu@v0.10.1-0.20190226054626-477f29d6bf5e/docs/src/HTTP-APIs/File-Metadata.md (about)

     1  title: File Metadata HTTP API
     2  
     3  Ponzu provides a read-only HTTP API to get metadata about the files that have been uploaded to your system. As a security and bandwidth abuse precaution, the API is only queryable by "slug" which is the normalized filename of the uploaded file. 
     4  
     5  ---
     6  
     7  ### Endpoints
     8  
     9  #### Get File by Slug (single item)
    10  <kbd>GET</kbd> `/api/uploads?slug=<Slug>`
    11  
    12  ##### Sample Response
    13  ```javascript
    14  {
    15    "data": [
    16      {
    17          "uuid": "024a5797-e064-4ee0-abe3-415cb6d3ed18",
    18          "id": 6,
    19          "slug": "filename.jpg",
    20          "timestamp": 1493926453826, // milliseconds since Unix epoch
    21          "updated": 1493926453826,
    22          "name": "filename.jpg",
    23          "path": "/api/uploads/2017/05/filename.jpg",
    24          "content_length": 357557,
    25          "content_type": "image/jpeg",
    26      }
    27    ]
    28  }
    29  ```