dev.knotless.getFile
One file at a revision: an image, a binary, too large to show, or text, with the ranges its highlighting paints. The bytes themselves are at the repository's raw path. No authentication needed; asked as an account, with a service token or the pages' session cookie, a private repository it is a member of is read too, and the answer is that account's alone.
Details · query
| Kind | query |
|---|---|
| Authority | knotless.dev |
| Indexed |
Query
query · GETParameters
query stringpath
stringA path in the tree, from its root.
maxLength: 4096
ref
stringA branch, a tag or a commit; the default branch if absent. It may run on into the path, as a web address names them: the longest branch or tag that starts it is the ref, and what follows goes before `path`.
maxLength: 1024
The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.
Output
application/jsonhtml
stringA Markdown file made into HTML, as a README is.
How it is shown: only `text` comes with its text.
knownValues: image | binary | large | text
minimum: 1
The file, from the root.
ranges
stringThe ranges its highlighting paints, encoded as the pages read them.
The ref or commit shown, as `ref` named it, less any path.
In bytes.
minimum: 0
text
stringErrors
NotFound
No such repository, revision, path or record.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.getTree
queryA directory of a repository at a revision.
-
dev.knotless.getRepo
queryA repository, with what its pages show above themselves.
-
dev.knotless.listPaths
queryEvery path in a repository's tree at a revision.
-
dev.knotless.getBlame
queryWho last changed each line of a file at a revision.
-
dev.knotless.getCommit
queryA commit and what it changed.