Show IP FileMetaData
GET
/show
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idinteger
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
-
filenamestring
name of file. -
media_typestring
file formats and format contents transmitted on the Internet. -
crc32string
crc32 of the file. -
fileidstring
The unique id of file. use http://127.0.0.1:9333/$fileid to download file. -
creation_timeinteger
creation_time of the file. -
idinteger
-
filesizeinteger
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_tokenstring
required
token to be passed as a header
Request body
application/json
-
idinteger
required
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_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
media_typestring
required
file formats and format contents transmitted on the Internet. -
sort_bystring
optional
Default value will be used when user does not specify value for this field.
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
-
pagesizeinteger
-
countinteger
-
paginationinteger
-
filemetasarray
Show child attributes -
sort_bystring
Sample Response
{
"pagesize": 10,
"count": 100,
"pagination": 8,
"sort_by": "DEFAULT"
}