Complete loading page to pdf and base API

This commit is contained in:
2023-03-27 22:09:54 +03:00
parent 92469fa3a2
commit 91d8f676ae
24 changed files with 864 additions and 95 deletions

View File

@@ -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: