Show IP FileMetaData

GET /show
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    required

    The unique id of file.

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/filemetadata/show \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • creation_time

    integer

    creation_time of the file.
  • id

    integer

    format : int64

  • filename

    string

    name of file.
  • fileid

    string

    The unique id of file. use http://127.0.0.1:9333/$fileid to download file.
  • media_type

    string

    file formats and format contents transmitted on the Internet.
  • crc32

    string

    crc32 of the file.
  • filesize

    integer

    Size of file.

Sample Response

                      
{
    "creation_time": 14444444,
    "filesize": 300,
    "fileid": "7BFAD01C977E407B832CE510C2B015BD",
    "media_type": "audio/vnd.wave",
    "crc32": "7BFAD01C977E407B",
    "filename": "filename"
}
                      
                    

list FileMetaDatas.

GET /list
list FileMetaDatas.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • pagination

    integer

    required

    The pagination of paging.
  • pagesize

    integer

    required

    The size of paging.
  • media_type

    string

    required

    file formats and format contents transmitted on the Internet.
  • sort_by

    string

    optional

    Default value will be used when user does not specify value for this field.

    enum : ['DEFAULT', 'OPTIONAL']

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/filemetadata/list \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • sort_by

    string

  • filemetas

    array

    Show child attributes
  • pagesize

    integer

  • pagination

    integer

  • count

    integer

Sample Response

                      
{
    "sort_by": "DEFAULT",
    "pagesize": 10,
    "pagination": 8,
    "count": 100
}
                      
                    

Remove an FileMetaData entry.

POST /destroy
Deletes a certain FileMetaData entry.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    format : int64

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/filemetadata/destroy \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{}'
                      
                    

Responses

200
Successful operation
404
User not found
400
Invalid fileid supplied

Sample Response