openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/OCS_API_CALCULATE_QUEUE:
    post:
      tags:
      - OCS_API
      operationId: /rfc/OCS_API_CALCULATE_QUEUE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_DESCRIPTION:
                  type: string
                  default: ' '
                  maxLength: 80
                IV_REQID:
                  type: string
                  default: ' '
                  maxLength: 40
                ET_MISSING_PREREQS:
                  type: array
                  items:
                    type: object
                    properties:
                      REQUMENT:
                        type: string
                        maxLength: 40
                        description: 'PAT07: Prerequisite'
                      CONJUNCT:
                        type: integer
                        format: int64
                        description: 'PAT07: Logical AND block'
                      REQUESTER:
                        type: string
                        maxLength: 40
                        description: 'PAT07: Prerequisite'
                      REQ_TYPE:
                        type: string
                        maxLength: 1
                        description: 'PAT07: Prerequisite type'
                      DESCRIPT:
                        type: string
                        maxLength: 60
                        description: Support Package description
                ET_PATQ:
                  type: array
                  items:
                    type: object
                    properties:
                      PATCH:
                        type: string
                        maxLength: 20
                        description: Support Package name
                      SEQUENCE:
                        type: integer
                        format: int64
                        description: Support Package sequence
                      VALID_CONJ:
                        type: integer
                        format: int64
                        description: 'PAT07: Logical AND block'
                      PATCH_TYPE:
                        type: string
                        maxLength: 3
                        description: 'OCS Package Type  enumValues: LAN=Language Package,HOT=Hot Package,AOS=Add-On Supplement Description,PAT=SPAM/SAINT Update,AOX=Add-On Exchange Package,CRT=Conflict Resolution Transport (CRT),MOD=Modification Adjustment,FFD=FCS Final Delta Package (FFDP),CSP=Component Support Package (from 6.40),AOU=Add-on upgrade,PCS=PCS (Preconfigured System),AOI=Add-On Installation,BWP=BW Support Package (BWP),COP=Component Support Package (until 6.20),AOP=Add-On Support Package
                          (until 6.20),LCP=Legal Change Package (LCP)'
                        enum:
                        - LAN
                        - HOT
                        - AOS
                        - PAT
                        - AOX
                        - CRT
                        - MOD
                        - FFD
                        - CSP
                        - AOU
                        - PCS
                        - AOI
                        - BWP
                        - COP
                        - AOP
                        - LCP
                      COMPONENT:
                        type: string
                        maxLength: 30
                        description: Component
                      COMP_REL:
                        type: string
                        maxLength: 10
                        description: Component release
                      ADDON_ID:
                        type: string
                        maxLength: 10
                        description: Name of an Add-On Product
                      ADDON_REL:
                        type: string
                        maxLength: 12
                        description: Version of an "Add-On" Product
                      SHORT_TEXT:
                        type: string
                        maxLength: 60
                        description: Support Package description
                      TO_REL:
                        type: string
                        maxLength: 4
                        description: Release Status of SAP System
                ET_QCALC_TRC:
                  type: array
                  items:
                    type: object
                    properties:
                      TRACE_ID:
                        type: integer
                        format: int64
                        description: ID of a Trace Section in the Queue Calculation
                      REQUESTER:
                        type: string
                        maxLength: 20
                        description: Support Package name
                      PATCH:
                        type: string
                        maxLength: 20
                        description: Support Package name
                      CONJUNCT:
                        type: integer
                        format: int64
                        description: 'PAT07: Logical AND block'
                      SEQUENCE:
                        type: integer
                        format: int64
                        description: 'PAT07/PAT08/PAT13: Sequence'
                      REQ_TYPE:
                        type: string
                        maxLength: 1
                        description: 'PAT07: Prerequisite type'
                      REQUMENT:
                        type: string
                        maxLength: 40
                        description: 'PAT07: Prerequisite'
                      TRUTH:
                        type: string
                        maxLength: 1
                        description: 'PAT07: True value  enumValues: O=Opt,M=Min.,T=True,F=False'
                        enum:
                        - O
                        - M
                        - T
                        - F
                      RSLT:
                        type: string
                        maxLength: 1
                        description: 'PAT07: True value  enumValues: O=Opt,M=Min.,T=True,F=False'
                        enum:
                        - O
                        - M
                        - T
                        - F
                      REQUESTED:
                        type: string
                        maxLength: 20
                        description: Support Package name
                      REQUSTD_ID:
                        type: integer
                        format: int64
                        description: ID of a Trace Section in the Queue Calculation
                      DESCRIPT:
                        type: string
                        maxLength: 60
                        description: Support Package description
                ET_REACHED_LEVEL:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPONENT:
                        type: string
                        maxLength: 30
                        description: Software Component
                      RELEASE:
                        type: string
                        maxLength: 10
                        description: SAP Release
                      EXTRELEASE:
                        type: string
                        maxLength: 10
                        description: Support Package Level of a Software Component
                      COMP_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Component Type Values  enumValues: V=Application Platform Component,A=Add-On Component (Old),X=Netweaver Plug-In,""=Main Component (Old),R=Application Component,C=Projects,O=Common Application Objects,F=Industry Solution - Layer 4,G=Industry Solution - Layer 3,S=Netweaver Basis Component,E=Industry Solution - Layer 5,N=Application Extensions,H=Industry Solution - Layer 2,W=Netweaver Add-On,I=Industry Solution - Layer 1,P=Application Plug-In'
                        enum:
                        - V
                        - A
                        - X
                        - ''
                        - R
                        - C
                        - O
                        - F
                        - G
                        - S
                        - E
                        - N
                        - H
                        - W
                        - I
                        - P
                IT_TARGET_LEVEL:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPONENT:
                        type: string
                        maxLength: 30
                        description: Software Component
                      RELEASE:
                        type: string
                        maxLength: 10
                        description: SAP Release
                      EXTRELEASE:
                        type: string
                        maxLength: 10
                        description: Support Package Level of a Software Component
                      COMP_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Component Type Values  enumValues: V=Application Platform Component,A=Add-On Component (Old),X=Netweaver Plug-In,""=Main Component (Old),R=Application Component,C=Projects,O=Common Application Objects,F=Industry Solution - Layer 4,G=Industry Solution - Layer 3,S=Netweaver Basis Component,E=Industry Solution - Layer 5,N=Application Extensions,H=Industry Solution - Layer 2,W=Netweaver Add-On,I=Industry Solution - Layer 1,P=Application Plug-In'
                        enum:
                        - V
                        - A
                        - X
                        - ''
                        - R
                        - C
                        - O
                        - F
                        - G
                        - S
                        - E
                        - N
                        - H
                        - W
                        - I
                        - P
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_MESSAGE:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      MSGTXT:
                        type: string
                        maxLength: 229
                        description: Bad patch description
                      MSGARGS:
                        type: array
                        items:
                          type: object
                          properties:
                            NAME:
                              type: string
                              maxLength: 10
                              description: Character Field Length = 10
                            VALUE:
                              type: string
                              maxLength: 50
                              description: Message Variable
                  EV_ADDON_MODE:
                    type: string
                    maxLength: 1
                  EV_MESSAGE:
                    type: string
                    maxLength: 80
                  EV_RC:
                    type: integer
                    format: int32
                  ET_MISSING_PREREQS:
                    type: array
                    items:
                      type: object
                      properties:
                        REQUMENT:
                          type: string
                          maxLength: 40
                          description: 'PAT07: Prerequisite'
                        CONJUNCT:
                          type: integer
                          format: int64
                          description: 'PAT07: Logical AND block'
                        REQUESTER:
                          type: string
                          maxLength: 40
                          description: 'PAT07: Prerequisite'
                        REQ_TYPE:
                          type: string
                          maxLength: 1
                          description: 'PAT07: Prerequisite type'
                        DESCRIPT:
                          type: string
                          maxLength: 60
                          description: Support Package description
                  ET_PATQ:
                    type: array
                    items:
                      type: object
                      properties:
                        PATCH:
                          type: string
                          maxLength: 20
                          description: Support Package name
                        SEQUENCE:
                          type: integer
                          format: int64
                          description: Support Package sequence
                        VALID_CONJ:
                          type: integer
                          format: int64
                          description: 'PAT07: Logical AND block'
                        PATCH_TYPE:
                          type: string
                          maxLength: 3
                          description: 'OCS Package Type  enumValues: LAN=Language Package,HOT=Hot Package,AOS=Add-On Supplement Description,PAT=SPAM/SAINT Update,AOX=Add-On Exchange Package,CRT=Conflict Resolution Transport (CRT),MOD=Modification Adjustment,FFD=FCS Final Delta Package (FFDP),CSP=Component Support Package (from 6.40),AOU=Add-on upgrade,PCS=PCS (Preconfigured System),AOI=Add-On Installation,BWP=BW Support Package (BWP),COP=Component Support Package (until 6.20),AOP=Add-On Support Package
                            (until 6.20),LCP=Legal Change Package (LCP)'
                          enum:
                          - LAN
                          - HOT
                          - AOS
                          - PAT
                          - AOX
                          - CRT
                          - MOD
                          - FFD
                          - CSP
                          - AOU
                          - PCS
                          - AOI
                          - BWP
                          - COP
                          - AOP
                          - LCP
                        COMPONENT:
                          type: string
                          maxLength: 30
                          description: Component
                        COMP_REL:
                          type: string
                          maxLength: 10
                          description: Component release
                        ADDON_ID:
                          type: string
                          maxLength: 10
                          description: Name of an Add-On Product
                        ADDON_REL:
                          type: string
                          maxLength: 12
                          description: Version of an "Add-On" Product
                        SHORT_TEXT:
                          type: string
                          maxLength: 60
                          description: Support Package description
                        TO_REL:
                          type: string
                          maxLength: 4
                          description: Release Status of SAP System
                  ET_QCALC_TRC:
                    type: array
                    items:
                      type: object
                      properties:
                        TRACE_ID:
                          type: integer
                          format: int64
                          description: ID of a Trace Section in the Queue Calculation
                        REQUESTER:
                          type: string
                          maxLength: 20
                          description: Support Package name
                        PATCH:
                          type: string
                          maxLength: 20
                          description: Support Package name
                        CONJUNCT:
                          type: integer
                          format: int64
                          description: 'PAT07: Logical AND block'
                        SEQUENCE:
                          type: integer
                          format: int64
                          description: 'PAT07/PAT08/PAT13: Sequence'
                        REQ_TYPE:
                          type: string
                          maxLength: 1
                          description: 'PAT07: Prerequisite type'
                        REQUMENT:
                          type: string
                          maxLength: 40
                          description: 'PAT07: Prerequisite'
                        TRUTH:
                          type: string
                          maxLength: 1
                          description: 'PAT07: True value  enumValues: O=Opt,M=Min.,T=True,F=False'
                          enum:
                          - O
                          - M
                          - T
                          - F
                        RSLT:
                          type: string
                          maxLength: 1
                          description: 'PAT07: True value  enumValues: O=Opt,M=Min.,T=True,F=False'
                          enum:
                          - O
                          - M
                          - T
                          - F
                        REQUESTED:
                          type: string
                          maxLength: 20
                          description: Support Package name
                        REQUSTD_ID:
                          type: integer
                          format: int64
                          description: ID of a Trace Section in the Queue Calculation
                        DESCRIPT:
                          type: string
                          maxLength: 60
                          description: Support Package description
                  ET_REACHED_LEVEL:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPONENT:
                          type: string
                          maxLength: 30
                          description: Software Component
                        RELEASE:
                          type: string
                          maxLength: 10
                          description: SAP Release
                        EXTRELEASE:
                          type: string
                          maxLength: 10
                          description: Support Package Level of a Software Component
                        COMP_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Component Type Values  enumValues: V=Application Platform Component,A=Add-On Component (Old),X=Netweaver Plug-In,""=Main Component (Old),R=Application Component,C=Projects,O=Common Application Objects,F=Industry Solution - Layer 4,G=Industry Solution - Layer 3,S=Netweaver Basis Component,E=Industry Solution - Layer 5,N=Application Extensions,H=Industry Solution - Layer 2,W=Netweaver Add-On,I=Industry Solution - Layer 1,P=Application Plug-In'
                          enum:
                          - V
                          - A
                          - X
                          - ''
                          - R
                          - C
                          - O
                          - F
                          - G
                          - S
                          - E
                          - N
                          - H
                          - W
                          - I
                          - P
                  IT_TARGET_LEVEL:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPONENT:
                          type: string
                          maxLength: 30
                          description: Software Component
                        RELEASE:
                          type: string
                          maxLength: 10
                          description: SAP Release
                        EXTRELEASE:
                          type: string
                          maxLength: 10
                          description: Support Package Level of a Software Component
                        COMP_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Component Type Values  enumValues: V=Application Platform Component,A=Add-On Component (Old),X=Netweaver Plug-In,""=Main Component (Old),R=Application Component,C=Projects,O=Common Application Objects,F=Industry Solution - Layer 4,G=Industry Solution - Layer 3,S=Netweaver Basis Component,E=Industry Solution - Layer 5,N=Application Extensions,H=Industry Solution - Layer 2,W=Netweaver Add-On,I=Industry Solution - Layer 1,P=Application Plug-In'
                          enum:
                          - V
                          - A
                          - X
                          - ''
                          - R
                          - C
                          - O
                          - F
                          - G
                          - S
                          - E
                          - N
                          - H
                          - W
                          - I
                          - P
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
