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
  • filename

    string

    name of file.
  • media_type

    string

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

    string

    crc32 of the file.
  • fileid

    string

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

    integer

    creation_time of the file.
  • id

    integer

    format : int64

  • filesize

    integer

    Size of file.

Sample Response

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

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

404
User not found
200
Successful operation
400
Invalid fileid supplied

Sample Response

                      
                      
                    

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
  • pagesize

    integer

  • count

    integer

  • pagination

    integer

  • filemetas

    array

    Show child attributes
  • sort_by

    string

Sample Response

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