v1
latestOpenAPI 3.0.12026-07-17311136.1 KBGet contents of file or directory
A client can optionally specify a type and/or format argument via URL parameter. When given, the Contents service shall return a model in the requested type and/or format. If the request cannot be satisfied, e.g. type=text is requested, but the file is binary, then the request shall fail with 400 and have a JSON response containing a 'reason' field, with the value 'bad format' or 'bad type', depending on what was requested.
Path parameters
file path
Query parameters
File type ('file', 'directory')
How file content should be returned ('text', 'base64')
Return content (0 for no content, 1 for return content)
May return hash hexdigest string of content and the hash algorithm (0 for no hash - default, 1 for return hash). It may be ignored by the content manager.
Response
Contents of file or directory