openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_QUERY_OBJTYPE_DOCU:
    post:
      tags:
      - SWOR
      operationId: /rfc/SWO_QUERY_OBJTYPE_DOCU
      requestBody:
        content:
          application/json:
            schema:
              properties:
                API_ONLY:
                  type: string
                  default: X
                  maxLength: 1
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                OBJTYPE:
                  type: string
                  maxLength: 10
                PARAMETER:
                  type: string
                  default: ' '
                  maxLength: 32
                VERB:
                  type: string
                  default: ' '
                  maxLength: 32
                WITH_COMPLETE_DOCUMENTATION:
                  type: string
                  default: X
                  maxLength: 1
                DOCUMENTATION:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 2
                        description: Type of object (object type, component, parameter)
                      LINES:
                        type: string
                        maxLength: 6
                        description: Number of lines in documentation
                      DOCU_LINE:
                        type: string
                        maxLength: 132
                        description: Text Line
              required:
              - OBJTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    type: object
                    properties:
                      CODE:
                        type: integer
                        format: int64
                        description: Exception for method
                      ERRORTYPE:
                        type: integer
                        format: int64
                        description: 'Error type  enumValues: 1=Application Error,2=System error,0=Temporary error'
                        enum:
                        - '1'
                        - '2'
                        - '0'
                      WORKAREA:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MESSAGE:
                        type: integer
                        format: int64
                        description: Message number
                      TEXT:
                        type: string
                        maxLength: 256
                        description: Error Message
                      VARIABLE1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                  DOCUMENTATION:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 2
                          description: Type of object (object type, component, parameter)
                        LINES:
                          type: string
                          maxLength: 6
                          description: Number of lines in documentation
                        DOCU_LINE:
                          type: string
                          maxLength: 132
                          description: Text Line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
