File
Get file content
Honors the Accept header. If the value of the header is text/plain and there is a document in the index that has the genre detected as plain text, the contents of the document will be returned. If the document is not found, HTTP error 404 will be returned. If the genre of the document is not plain text, HTTP error 406 will be returned. Alternatively, use application/octet-stream to bypass the document and genre check. The Content-Type header of the reply will be set accordingly.
get/file/content
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pathstring required
Path of file, relative to source root.
Response
File content.
Changes
No recorded changes to this operation across all 1 revision of this API.