openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPI_LS_NAME_VALUE_READ:
    post:
      tags:
      - SPILSR
      operationId: /rfc/SPI_LS_NAME_VALUE_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IP_CLIENT:
                  type: string
                  maxLength: 3
                  description: Client
                IP_HOSTIPADR:
                  type: string
                  format: byte
                  description: Host IP address
                IP_MAX:
                  type: integer
                  format: int32
                  default: 1000
                IP_TRANSID:
                  type: string
                  maxLength: 32
                  description: Character field, length 32
                IP_TSTFROM:
                  type: integer
                  format: int64
                  description: UTC time stamp in long form (YYYYMMDDhhmmssmmmuuun)
                IP_TSTTO:
                  type: integer
                  format: int64
                  description: UTC time stamp in long form (YYYYMMDDhhmmssmmmuuun)
                IT_AGENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      AGENTID:
                        type: string
                        maxLength: 22
                        description: 'SPI Global: Agent ID'
                      SIGNATURE:
                        type: string
                        maxLength: 32
                        description: 'Global SPI: Agent Signature'
              required:
              - IP_HOSTIPADR
              - IP_TSTFROM
              - IP_TSTTO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EP_HASMORE:
                    type: string
                    maxLength: 1
                  EP_TSTMP:
                    type: integer
                    format: int64
                  ET_RECORDS:
                    type: array
                    items:
                      type: object
                      properties:
                        AGENTID:
                          type: string
                          maxLength: 22
                          description: 'SPI Global: Agent ID'
                        SIGNATURE:
                          type: string
                          maxLength: 32
                          description: 'Global SPI: Agent Signature'
                        AGENTINST:
                          type: integer
                          format: int32
                          description: Natural number
                        LOGSYS:
                          type: string
                          maxLength: 10
                          description: Logical system
                        LOCSYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        LOCCLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        TCODE:
                          type: string
                          maxLength: 20
                          description: Transaction code
                        REPORT:
                          type: string
                          maxLength: 40
                          description: Program Name
                        DYNPRONR:
                          type: string
                          maxLength: 4
                          description: Screen number or transaction name
                        USERNAME:
                          type: string
                          maxLength: 12
                          description: User or account name using a transaction
                        TERMINAL:
                          type: string
                          maxLength: 20
                          description: 'SAP Statistics: Name of Terminal'
                        TRANSID:
                          type: string
                          format: byte
                          description: 'SPI: Raw 16 GUID'
                        WPID:
                          type: integer
                          format: int32
                          description: Work process number
                        HOSTIPADR:
                          type: string
                          format: byte
                          description: Host IP address
                        TIMESTAMP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
                        ERROR:
                          type: string
                          format: byte
                          description: 'SPI: Error Status for Process'
                        VBKEY:
                          type: string
                          format: byte
                          description: 'SPI: Raw 16 GUID'
                        CID:
                          type: string
                          format: byte
                          description: 'SPI: Raw 16 GUID'
                        CWCNT:
                          type: string
                          format: byte
                          description: 'SPI: Commit Work Counter'
                        FINISH:
                          type: string
                          format: byte
                          description: 'SPI: Finished + Complete Status'
                        PAIRS:
                          type: array
                          items:
                            type: object
                            properties:
                              FLDNAME:
                                type: string
                                maxLength: 30
                                description: 'SPI: Data Field Name'
                              VALUE:
                                type: string
                                maxLength: 70
                                description: 'SPI Global: Value for a Field Name'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
