openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_DIAG_INSTALLED_COMPONENTS:
    post:
      tags:
      - SDB6DIAG
      summary: 'DB6: get list of components installed on database'
      operationId: /rfc/DB6_DIAG_INSTALLED_COMPONENTS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                COMPONENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      SYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      SCHEMA:
                        type: string
                        maxLength: 20
                        description: 'DB6: Schema Name'
                      COMPONENT:
                        type: string
                        maxLength: 30
                        description: Software Component
                      RELEASE:
                        type: string
                        maxLength: 10
                        description: SAP Release
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  COMPONENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        SYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        SCHEMA:
                          type: string
                          maxLength: 20
                          description: 'DB6: Schema Name'
                        COMPONENT:
                          type: string
                          maxLength: 30
                          description: Software Component
                        RELEASE:
                          type: string
                          maxLength: 10
                          description: SAP Release
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
