openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/PROFILE_FROM_PAHI:
    post:
      tags:
      - STPF
      summary: Read the history of a Profile (DB, OS or SAP) from PAHI into PROF_HIST
      operationId: /rfc/PROFILE_FROM_PAHI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SELECT_HOSTNAME:
                  type: string
                  maxLength: 32
                SELECT_PARAMETER_TYPE:
                  type: string
                  maxLength: 1
                SELECT_START_DATE:
                  type: string
                  format: date
                SELECT_SYSTEMID:
                  type: string
                  maxLength: 2
                PROFILE_HISTORY:
                  type: array
                  items:
                    type: object
                    properties:
                      PARTYPE:
                        type: string
                        maxLength: 1
                        description: Parameter type (OP system, DB, SAP)
                      HOSTNAME:
                        type: string
                        maxLength: 32
                        description: Hostname
                      SYSTEMID:
                        type: string
                        maxLength: 2
                        description: SAP System ID
                      PARNAME:
                        type: string
                        maxLength: 64
                        description: Parameter name
                      PARDATE:
                        type: string
                        format: date
                        description: Date parameter was changed
                      OLDVALUE:
                        type: string
                        maxLength: 255
                        description: Old parameter value
                      NEWVALUE:
                        type: string
                        maxLength: 255
                        description: New parameter value
              required:
              - SELECT_HOSTNAME
              - SELECT_PARAMETER_TYPE
              - SELECT_START_DATE
              - SELECT_SYSTEMID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PROFILE_HISTORY:
                    type: array
                    items:
                      type: object
                      properties:
                        PARTYPE:
                          type: string
                          maxLength: 1
                          description: Parameter type (OP system, DB, SAP)
                        HOSTNAME:
                          type: string
                          maxLength: 32
                          description: Hostname
                        SYSTEMID:
                          type: string
                          maxLength: 2
                          description: SAP System ID
                        PARNAME:
                          type: string
                          maxLength: 64
                          description: Parameter name
                        PARDATE:
                          type: string
                          format: date
                          description: Date parameter was changed
                        OLDVALUE:
                          type: string
                          maxLength: 255
                          description: Old parameter value
                        NEWVALUE:
                          type: string
                          maxLength: 255
                          description: New parameter value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
