getFile
GET
/api/v1/namespaces/{namespace}/file
const url = 'https://example.com/api/v1/namespaces/example/file?path=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/namespaces/example/file?path=example'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”namespace
required
string
Query Parameters
Section titled “Query Parameters”path
required
string
File path relative to the namespace root.
version
integer
Version number. Default is the head version.
Responses
Section titled “ Responses ”File content.
Media typeapplication/octet-stream