Files module facilitates upload/download files into OpenMRS database.
The File entity is meant to store binary data of an arbitrary file.
Regular OpenMRS REST interface is implemented for the File entity:
GET /openmrs/ws/rest/v1/file?v=full
GET /openmrs/ws/rest/v1/file/{uuid}?v=full
DELETE /openmrs/ws/rest/v1/file/{uuid}
Special endpoint is made for downloading binary data of the file. The URL is included in the Full representation of File entity.
GET /openmrs/ws/rest/v1/file/{uuid}/bytes
Special endpoint is made to upload the file.
POST /openmrs/ws/rest/v1/file
multipart/form-data
fileCategory: uuid
filename: string
mimeType: string (optional)
file: File
The File Category entity is meant as simple classification of Files in the system, free to be defined by implementation.
The regular OpenMRS REST interface is implemented.