Show HTML pages in a task view beside the transcript
This commit is contained in:
@@ -798,6 +798,27 @@ paths:
|
||||
"404": { $ref: "#/components/responses/Error" }
|
||||
"409": { $ref: "#/components/responses/Error" }
|
||||
|
||||
/api/tasks/{taskId}/raw:
|
||||
parameters:
|
||||
- { name: taskId, in: path, required: true, schema: { type: string } }
|
||||
get:
|
||||
operationId: getTaskRaw
|
||||
description: >
|
||||
A regular file in the task's worktree, whole, with a content type chosen by its extension: an HTML page in the
|
||||
app's Page view and the stylesheets, scripts and images it loads. The response carries a sandbox
|
||||
Content-Security-Policy, so a page opened from this address directly can't act on the API as its viewer.
|
||||
A path that leaves the worktree, through .. or a symlink, is refused.
|
||||
parameters:
|
||||
- { name: path, in: query, required: true, schema: { type: string }, description: "Slash-separated, relative to the worktree root." }
|
||||
responses:
|
||||
"200":
|
||||
description: The file's bytes.
|
||||
content:
|
||||
"*/*": { schema: { type: string, format: binary } }
|
||||
"400": { $ref: "#/components/responses/Error" }
|
||||
"404": { $ref: "#/components/responses/Error" }
|
||||
"409": { $ref: "#/components/responses/Error" }
|
||||
|
||||
/api/terminals:
|
||||
get:
|
||||
operationId: listTerminals
|
||||
|
||||
Reference in New Issue
Block a user