openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/AS4_GET_PTF_STATUS_ALL:
    post:
      tags:
      - STU4_TCC
      summary: 'iSeries: Get PTF Status'
      operationId: /rfc/AS4_GET_PTF_STATUS_ALL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SERVER_NAME:
                  type: string
                  maxLength: 40
                  description: Hostname
                PTF_STATUS:
                  type: array
                  items:
                    type: object
                    properties:
                      SRVNAM:
                        type: string
                        maxLength: 40
                        description: Server Name
                      HOSTNAM:
                        type: string
                        maxLength: 32
                        description: Hostname
                      SERVER:
                        type: string
                        maxLength: 20
                        description: Server
                      OS_RELEASE:
                        type: string
                        maxLength: 6
                        description: 'iSeries: Operating System Release'
                      PTFSTAT:
                        type: string
                        maxLength: 6
                        description: 'iSeries: PTF Status (Icon)'
                      APAR_DATE:
                        type: string
                        format: date
                        description: 'iSeries: Date when Information APAR was Last Updated'
                PTF_STATUS_DETAIL:
                  type: array
                  items:
                    type: object
                    properties:
                      STAT_ICON:
                        type: string
                        maxLength: 6
                        description: 'iSeries: PTF Status (Icon)'
                      STATUS:
                        type: string
                        maxLength: 1
                        description: 'iSeries: PTF Status'
                      LICPGM:
                        type: string
                        maxLength: 7
                        description: 'iSeries: PTF Product ID'
                      PTFNBR:
                        type: string
                        maxLength: 7
                        description: 'iSeries: PTF Number'
                      INFO_COM:
                        type: string
                        maxLength: 80
                        description: 'iSeries: Comment from Info APAR File'
                      STATUS_TXT:
                        type: string
                        maxLength: 120
                        description: 'iSeries: PTF Status'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PTF_STATUS:
                    type: array
                    items:
                      type: object
                      properties:
                        SRVNAM:
                          type: string
                          maxLength: 40
                          description: Server Name
                        HOSTNAM:
                          type: string
                          maxLength: 32
                          description: Hostname
                        SERVER:
                          type: string
                          maxLength: 20
                          description: Server
                        OS_RELEASE:
                          type: string
                          maxLength: 6
                          description: 'iSeries: Operating System Release'
                        PTFSTAT:
                          type: string
                          maxLength: 6
                          description: 'iSeries: PTF Status (Icon)'
                        APAR_DATE:
                          type: string
                          format: date
                          description: 'iSeries: Date when Information APAR was Last Updated'
                  PTF_STATUS_DETAIL:
                    type: array
                    items:
                      type: object
                      properties:
                        STAT_ICON:
                          type: string
                          maxLength: 6
                          description: 'iSeries: PTF Status (Icon)'
                        STATUS:
                          type: string
                          maxLength: 1
                          description: 'iSeries: PTF Status'
                        LICPGM:
                          type: string
                          maxLength: 7
                          description: 'iSeries: PTF Product ID'
                        PTFNBR:
                          type: string
                          maxLength: 7
                          description: 'iSeries: PTF Number'
                        INFO_COM:
                          type: string
                          maxLength: 80
                          description: 'iSeries: Comment from Info APAR File'
                        STATUS_TXT:
                          type: string
                          maxLength: 120
                          description: 'iSeries: PTF Status'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
