openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_DOCS_LS_SYN_INSERT:
    post:
      tags:
      - SRIN
      operationId: /rfc/SRET_DOCS_LS_SYN_INSERT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CATID:
                  type: string
                  maxLength: 32
                CLIENT:
                  type: string
                  maxLength: 3
                  description: Client
                LAISO:
                  type: string
                  maxLength: 2
                LANGU:
                  type: string
                  maxLength: 1
                SAPCODEPAGE:
                  type: integer
                  format: int64
                BINCONTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      REFERENCE:
                        type: integer
                        format: int64
                        description: Reference of a binary data stream line to a document
                      BROW:
                        type: string
                        format: byte
                        description: Binary data stream
                DOCATTRTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        maxLength: 25
                        description: Document attribute name of an index category
                      MULTATRCNT:
                        type: integer
                        format: int64
                        description: Multi-document Attribute Counter
                      VALUE1:
                        type: string
                        maxLength: 64
                        description: Value of a Document Attribute
                      VALUE2:
                        type: string
                        maxLength: 64
                        description: Value of a Document Attribute
                      OPERATOR:
                        type: string
                        maxLength: 5
                        description: Operator
                      DOCREFER:
                        type: integer
                        format: int64
                        description: Reference of a Document Attribute to a Document
                DOCCONTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      REFERENCE:
                        type: integer
                        format: int64
                        description: Reference of a text data stream line to a document
                      TROW:
                        type: string
                        maxLength: 1022
                        description: Text data stream (line)
                DOCIDTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCID:
                        type: string
                        maxLength: 64
                        description: Document ID
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LAISO:
                        type: string
                        maxLength: 2
                        description: Language According to ISO 639 (2 Character)
                      CONTFLAG:
                        type: string
                        maxLength: 1
                        description: Document content ID
                      FILETYPE:
                        type: string
                        maxLength: 3
                        description: 'File type (3 characters)  enumValues: IBM=ASCII with IBM code page conversion (DOS),WK1=Spreadsheet format,DAT=ASCII data table with column tab,DBF=DBASE format,ASC=ASCII,BIN=Binary'
                        enum:
                        - IBM
                        - WK1
                        - DAT
                        - DBF
                        - ASC
                        - BIN
                      MIMETYPE:
                        type: string
                        maxLength: 64
                        description: Document type (MIME type)
                      BINLEN:
                        type: integer
                        format: int64
                        description: Length of a binary document
                      NEWDOC:
                        type: string
                        maxLength: 1
                        description: Indicates whether a new document is involved
                      COUNTER:
                        type: integer
                        format: int64
                        description: Document counter
                      STATUSID:
                        type: integer
                        format: int64
                        description: Return code
              required:
              - CATID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RCODE:
                    type: string
                    maxLength: 4
                    description: Error Code
                  BINCONTTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        REFERENCE:
                          type: integer
                          format: int64
                          description: Reference of a binary data stream line to a document
                        BROW:
                          type: string
                          format: byte
                          description: Binary data stream
                  DOCATTRTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          maxLength: 25
                          description: Document attribute name of an index category
                        MULTATRCNT:
                          type: integer
                          format: int64
                          description: Multi-document Attribute Counter
                        VALUE1:
                          type: string
                          maxLength: 64
                          description: Value of a Document Attribute
                        VALUE2:
                          type: string
                          maxLength: 64
                          description: Value of a Document Attribute
                        OPERATOR:
                          type: string
                          maxLength: 5
                          description: Operator
                        DOCREFER:
                          type: integer
                          format: int64
                          description: Reference of a Document Attribute to a Document
                  DOCCONTTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        REFERENCE:
                          type: integer
                          format: int64
                          description: Reference of a text data stream line to a document
                        TROW:
                          type: string
                          maxLength: 1022
                          description: Text data stream (line)
                  DOCIDTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCID:
                          type: string
                          maxLength: 64
                          description: Document ID
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LAISO:
                          type: string
                          maxLength: 2
                          description: Language According to ISO 639 (2 Character)
                        CONTFLAG:
                          type: string
                          maxLength: 1
                          description: Document content ID
                        FILETYPE:
                          type: string
                          maxLength: 3
                          description: 'File type (3 characters)  enumValues: IBM=ASCII with IBM code page conversion (DOS),WK1=Spreadsheet format,DAT=ASCII data table with column tab,DBF=DBASE format,ASC=ASCII,BIN=Binary'
                          enum:
                          - IBM
                          - WK1
                          - DAT
                          - DBF
                          - ASC
                          - BIN
                        MIMETYPE:
                          type: string
                          maxLength: 64
                          description: Document type (MIME type)
                        BINLEN:
                          type: integer
                          format: int64
                          description: Length of a binary document
                        NEWDOC:
                          type: string
                          maxLength: 1
                          description: Indicates whether a new document is involved
                        COUNTER:
                          type: integer
                          format: int64
                          description: Document counter
                        STATUSID:
                          type: integer
                          format: int64
                          description: Return code
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
