openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAPTUNE_BUFFERED_PROGRAMS:
    post:
      tags:
      - STUB
      operationId: /rfc/SAPTUNE_BUFFERED_PROGRAMS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BUFFER_CONTENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX:
                        type: integer
                        format: int32
                        description: Index in program buffer PXA
                      SIZE:
                        type: integer
                        format: int32
                        description: Size of a program section (byte)
                      RESETS:
                        type: integer
                        format: int32
                        description: No. of resets in program buffer
                      STAT:
                        type: string
                        maxLength: 4
                        description: Status
                      REQID:
                        type: integer
                        format: int32
                        description: Request ID of an entry in the program buffer
                      LOCKS:
                        type: string
                        maxLength: 6
                        description: No. of locks on an entry in the program buffer
                      CFLAG:
                        type: string
                        maxLength: 1
                        description: Class
                      LFLAG:
                        type: string
                        maxLength: 1
                        description: Language
                      NAME:
                        type: string
                        maxLength: 40
                        description: Program/Report name
                      TIME:
                        type: string
                        maxLength: 6
                        description: Time stamp of entry in program buffer
                      HASH:
                        type: integer
                        format: int32
                        description: Hash value
                      HASHCHAIN1:
                        type: integer
                        format: int32
                        description: Hash chain
                      HASHCHAIN2:
                        type: integer
                        format: int32
                        description: Hash chain
                      USED:
                        type: integer
                        format: int32
                        description: Use counter
                      OFFSET:
                        type: integer
                        format: int32
                        description: Offset in program buffer
                BUFFER_CONTENTS_64:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX:
                        type: string
                        maxLength: 10
                        description: Character Field Length = 10
                      CLASS:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      LANG:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      NAME:
                        type: string
                        maxLength: 40
                        description: Character field of length 40
                      DATE:
                        type: string
                        format: date
                        description: Field of type DATS
                      TIME:
                        type: string
                        maxLength: 6
                        description: Field of type TIMS
                      STAT:
                        type: string
                        maxLength: 8
                        description: Character field, 8 characters long
                      SIZE:
                        type: string
                        maxLength: 6
                        description: Character field of length 6
                      OFFSET:
                        type: string
                        maxLength: 9
                        description: char_9_a
                      LOCKS:
                        type: string
                        maxLength: 6
                        description: Character field of length 6
                      USED:
                        type: string
                        maxLength: 9
                        description: char_9_a
                      REQID:
                        type: string
                        maxLength: 16
                        description: Field of length 16
                      HASH:
                        type: string
                        maxLength: 6
                        description: Character field of length 6
                      HPREV:
                        type: string
                        maxLength: 7
                        description: eCATT - Character Field of Length 7
                      HNEXT:
                        type: string
                        maxLength: 7
                        description: eCATT - Character Field of Length 7
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BUFFER_CONTENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        INDEX:
                          type: integer
                          format: int32
                          description: Index in program buffer PXA
                        SIZE:
                          type: integer
                          format: int32
                          description: Size of a program section (byte)
                        RESETS:
                          type: integer
                          format: int32
                          description: No. of resets in program buffer
                        STAT:
                          type: string
                          maxLength: 4
                          description: Status
                        REQID:
                          type: integer
                          format: int32
                          description: Request ID of an entry in the program buffer
                        LOCKS:
                          type: string
                          maxLength: 6
                          description: No. of locks on an entry in the program buffer
                        CFLAG:
                          type: string
                          maxLength: 1
                          description: Class
                        LFLAG:
                          type: string
                          maxLength: 1
                          description: Language
                        NAME:
                          type: string
                          maxLength: 40
                          description: Program/Report name
                        TIME:
                          type: string
                          maxLength: 6
                          description: Time stamp of entry in program buffer
                        HASH:
                          type: integer
                          format: int32
                          description: Hash value
                        HASHCHAIN1:
                          type: integer
                          format: int32
                          description: Hash chain
                        HASHCHAIN2:
                          type: integer
                          format: int32
                          description: Hash chain
                        USED:
                          type: integer
                          format: int32
                          description: Use counter
                        OFFSET:
                          type: integer
                          format: int32
                          description: Offset in program buffer
                  BUFFER_CONTENTS_64:
                    type: array
                    items:
                      type: object
                      properties:
                        INDEX:
                          type: string
                          maxLength: 10
                          description: Character Field Length = 10
                        CLASS:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        LANG:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        NAME:
                          type: string
                          maxLength: 40
                          description: Character field of length 40
                        DATE:
                          type: string
                          format: date
                          description: Field of type DATS
                        TIME:
                          type: string
                          maxLength: 6
                          description: Field of type TIMS
                        STAT:
                          type: string
                          maxLength: 8
                          description: Character field, 8 characters long
                        SIZE:
                          type: string
                          maxLength: 6
                          description: Character field of length 6
                        OFFSET:
                          type: string
                          maxLength: 9
                          description: char_9_a
                        LOCKS:
                          type: string
                          maxLength: 6
                          description: Character field of length 6
                        USED:
                          type: string
                          maxLength: 9
                          description: char_9_a
                        REQID:
                          type: string
                          maxLength: 16
                          description: Field of length 16
                        HASH:
                          type: string
                          maxLength: 6
                          description: Character field of length 6
                        HPREV:
                          type: string
                          maxLength: 7
                          description: eCATT - Character Field of Length 7
                        HNEXT:
                          type: string
                          maxLength: 7
                          description: eCATT - Character Field of Length 7
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
