API Documentation‎ > ‎Actions‎ > ‎

GetFileInfo


Description

 Get Information about Files or Directories.

Request Method    
GET

ActionUrl

/api/v1/file

Request Parameter

 Name  Description  Required
 file the full path to the file ti request the media information
e.g. file=/media/video/ChocolateFactory.ts
yes

Response Elements

 Name Description 
  see below,
this is not final, changes could be change in the future

Examples


Example Request

URL:
http://localhost:8080/api/v1/file//media

Example Response

{
    "response": {
        "status": "ok",
        "message": "",
        "requestID": "3cf1fc62-4e73-11e1-a712-0023ae8ddf40"
    },
    "data": [
        {
            "path": "/media/video",
            "name": "video",
            "directory": true
        },
        {
            "path": "/media/video",
            "name": "example.mp4",
            "directory": false
        }
    ]
}
Related Operations


Comments