openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_TYPE_INFO_GET:
    post:
      tags:
      - SWOR
      summary: 'Broker: Read info type for one object (type)'
      operationId: /rfc/SWO_TYPE_INFO_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OBJNAME:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: Object name
                OBJTYPE:
                  type: string
                  default: ' '
                  maxLength: 10
                  description: Object type
                ABAP_NAMES:
                  type: array
                  items:
                    type: object
                    properties:
                      METHOD:
                        type: string
                        maxLength: 32
                        description: Method
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter for method
                      ABAPNAME:
                        type: string
                        maxLength: 30
                        description: Name of ABAP Function
                DDIC_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX:
                        type: integer
                        format: int32
                        description: Natural number
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                TYPEINFO:
                  type: array
                  items:
                    type: object
                    properties:
                      INFOTYPE:
                        type: string
                        maxLength: 1
                        description: 'Information type for OLE type information  enumValues: H=Object type header data,A=Attribute,K=Key field,P=Parameter,M=Method'
                        enum:
                        - H
                        - A
                        - K
                        - P
                        - M
                      ELEMENT:
                        type: string
                        maxLength: 32
                        description: Element
                      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
                      REFOBJTYPE:
                        type: string
                        maxLength: 10
                        description: Reference obj. type
                      CREA_REL:
                        type: string
                        maxLength: 4
                        description: Release at Creation
                      FLAGS:
                        type: integer
                        format: int64
                        description: 'Flags for OLE type information  enumValues: 0000000002=Char. type in upper case and lower case,0000000016=Import,0000000128=API Method,0000000064=Method with dialog,0000000256=Class method/attribute,0000000008=Export,0000000032=Result parameter,0000000512=Factory method (only supported for API methods),0000000001=Type is multiline,0000000004=Mandatory'
                        enum:
                        - '0000000002'
                        - '0000000016'
                        - '0000000128'
                        - '0000000064'
                        - '0000000256'
                        - '0000000008'
                        - '0000000032'
                        - '0000000512'
                        - '0000000001'
                        - '0000000004'
                      REFSTRUCT:
                        type: string
                        maxLength: 30
                        description: Reference table
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  HEADER:
                    type: object
                    properties:
                      INFOTYPE:
                        type: string
                        maxLength: 1
                        description: 'Information type for OLE type information  enumValues: H=Object type header data,A=Attribute,K=Key field,P=Parameter,M=Method'
                        enum:
                        - H
                        - A
                        - K
                        - P
                        - M
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      CLSID:
                        type: string
                        maxLength: 38
                        description: OLE class ID
                      EPRIMETHOD:
                        type: string
                        maxLength: 32
                        description: Default method
                      EPRIATTRIB:
                        type: string
                        maxLength: 32
                        description: Default attribute
                      CREA_REL:
                        type: string
                        maxLength: 4
                        description: Release at Creation
                      CHAN_DATE:
                        type: string
                        format: date
                        description: Date of Last Change
                      CHAN_TIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                      CHAN_REL:
                        type: string
                        maxLength: 4
                        description: Last Changed in Release
                      EDITELEM:
                        type: string
                        maxLength: 32
                        description: Object name
                  OBJNAME:
                    type: string
                    maxLength: 32
                    description: Object name
                  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
                  ABAP_NAMES:
                    type: array
                    items:
                      type: object
                      properties:
                        METHOD:
                          type: string
                          maxLength: 32
                          description: Method
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter for method
                        ABAPNAME:
                          type: string
                          maxLength: 30
                          description: Name of ABAP Function
                  DDIC_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        INDEX:
                          type: integer
                          format: int32
                          description: Natural number
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                  TYPEINFO:
                    type: array
                    items:
                      type: object
                      properties:
                        INFOTYPE:
                          type: string
                          maxLength: 1
                          description: 'Information type for OLE type information  enumValues: H=Object type header data,A=Attribute,K=Key field,P=Parameter,M=Method'
                          enum:
                          - H
                          - A
                          - K
                          - P
                          - M
                        ELEMENT:
                          type: string
                          maxLength: 32
                          description: Element
                        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
                        REFOBJTYPE:
                          type: string
                          maxLength: 10
                          description: Reference obj. type
                        CREA_REL:
                          type: string
                          maxLength: 4
                          description: Release at Creation
                        FLAGS:
                          type: integer
                          format: int64
                          description: 'Flags for OLE type information  enumValues: 0000000002=Char. type in upper case and lower case,0000000016=Import,0000000128=API Method,0000000064=Method with dialog,0000000256=Class method/attribute,0000000008=Export,0000000032=Result parameter,0000000512=Factory method (only supported for API methods),0000000001=Type is multiline,0000000004=Mandatory'
                          enum:
                          - '0000000002'
                          - '0000000016'
                          - '0000000128'
                          - '0000000064'
                          - '0000000256'
                          - '0000000008'
                          - '0000000032'
                          - '0000000512'
                          - '0000000001'
                          - '0000000004'
                        REFSTRUCT:
                          type: string
                          maxLength: 30
                          description: Reference table
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
