Get raw file content
Changed onReturns raw file content from a Git repository at a given blob reference (commit SHA, tag, or branch). Use mode=raster&page=N to get a rasterized JPEG of a document page. Use mode=text&page=N to get extracted text from a document page. Use mode=text without page to get the page count.
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v1/repositories/{id}/blob/{blob_name}/{path}
- Authnone declared
Path parameters
Repository ID
Commit SHA, tag name, or branch name
File path within the repository
Query parameters
Line ranges to extract (e.g. L17-L26,L45,L55-L90)
Prefix each line with its 1-based line number
Output mode: 'raster' returns a JPEG image of the page, 'text' returns extracted text
1-based page number (required when mode=raster, optional for mode=text)
Response
OK
Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- info
- breaking
removed the media type
image/pngfor the response with the status - breaking
removed the media type
image/pngfor the response with the status - breaking
removed the media type
image/pngfor the response with the status - info
added the media type
image/jpegfor the response with the status - info
added the media type
image/jpegfor the response with the status - info
added the media type
image/jpegfor the response with the status
- breaking