openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/S_TWB_READ_DOCU:
    post:
      tags:
      - S_TWB_RFC
      operationId: /rfc/S_TWB_READ_DOCU
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_DELETE_UNUSED_SYMBOLS:
                  type: string
                  default: X
                  maxLength: 1
                  description: Flag with Values ' ' and 'X'
                IV_DOCU_ID:
                  type: string
                  default: HY
                  maxLength: 2
                  description: Document Class
                IV_DOCU_LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Documentation language
                IV_DOCU_OBJECT:
                  type: string
                  maxLength: 60
                  description: Documentation Object
                IV_DOCU_TYPE:
                  type: string
                  default: E
                  maxLength: 1
                  description: Documentation Type
                IV_DOCU_VERSION:
                  type: integer
                  format: int64
                  description: Version of document
                IV_ONLY_HEADER:
                  type: string
                  maxLength: 1
                  description: Flag with Values ' ' and 'X'
                IV_REPLACE_CONTROL:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag with Values ' ' and 'X'
                ET_TEXTLINES:
                  type: array
                  items:
                    type: object
                    properties:
                      TDFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TDLINE:
                        type: string
                        maxLength: 132
                        description: Text Line
              required:
              - IV_DOCU_OBJECT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_DOKHL:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 2
                        description: Document class
                      OBJECT:
                        type: string
                        maxLength: 60
                        description: Documentation Object
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Documentation language
                      TYP:
                        type: string
                        maxLength: 1
                        description: Documentation type
                      DOKVERSION:
                        type: integer
                        format: int64
                        description: Version of Documentation Module
                      DOKSTATE:
                        type: string
                        maxLength: 1
                        description: Status of documentation module
                      DOKFORM:
                        type: string
                        maxLength: 16
                        description: STXD form
                      DOKSTYLE:
                        type: string
                        maxLength: 8
                        description: Style Name
                      DOKFUSER:
                        type: string
                        maxLength: 12
                        description: Created by
                      DOKFRELES:
                        type: string
                        maxLength: 4
                        description: Release
                      DOKFDATE:
                        type: string
                        format: date
                        description: Date created
                      DOKFTIME:
                        type: string
                        maxLength: 6
                        description: Time Created
                      DOKLUSER:
                        type: string
                        maxLength: 12
                        description: Last changed by
                      DOKLRELES:
                        type: string
                        maxLength: 4
                        description: Last Changed in Release
                      DOKLDATE:
                        type: string
                        format: date
                        description: Changed On
                      DOKLTIME:
                        type: string
                        maxLength: 6
                        description: Last Changed at
                  EV_DOKIL:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 2
                        description: Document class
                      OBJECT:
                        type: string
                        maxLength: 60
                        description: Documentation Object
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Documentation language
                      TYP:
                        type: string
                        maxLength: 1
                        description: Documentation type
                      VERSION:
                        type: integer
                        format: int64
                        description: Version of Documentation Module
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      TXTLINES:
                        type: integer
                        format: int64
                        description: Number of Text Lines in Line Table
                      DOKSTATE:
                        type: string
                        maxLength: 1
                        description: Status of documentation module
                      SELFDEF:
                        type: string
                        maxLength: 1
                        description: 'Object documentation status  enumValues: 1=Object does not appear in a screen,2=Not yet documented,""=Space: object requires documentation,3=The short text describes the object sufficiently'
                        enum:
                        - '1'
                        - '2'
                        - ''
                        - '3'
                  ET_TEXTLINES:
                    type: array
                    items:
                      type: object
                      properties:
                        TDFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TDLINE:
                          type: string
                          maxLength: 132
                          description: Text Line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
