Get File
Last updated
API Name: File – Get Content
This API retrieves the content of a file from the end system.
MBSE Core uses this API to:
Download file content for attached files
Retrieve binary file data for synchronization
Support file transfer between systems
Stream file content directly without storing intermediate copies
Connector responsibility:
Receive the fileLocationUri.
Invoke the appropriate mechanism to obtain the file content from fileLocationUri.
Return the content as an InputStream.
Stream the file content.
This API is implemented as a pass-through operation.
projectId
True
String
ID of the project.
fileLocationUri
True
String
Content download URL or file path where the file is stored.
Connector must implement:
Accept fileLocationUri as input.
Return the content as InputStream in the servlet response.
projectId must be validated before retrieving content.
fileLocationUri must be present.
File content should be streamed directly whenever possible.
Avoid loading entire files into memory for large files.
If file cannot be found:
Return HTTP 404 Not Found
If access is denied:
Return HTTP 404 Not Found
If file retrieval fails:
Return HTTP 500 Internal Server Error
Connector must close streams appropriately after transfer completion.
Binary stream response.
Example:
Response body:
Content-Type
False
MIME type of file if available.
Content-Length
False
File size in bytes.
Do not transform or decode file bytes.
Use streaming APIs where supported.
Handle large files efficiently.
Ensure streams are properly closed after transmission.
Last updated
GET: /mbse/api/1.0/content
?projectId={projectId}
&fileLocationUri={fileLocationUri}void getFileContent(String fileLocationUri)HTTP/1.1 200 OK
Content-Type: application/octet-stream<binary file content>GET /mbse/api/1.0/content?
projectId=123
&fileLocationUri=https://example.com/files/block-diagram.png
