openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_QUERY_EVENT:
    post:
      tags:
      - SWOR
      operationId: /rfc/SWO_QUERY_EVENT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EVENT:
                  type: string
                  maxLength: 32
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                OBJTYPE:
                  type: string
                  maxLength: 10
                TEXT:
                  type: string
                  default: ' '
                  maxLength: 1
              required:
              - EVENT
              - OBJTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  INFO:
                    type: object
                    properties:
                      EVENT:
                        type: string
                        maxLength: 32
                        description: Event
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      ISINTERF:
                        type: string
                        maxLength: 1
                        description: 'Interface object type  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      CREA_REL:
                        type: string
                        maxLength: 4
                        description: Release at Creation
                      EDITELEM:
                        type: string
                        maxLength: 32
                        description: Element name in upper/lower case
                      EDITORDER:
                        type: integer
                        format: int64
                        description: Editing sequence
                      DESCRIPT:
                        type: string
                        maxLength: 20
                        description: Name
                      SHORTTEXT:
                        type: string
                        maxLength: 80
                        description: Description
                      COUNTPARAM:
                        type: integer
                        format: int64
                        description: Number of parameters in method
                      MODELONLY:
                        type: string
                        maxLength: 1
                        description: 'Release status verb  enumValues: X=Object type is only modeled,""=Object type is implemented,R=Object type is released'
                        enum:
                        - X
                        - ''
                        - R
                      OBSOLETE:
                        type: string
                        maxLength: 4
                        description: Release in which object type was set as obsolete
                      EVNOINST:
                        type: string
                        maxLength: 1
                        description: 'Triggering instance for event not available  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                        enum:
                        - X
                        - ''
                  RETURN:
                    type: object
                    properties:
                      CODE:
                        type: integer
                        format: int64
                        description: Exception for method
                      ERRORTYPE:
                        type: integer
                        format: int64
                        description: 'Error type  enumValues: 1=Application Error,2=System error,0=Temporary error'
                        enum:
                        - '1'
                        - '2'
                        - '0'
                      WORKAREA:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MESSAGE:
                        type: integer
                        format: int64
                        description: Message number
                      TEXT:
                        type: string
                        maxLength: 256
                        description: Error Message
                      VARIABLE1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE4:
                        type: string
                        maxLength: 50
                        description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
