openapi: 3.0.0
info:
  title: test useAbstractionForFiles for jaxrs-cxf
  version: 0.0.1
servers:
  - url: "http://localhost"
paths:
  /files/{id}:
    get:
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        200:
          description: File content
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        500:
          description: error message
          content:
            application/json:
              schema:
                type: object
                properties:
                  errormsg:
                    type: string
  /files/upload:
    post:
      requestBody:
        required: true
        description: The file content to upload
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        200:
          description: id
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
