openapi: 3.0.1
info:
  title: Onlyoffice Rest Api
  description: OnlyOffice addon rest endpoints
  license:
    name: AGPL
    url: https://www.gnu.org/licenses/agpl-3.0.en.html
  version: "1.0"
paths:
  /onlyoffice/editor/api/version:
    get:
      operationId: versionGet
      responses:
        default:
          description: default response
          content:
            application/json: {}
  /onlyoffice/editor/config/{workspace}/{path}:
    post:
      operationId: configPost
      parameters:
      - name: workspace
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: path
        required: true
        schema:
          type: string
      responses:
        default:
          description: default response
          content:
            application/json: {}
  /onlyoffice/editor/content/{userId}/{key}:
    get:
      operationId: content
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: key
        in: path
        required: true
        schema:
          type: string
      responses:
        default:
          description: default response
          content:
            '*/*': {}
  /onlyoffice/editor/state/{userId}/{key}:
    get:
      operationId: localState
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: key
        in: path
        required: true
        schema:
          type: string
      responses:
        default:
          description: default response
          content:
            application/json: {}
  /onlyoffice/editor/status/{userId}/{key}:
    post:
      operationId: status
      parameters:
      - name: userId
        in: path
        required: true
        schema:
          type: string
      - name: key
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          '*/*':
            schema:
              type: string
      responses:
        default:
          description: default response
          content:
            application/json: {}
  /onlyoffice/editor/versions/{workspace}/{key}/{itemParPage}/{pageNum}:
    get:
      operationId: getVersions
      parameters:
      - name: workspace
        in: path
        required: true
        schema:
          type: string
      - name: key
        in: path
        required: true
        schema:
          type: string
      - name: itemParPage
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: pageNum
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        default:
          description: default response
          content:
            application/json: {}
  /onlyoffice/editor/viewer/{workspace}/{fileId}:
    get:
      operationId: viewerConfig
      parameters:
      - name: workspace
        in: path
        required: true
        schema:
          type: string
      - name: fileId
        in: path
        required: true
        schema:
          type: string
      responses:
        default:
          description: default response
          content:
            application/json: {}
