File Storage of erm-usage module
Table of contents
mod-erm-usage API
This documents the API calls that can be made to query and manage files in module erm-usage
Erm Usage files
POST /erm-usage/files
Upload/update a file in module erm-usage.
POST /erm-usage/filesBody
Media type: application/octet-stream
Type: any
Response 200
Uploading the file was successful. Returns uuid of uploaded file. This uuid may be referenced in other elements.
Body
Media type: text/json
Type: any
Response 404
Body
Media type: text/plain
Type: any
Response 500
Body
Media type: text/plain
Type: any
GET /erm-usage/files/{id}
Get file by id
GET /erm-usage/files/{id}URI Parameters
- id: required (string)
Response 200
Body
Media type: application/octet-stream
Type: any
Response 404
Body
Media type: text/plain
Type: any
Response 500
Server Error
Body
Media type: text/plain
Type: any
DELETE /erm-usage/files/{id}
Delete a file identified by id
DELETE /erm-usage/files/{id}URI Parameters
- id: required (string)
Response 204
Delete succeeded
Response 400
Bad request
Body
Media type: text/plain
Type: any
Response 500
Internal server error
Body
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator