You are in REST API » v13.2 || Go to
Files
Create new file in the system
- URL:
/files/
- Method: POST
- Parameters:
- filename - name of the file to be uploaded
- length - length of the file in bytes
- Output: Information about the created file.
- Example:
curl -X POST --data "filename=xxx.txt&length=12" \ --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \ https://minerva-dev.lcsb.uni.lu/minerva/api/files/
Upload content of the file
- URL:
/files/{id}:uploadContent
- Method: POST
- Parameters:
- id - id of the file
- body - file content to be append to the file, big files (>1MB) should be uploaded in few queries
- Output: Information about the created file.
- Example:
curl -X POST --data "FileContent" \ --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \ https://minerva-dev.lcsb.uni.lu/minerva/api/files/4367:uploadContent
Get info about file
- URL:
/files/{id}
- Method: GET
- Parameters:
- id - id of the file
- Output: Information about the file.
- Example:
curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \ https://minerva-dev.lcsb.uni.lu/minerva/api/files/4367