mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 22:40:58 +03:00
Complete loading page to pdf and base API
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.1
|
||||
openapi: 3.1.0
|
||||
info:
|
||||
title: Sample API
|
||||
description: API description in Markdown.
|
||||
@@ -71,6 +71,39 @@ paths:
|
||||
default:
|
||||
$ref: '#/components/responses/undefinedError'
|
||||
|
||||
/pages/{id}/file/{file_id}:
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
- in: path
|
||||
name: file_id
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
get:
|
||||
operationId: getFile
|
||||
description: Get file content
|
||||
responses:
|
||||
200:
|
||||
description: File content
|
||||
content:
|
||||
application/pdf: {}
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
text/html:
|
||||
schema:
|
||||
type: string
|
||||
404:
|
||||
description: Page of file not found
|
||||
default:
|
||||
$ref: '#/components/responses/undefinedError'
|
||||
|
||||
components:
|
||||
responses:
|
||||
undefinedError:
|
||||
|
||||
Reference in New Issue
Block a user