openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SKWG_SBSCR_CREATE:
    post:
      tags:
      - SKWG_SUBSCRIPTION
      operationId: /rfc/SKWG_SBSCR_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ATTRIBUTES:
                  type: object
                  properties:
                    INTVAL:
                      type: integer
                      format: int32
                      description: Natural number
                    CHANNEL:
                      type: string
                      maxLength: 40
                      description: Character field of length 40
                    X_POLLED:
                      type: string
                      maxLength: 1
                      description: 'KW Framework: Boolean flag (''X'' set, '' '' deleted)  enumValues: X=Flag set,""=Flag deleted'
                      enum:
                      - X
                      - ''
                    NAME:
                      type: string
                      maxLength: 50
                      description: Text Field
                    RECLANGU:
                      type: string
                      maxLength: 1
                      description: Language Key
                    SENDNEXT:
                      type: integer
                      format: int64
                      description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                    EXPIREDAT:
                      type: integer
                      format: int64
                      description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                    X_UNSUBSCRIBED:
                      type: string
                      maxLength: 1
                      description: 'KW Framework: Boolean flag (''X'' set, '' '' deleted)  enumValues: X=Flag set,""=Flag deleted'
                      enum:
                      - X
                      - ''
                EVENT:
                  type: object
                  properties:
                    EVENT:
                      type: string
                      maxLength: 32
                      description: Event
                    ISPOLLABLE:
                      type: string
                      maxLength: 1
                      description: 'KW Framework: Boolean flag (''X'' set, '' '' deleted)  enumValues: X=Flag set,""=Flag deleted'
                      enum:
                      - X
                      - ''
                RECIPIENT:
                  type: object
                  properties:
                    RECIPIENT:
                      type: string
                      maxLength: 40
                      description: Character field of length 40
                SOTYP:
                  type: object
                  properties:
                    OBJECTTYPE:
                      type: string
                      maxLength: 30
                      description: Object Type Name
                    DISPLAYNAME:
                      type: string
                      maxLength: 50
                      description: Text Field
                X_MULTI_SBSCR:
                  type: string
                  default: X
                  maxLength: 1
                  description: 'KW Framework: Boolean Flag (''X'' Set, '' '' Deleted)'
                BADOBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      INSTID:
                        type: string
                        maxLength: 70
                        description: Instance Ident. in BOR Compat. Persistent Object References
                      TYPEID:
                        type: string
                        maxLength: 32
                        description: Type of Objects in Persistent Object References
                      CATID:
                        type: string
                        maxLength: 2
                        description: 'Category of Objects in Persistent Object References  enumValues: NN=Category (still) Not Known - Internal use only!!!,BC=Instances of Business Classes (ABAP Objects),BO=Instances of BOR Object Types,CL=Instances of ABAP Objects Classes - Internal Use Only!'
                        enum:
                        - NN
                        - BC
                        - BO
                        - CL
                OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      INSTID:
                        type: string
                        maxLength: 70
                        description: Instance Ident. in BOR Compat. Persistent Object References
                      TYPEID:
                        type: string
                        maxLength: 32
                        description: Type of Objects in Persistent Object References
                      CATID:
                        type: string
                        maxLength: 2
                        description: 'Category of Objects in Persistent Object References  enumValues: NN=Category (still) Not Known - Internal use only!!!,BC=Instances of Business Classes (ABAP Objects),BO=Instances of BOR Object Types,CL=Instances of ABAP Objects Classes - Internal Use Only!'
                        enum:
                        - NN
                        - BC
                        - BO
                        - CL
              required:
              - EVENT
              - SOTYP
      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
                  BADOBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        INSTID:
                          type: string
                          maxLength: 70
                          description: Instance Ident. in BOR Compat. Persistent Object References
                        TYPEID:
                          type: string
                          maxLength: 32
                          description: Type of Objects in Persistent Object References
                        CATID:
                          type: string
                          maxLength: 2
                          description: 'Category of Objects in Persistent Object References  enumValues: NN=Category (still) Not Known - Internal use only!!!,BC=Instances of Business Classes (ABAP Objects),BO=Instances of BOR Object Types,CL=Instances of ABAP Objects Classes - Internal Use Only!'
                          enum:
                          - NN
                          - BC
                          - BO
                          - CL
                  OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        INSTID:
                          type: string
                          maxLength: 70
                          description: Instance Ident. in BOR Compat. Persistent Object References
                        TYPEID:
                          type: string
                          maxLength: 32
                          description: Type of Objects in Persistent Object References
                        CATID:
                          type: string
                          maxLength: 2
                          description: 'Category of Objects in Persistent Object References  enumValues: NN=Category (still) Not Known - Internal use only!!!,BC=Instances of Business Classes (ABAP Objects),BO=Instances of BOR Object Types,CL=Instances of ABAP Objects Classes - Internal Use Only!'
                          enum:
                          - NN
                          - BC
                          - BO
                          - CL
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
