openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_GET_TYPE_INFO:
    post:
      tags:
      - SWOR
      summary: Read business object type information
      operationId: /rfc/SWO_GET_TYPE_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OBJTYPE:
                  type: string
                  maxLength: 10
                PARAMETER:
                  type: array
                  items:
                    type: object
                    properties:
                      METHOD:
                        type: string
                        maxLength: 32
                        description: Method
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter for method
                      ELEMTYPE:
                        type: string
                        maxLength: 1
                        description: 'Element type  enumValues: I=Import,A=Export and import,E=Export'
                        enum:
                        - I
                        - A
                        - E
                      OBLIG:
                        type: string
                        maxLength: 1
                        description: 'Mandatory element  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      ELEMLENGTH:
                        type: integer
                        format: int64
                        description: Length of the field in bytes
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'ABAP Type of element  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string (old
                          Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                        enum:
                        - N
                        - s
                        - h
                        - y
                        - l
                        - b
                        - P
                        - T
                        - u
                        - I
                        - F
                        - v
                        - V
                        - X
                        - C
                        - g
                        - r
                        - D
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      TABELEM:
                        type: string
                        maxLength: 1
                        description: 'Multiline element  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      REFOBJTYPE:
                        type: string
                        maxLength: 10
                        description: Reference obj. type
                VERB:
                  type: array
                  items:
                    type: object
                    properties:
                      VERB:
                        type: string
                        maxLength: 32
                        description: Object type component
                      VERBTYPE:
                        type: string
                        maxLength: 1
                        description: 'Verb type (key, attr., method)  enumValues: ""=No verb,A=Attribute,K=Key field,E=Event,M=Method'
                        enum:
                        - ''
                        - A
                        - K
                        - E
                        - M
                      ELEMTYPE:
                        type: string
                        maxLength: 1
                        description: 'Element type  enumValues: I=Import,A=Export and import,E=Export'
                        enum:
                        - I
                        - A
                        - E
                      ELEMLENGTH:
                        type: integer
                        format: int64
                        description: Length of the field in bytes
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'ABAP Type of element  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string (old
                          Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                        enum:
                        - N
                        - s
                        - h
                        - y
                        - l
                        - b
                        - P
                        - T
                        - u
                        - I
                        - F
                        - v
                        - V
                        - X
                        - C
                        - g
                        - r
                        - D
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      TABELEM:
                        type: string
                        maxLength: 1
                        description: 'Multiline element  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      REFOBJTYPE:
                        type: string
                        maxLength: 10
                        description: Reference obj. type
                      DIALOG:
                        type: string
                        maxLength: 1
                        description: 'Method with dialog  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      RESULT:
                        type: string
                        maxLength: 1
                        description: 'Method with result parameter  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      COUNTPARAM:
                        type: integer
                        format: int64
                        description: Number of parameters in method
              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
                  PARAMETER:
                    type: array
                    items:
                      type: object
                      properties:
                        METHOD:
                          type: string
                          maxLength: 32
                          description: Method
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter for method
                        ELEMTYPE:
                          type: string
                          maxLength: 1
                          description: 'Element type  enumValues: I=Import,A=Export and import,E=Export'
                          enum:
                          - I
                          - A
                          - E
                        OBLIG:
                          type: string
                          maxLength: 1
                          description: 'Mandatory element  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        ELEMLENGTH:
                          type: integer
                          format: int64
                          description: Length of the field in bytes
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'ABAP Type of element  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string
                            (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                          enum:
                          - N
                          - s
                          - h
                          - y
                          - l
                          - b
                          - P
                          - T
                          - u
                          - I
                          - F
                          - v
                          - V
                          - X
                          - C
                          - g
                          - r
                          - D
                        LOWERCASE:
                          type: string
                          maxLength: 1
                          description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        TABELEM:
                          type: string
                          maxLength: 1
                          description: 'Multiline element  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        REFOBJTYPE:
                          type: string
                          maxLength: 10
                          description: Reference obj. type
                  VERB:
                    type: array
                    items:
                      type: object
                      properties:
                        VERB:
                          type: string
                          maxLength: 32
                          description: Object type component
                        VERBTYPE:
                          type: string
                          maxLength: 1
                          description: 'Verb type (key, attr., method)  enumValues: ""=No verb,A=Attribute,K=Key field,E=Event,M=Method'
                          enum:
                          - ''
                          - A
                          - K
                          - E
                          - M
                        ELEMTYPE:
                          type: string
                          maxLength: 1
                          description: 'Element type  enumValues: I=Import,A=Export and import,E=Export'
                          enum:
                          - I
                          - A
                          - E
                        ELEMLENGTH:
                          type: integer
                          format: int64
                          description: Length of the field in bytes
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'ABAP Type of element  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string
                            (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                          enum:
                          - N
                          - s
                          - h
                          - y
                          - l
                          - b
                          - P
                          - T
                          - u
                          - I
                          - F
                          - v
                          - V
                          - X
                          - C
                          - g
                          - r
                          - D
                        LOWERCASE:
                          type: string
                          maxLength: 1
                          description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        TABELEM:
                          type: string
                          maxLength: 1
                          description: 'Multiline element  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        REFOBJTYPE:
                          type: string
                          maxLength: 10
                          description: Reference obj. type
                        DIALOG:
                          type: string
                          maxLength: 1
                          description: 'Method with dialog  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        RESULT:
                          type: string
                          maxLength: 1
                          description: 'Method with result parameter  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        COUNTPARAM:
                          type: integer
                          format: int64
                          description: Number of parameters in method
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
