openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_QUERY_INTERFACES:
    post:
      tags:
      - SWOR
      summary: Request interfaces
      operationId: /rfc/SWO_QUERY_INTERFACES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                OBJTYPE:
                  type: string
                  maxLength: 10
                TEXT:
                  type: string
                  default: ' '
                  maxLength: 1
                INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      INTERFACE:
                        type: string
                        maxLength: 10
                        description: Interface
                      SHORTTEXT:
                        type: string
                        maxLength: 80
                        description: Description
                      KEYWORD:
                        type: string
                        maxLength: 20
                        description: Name
                      CREA_REL:
                        type: string
                        maxLength: 4
                        description: Release at Creation
              required:
              - OBJTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  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
                  INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        INTERFACE:
                          type: string
                          maxLength: 10
                          description: Interface
                        SHORTTEXT:
                          type: string
                          maxLength: 80
                          description: Description
                        KEYWORD:
                          type: string
                          maxLength: 20
                          description: Name
                        CREA_REL:
                          type: string
                          maxLength: 4
                          description: Release at Creation
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
