openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ST04_DB4_GET_PKG_INFO:
    post:
      tags:
      - STU4_ST04
      summary: 'iSeries: Get Information about SQL Packages'
      operationId: /rfc/ST04_DB4_GET_PKG_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PACKAGE_LIBS_ONLY:
                  type: string
                  default: Y
                  maxLength: 1
                  description: 'QQC11: Used for different purposes depending on QQRID'
                PKGLIB:
                  type: string
                  maxLength: 10
                  description: 'iSeries: Package/Program Library (Database Monitor)'
                PKGNAM:
                  type: string
                  maxLength: 10
                  description: 'iSeries: Package/Program Name (Database Monitor)'
                STMTNAM:
                  type: string
                  maxLength: 18
                  description: 'iSeries: Statement Name (Database Monitor)'
                PKGLIB_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      PKGLIB:
                        type: string
                        maxLength: 10
                        description: 'iSeries: Package/Program Library (Database Monitor)'
                      PKGOBJ:
                        type: integer
                        format: int32
                        description: 'iSeries: Number of SQL Packages in a Library'
                      PKGSIZE:
                        type: integer
                        format: int32
                        description: 'iSeries: Size (Byte) of SQL Packages in a Library'
                PKG_CONTENT_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      PKGTXT:
                        type: string
                        maxLength: 200
                        description: 'iSeries: Content of one SQL Package'
                PKG_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      PKGLIB:
                        type: string
                        maxLength: 10
                        description: 'iSeries: Package/Program Library (Database Monitor)'
                      PKGNAM:
                        type: string
                        maxLength: 10
                        description: 'iSeries: Package/Program Name (Database Monitor)'
                      STMTNAM:
                        type: string
                        maxLength: 18
                        description: 'iSeries: Statement Name (Database Monitor)'
                      PKGSIZE:
                        type: integer
                        format: int32
                        description: 'iSeries: Size (Byte) of SQL Packages in a Library'
                      CRTTIME:
                        type: string
                        maxLength: 20
                        description: 'iSeries: Create Timestamp of an SQL Package'
                      CHGTIME:
                        type: string
                        maxLength: 20
                        description: 'iSeries: Timestamp of Last Change of an SQL Package'
                      USETIME:
                        type: string
                        maxLength: 20
                        description: 'iSeries: Timestamp of Last Usage of an SQL Package'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PKGLIB_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        PKGLIB:
                          type: string
                          maxLength: 10
                          description: 'iSeries: Package/Program Library (Database Monitor)'
                        PKGOBJ:
                          type: integer
                          format: int32
                          description: 'iSeries: Number of SQL Packages in a Library'
                        PKGSIZE:
                          type: integer
                          format: int32
                          description: 'iSeries: Size (Byte) of SQL Packages in a Library'
                  PKG_CONTENT_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        PKGTXT:
                          type: string
                          maxLength: 200
                          description: 'iSeries: Content of one SQL Package'
                  PKG_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        PKGLIB:
                          type: string
                          maxLength: 10
                          description: 'iSeries: Package/Program Library (Database Monitor)'
                        PKGNAM:
                          type: string
                          maxLength: 10
                          description: 'iSeries: Package/Program Name (Database Monitor)'
                        STMTNAM:
                          type: string
                          maxLength: 18
                          description: 'iSeries: Statement Name (Database Monitor)'
                        PKGSIZE:
                          type: integer
                          format: int32
                          description: 'iSeries: Size (Byte) of SQL Packages in a Library'
                        CRTTIME:
                          type: string
                          maxLength: 20
                          description: 'iSeries: Create Timestamp of an SQL Package'
                        CHGTIME:
                          type: string
                          maxLength: 20
                          description: 'iSeries: Timestamp of Last Change of an SQL Package'
                        USETIME:
                          type: string
                          maxLength: 20
                          description: 'iSeries: Timestamp of Last Usage of an SQL Package'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
