openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TH_USER_LIST:
    post:
      tags:
      - THFB
      operationId: /rfc/TH_USER_LIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      TID:
                        type: integer
                        format: int32
                        description: Terminal ID
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      BNAME:
                        type: string
                        maxLength: 12
                        description: User name
                      TCODE:
                        type: string
                        maxLength: 20
                        description: TCODE
                      TERM:
                        type: string
                        maxLength: 20
                        description: Terminal ID
                      ZEIT:
                        type: string
                        maxLength: 8
                        description: Dialog time in SM04
                      MASTER:
                        type: string
                        maxLength: 12
                        description: Master
                      HOSTADR:
                        type: string
                        format: byte
                        description: Host IP address
                      TRACE:
                        type: integer
                        format: int32
                        description: User trace
                      EXTMODI:
                        type: integer
                        format: int32
                        description: 'Task Handler: Number of External or Internal Modes'
                      INTMODI:
                        type: integer
                        format: int32
                        description: 'Task Handler: Number of External or Internal Modes'
                      TYPE:
                        type: integer
                        format: int32
                        description: Natural number
                      STAT:
                        type: integer
                        format: int32
                        description: Natural number
                      PROTOCOL:
                        type: integer
                        format: int32
                        description: Natural number
                      GUIVERSION:
                        type: string
                        maxLength: 10
                        description: Character Field Length = 10
                      RFC_TYPE:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                USRLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      TID:
                        type: integer
                        format: int32
                        description: Terminal ID
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      BNAME:
                        type: string
                        maxLength: 12
                        description: User name
                      TCODE:
                        type: string
                        maxLength: 20
                        description: TCODE
                      TERM:
                        type: string
                        maxLength: 20
                        description: Terminal ID
                      ZEIT:
                        type: string
                        maxLength: 8
                        description: Dialog time in SM04
                      MASTER:
                        type: string
                        maxLength: 12
                        description: Master
                      TRACE:
                        type: integer
                        format: int32
                        description: User trace
                      EXTMODI:
                        type: integer
                        format: int32
                        description: 'Task Handler: Number of External or Internal Modes'
                      INTMODI:
                        type: integer
                        format: int32
                        description: 'Task Handler: Number of External or Internal Modes'
                      TYPE:
                        type: integer
                        format: int32
                        description: Type of Logon
                      STAT:
                        type: integer
                        format: int32
                        description: Status of System Logon
                      PROTOCOL:
                        type: integer
                        format: int32
                        description: Logon Protocol of Plugin
                      GUIVERSION:
                        type: string
                        maxLength: 10
                        description: Version of SAPGUI
                      RFC_TYPE:
                        type: string
                        maxLength: 1
                        description: Type of RFC Logon
                      HOSTADDR:
                        type: string
                        maxLength: 45
                        description: IP Address
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        TID:
                          type: integer
                          format: int32
                          description: Terminal ID
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        BNAME:
                          type: string
                          maxLength: 12
                          description: User name
                        TCODE:
                          type: string
                          maxLength: 20
                          description: TCODE
                        TERM:
                          type: string
                          maxLength: 20
                          description: Terminal ID
                        ZEIT:
                          type: string
                          maxLength: 8
                          description: Dialog time in SM04
                        MASTER:
                          type: string
                          maxLength: 12
                          description: Master
                        HOSTADR:
                          type: string
                          format: byte
                          description: Host IP address
                        TRACE:
                          type: integer
                          format: int32
                          description: User trace
                        EXTMODI:
                          type: integer
                          format: int32
                          description: 'Task Handler: Number of External or Internal Modes'
                        INTMODI:
                          type: integer
                          format: int32
                          description: 'Task Handler: Number of External or Internal Modes'
                        TYPE:
                          type: integer
                          format: int32
                          description: Natural number
                        STAT:
                          type: integer
                          format: int32
                          description: Natural number
                        PROTOCOL:
                          type: integer
                          format: int32
                          description: Natural number
                        GUIVERSION:
                          type: string
                          maxLength: 10
                          description: Character Field Length = 10
                        RFC_TYPE:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                  USRLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        TID:
                          type: integer
                          format: int32
                          description: Terminal ID
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        BNAME:
                          type: string
                          maxLength: 12
                          description: User name
                        TCODE:
                          type: string
                          maxLength: 20
                          description: TCODE
                        TERM:
                          type: string
                          maxLength: 20
                          description: Terminal ID
                        ZEIT:
                          type: string
                          maxLength: 8
                          description: Dialog time in SM04
                        MASTER:
                          type: string
                          maxLength: 12
                          description: Master
                        TRACE:
                          type: integer
                          format: int32
                          description: User trace
                        EXTMODI:
                          type: integer
                          format: int32
                          description: 'Task Handler: Number of External or Internal Modes'
                        INTMODI:
                          type: integer
                          format: int32
                          description: 'Task Handler: Number of External or Internal Modes'
                        TYPE:
                          type: integer
                          format: int32
                          description: Type of Logon
                        STAT:
                          type: integer
                          format: int32
                          description: Status of System Logon
                        PROTOCOL:
                          type: integer
                          format: int32
                          description: Logon Protocol of Plugin
                        GUIVERSION:
                          type: string
                          maxLength: 10
                          description: Version of SAPGUI
                        RFC_TYPE:
                          type: string
                          maxLength: 1
                          description: Type of RFC Logon
                        HOSTADDR:
                          type: string
                          maxLength: 45
                          description: IP Address
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
