openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SKWF_CTX_SET:
    post:
      tags:
      - SKWF_CONTEXT
      operationId: /rfc/SKWF_CTX_SET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONTEXT_CLASS:
                  type: string
                  maxLength: 30
                  description: Context class
                CONTEXT_ID:
                  type: string
                  maxLength: 32
                  description: 'KW Framework: Context ID'
                DESCRIPTION:
                  type: string
                  maxLength: 64
                  description: 'KW Framework: Description'
                X_REDUCE_TO_ONE:
                  type: string
                  maxLength: 1
                X_REPLACE:
                  type: string
                  maxLength: 1
                INSTANCE_SELECTORS:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Model: Selector type  enumValues: P=PHIO class,p=PHIO'
                        enum:
                        - P
                        - p
                      ATTRIBUTE:
                        type: string
                        maxLength: 25
                        description: Attribute of a document or a relationship
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Include-exclude attribute in search query  enumValues: E=Exclusive no.,I=Inclusive no.'
                        enum:
                        - E
                        - I
                      OP:
                        type: string
                        maxLength: 2
                        description: 'Context resolution: Selection operator  enumValues: MI=Minimum,LT=Less than,GT=Greater than,LE=Less than or equal to,EQ=Equal to,NB=Outside range,CP=Contains pattern,NE=Not equal to,BT=Within range,MA=Maximum,EX=Is evaluated,NP=Does not contain pattern,NX=Is not evaluated,GE=Greater than or equal to'
                        enum:
                        - MI
                        - LT
                        - GT
                        - LE
                        - EQ
                        - NB
                        - CP
                        - NE
                        - BT
                        - MA
                        - EX
                        - NP
                        - NX
                        - GE
                      LO:
                        type: string
                        maxLength: 64
                        description: Lower interval limit for search query
                      HI:
                        type: string
                        maxLength: 64
                        description: Upper interval limit for search query
                      PR:
                        type: integer
                        format: int32
                        description: 'Context resolution: Selection priority'
              required:
              - CONTEXT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERROR:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      'NO':
                        type: integer
                        format: int64
                        description: Message Number
                      V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                  INSTANCE_SELECTORS:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Model: Selector type  enumValues: P=PHIO class,p=PHIO'
                          enum:
                          - P
                          - p
                        ATTRIBUTE:
                          type: string
                          maxLength: 25
                          description: Attribute of a document or a relationship
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Include-exclude attribute in search query  enumValues: E=Exclusive no.,I=Inclusive no.'
                          enum:
                          - E
                          - I
                        OP:
                          type: string
                          maxLength: 2
                          description: 'Context resolution: Selection operator  enumValues: MI=Minimum,LT=Less than,GT=Greater than,LE=Less than or equal to,EQ=Equal to,NB=Outside range,CP=Contains pattern,NE=Not equal to,BT=Within range,MA=Maximum,EX=Is evaluated,NP=Does not contain pattern,NX=Is not evaluated,GE=Greater than or equal to'
                          enum:
                          - MI
                          - LT
                          - GT
                          - LE
                          - EQ
                          - NB
                          - CP
                          - NE
                          - BT
                          - MA
                          - EX
                          - NP
                          - NX
                          - GE
                        LO:
                          type: string
                          maxLength: 64
                          description: Lower interval limit for search query
                        HI:
                          type: string
                          maxLength: 64
                          description: Upper interval limit for search query
                        PR:
                          type: integer
                          format: int32
                          description: 'Context resolution: Selection priority'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
