openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/OSP/CORRELATION_GET:
    post:
      tags:
      - /OSP/CORRELATION
      summary: FM to retreive existing correlation records
      operationId: /rfc/OSP/CORRELATION_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_CORR_OBJECT:
                  type: array
                  items:
                    type: object
                    properties:
                      CORRELATION_ID:
                        type: string
                        maxLength: 32
                        description: Unique Identifier for Correlation Record
                      CONTEXT_ID:
                        type: string
                        maxLength: 5
                        description: Context of the Application
                      CREATED_BY:
                        type: string
                        maxLength: 12
                        description: Name of User who created the Correlation record
                      RFC_DEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                IT_EXT_OBJECT:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: string
                        maxLength: 64
                        description: Unique indetifier of the External object record
                      OBJECT_TYPE:
                        type: integer
                        format: int64
                        description: The External object type
                      STATUS:
                        type: string
                        maxLength: 1
                        description: Status of External object record
                      CREATED_BY:
                        type: string
                        maxLength: 12
                        description: Name of User who created the External object record
                      RFC_DEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                IT_SAP_OBJECT:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: string
                        maxLength: 32
                        description: Unique identifier of the SAP object record
                      OBJECT_TYPE:
                        type: integer
                        format: int64
                        description: The SAP object type
                      EXT_RELEVANT:
                        type: string
                        maxLength: 1
                        description: Indicates if the SAP object is External object relevant
                      STATUS:
                        type: string
                        maxLength: 1
                        description: Status of the SAP object record
                      CREATED_BY:
                        type: string
                        maxLength: 12
                        description: Name of User who created the SAP object record
                      RFC_DEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                IT_TARGET_TYPE:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_TYPE:
                        type: integer
                        format: int64
                        description: The SAP object type
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_CORR:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        CORRELATION_ID:
                          type: string
                          maxLength: 32
                          description: Unique Identifier for Correlation Record
                        CONTEXT_ID:
                          type: string
                          maxLength: 5
                          description: Context of the Application
                        STATUS:
                          type: string
                          maxLength: 1
                          description: Status of the Correlation record
                        CREATED_BY:
                          type: string
                          maxLength: 12
                          description: Name of User who created the Correlation record
                        CREATED_ON:
                          type: string
                          format: date
                          description: Date of creation of Correlation record
                        MODIFIED_BY:
                          type: string
                          maxLength: 12
                          description: Name of User who modified the Correlation record
                        MODIFIED_ON:
                          type: string
                          format: date
                          description: Date of modification of Correlation record
                  ET_EXTCORR_OBJECT:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        OBJECT_ID:
                          type: string
                          maxLength: 64
                          description: Unique indetifier of the External object record
                        OBJECT_TYPE:
                          type: integer
                          format: int64
                          description: The External object type
                        CORRELATION_ID:
                          type: string
                          maxLength: 32
                          description: Unique Identifier for Correlation Record
                        STATUS:
                          type: string
                          maxLength: 1
                          description: Status of External object record
                        CREATED_BY:
                          type: string
                          maxLength: 12
                          description: Name of User who created the External object record
                        CREATED_ON:
                          type: string
                          format: date
                          description: Date of creation of External object record
                        MODIFIED_BY:
                          type: string
                          maxLength: 12
                          description: Name of User who modified the External object record
                        MODIFIED_ON:
                          type: string
                          format: date
                          description: Date of modification of External object record
                        RFC_DEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                  ET_SAPCORR_OBJECT:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        OBJECT_ID:
                          type: string
                          maxLength: 32
                          description: Unique identifier of the SAP object record
                        OBJECT_TYPE:
                          type: integer
                          format: int64
                          description: The SAP object type
                        CORRELATION_ID:
                          type: string
                          maxLength: 32
                          description: Unique Identifier for Correlation Record
                        EXT_RELEVANT:
                          type: string
                          maxLength: 1
                          description: Indicates if the SAP object is External object relevant
                        STATUS:
                          type: string
                          maxLength: 1
                          description: Status of the SAP object record
                        CREATED_BY:
                          type: string
                          maxLength: 12
                          description: Name of User who created the SAP object record
                        CREATED_ON:
                          type: string
                          format: date
                          description: Date of creation of SAP object record
                        MODIFIED_BY:
                          type: string
                          maxLength: 12
                          description: Name of User who modified the SAP object record
                        MODIFIED_ON:
                          type: string
                          format: date
                          description: Date of modification of SAP object record
                        RFC_DEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
