openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MESSAGE_TYPE_GET_MAPPING:
    post:
      tags:
      - BDGN
      operationId: /rfc/MESSAGE_TYPE_GET_MAPPING
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MESTYP:
                  type: string
                  maxLength: 30
                FIELD_MAPPING:
                  type: array
                  items:
                    type: object
                    properties:
                      SEGTYP:
                        type: string
                        maxLength: 10
                        description: Segment type
                      SEGFLD:
                        type: string
                        maxLength: 30
                        description: Field Name
                      QUALF:
                        type: string
                        maxLength: 10
                        description: Qualifier for IDoc types
                      MESTYP:
                        type: string
                        maxLength: 30
                        description: Message type
                      DIRECT:
                        type: integer
                        format: int64
                        description: Direction (1=outbound, 2=inbound)
                      LFDNR:
                        type: integer
                        format: int64
                        description: Sequence Number
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
              required:
              - MESTYP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FIELD_MAPPING:
                    type: array
                    items:
                      type: object
                      properties:
                        SEGTYP:
                          type: string
                          maxLength: 10
                          description: Segment type
                        SEGFLD:
                          type: string
                          maxLength: 30
                          description: Field Name
                        QUALF:
                          type: string
                          maxLength: 10
                          description: Qualifier for IDoc types
                        MESTYP:
                          type: string
                          maxLength: 30
                          description: Message type
                        DIRECT:
                          type: integer
                          format: int64
                          description: Direction (1=outbound, 2=inbound)
                        LFDNR:
                          type: integer
                          format: int64
                          description: Sequence Number
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
