openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TH_SERVER_LIST:
    post:
      tags:
      - THFB
      summary: Get Server List
      operationId: /rfc/TH_SERVER_LIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SERVICES:
                  type: string
                  format: byte
                  default: '255'
                  description: BIT Vector of the Services (see Notes)
                SYSSERVICE:
                  type: string
                  format: byte
                  default: '0'
                  description: Services of Application Server
                LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 40
                        description: Application Server Name
                      HOST:
                        type: string
                        maxLength: 32
                        description: Name of Application Server
                      SERV:
                        type: string
                        maxLength: 20
                        description: Service
                      MSGTYPES:
                        type: string
                        format: byte
                        description: Services
                      HOSTADR:
                        type: string
                        format: byte
                        description: Host IP address
                      SERVNO:
                        type: string
                        format: byte
                        description: Service port number
                      STATE:
                        type: string
                        format: byte
                        description: Server Status
                LIST_IPV6:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 40
                        description: Application Server Name
                      HOST:
                        type: string
                        maxLength: 32
                        description: Name of Application Server
                      SERV:
                        type: string
                        maxLength: 20
                        description: Service
                      MSGTYPES:
                        type: string
                        format: byte
                        description: Services
                      HOSTADR:
                        type: string
                        format: byte
                        description: Host IP address
                      SERVNO:
                        type: string
                        format: byte
                        description: Service port number
                      STATE:
                        type: string
                        format: byte
                        description: Server Status
                      HOSTNAMELONG:
                        type: string
                        maxLength: 64
                        description: Host Name
                      HOSTADDR_V4_STR:
                        type: string
                        maxLength: 15
                        description: IPv4 Address
                      HOSTADDR_V6_STR:
                        type: string
                        maxLength: 45
                        description: IP Address
                      SYSSERVICE0:
                        type: string
                        format: byte
                        description: System Services Registered on Message Server
                      SYSSERVICE1:
                        type: string
                        format: byte
                        description: System Services Registered on Message Server
                      SYSSERVICE2:
                        type: string
                        format: byte
                        description: System Services Registered on Message Server
                      SYSSERVICE3:
                        type: string
                        format: byte
                        description: System Services Registered on Message Server
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 40
                          description: Application Server Name
                        HOST:
                          type: string
                          maxLength: 32
                          description: Name of Application Server
                        SERV:
                          type: string
                          maxLength: 20
                          description: Service
                        MSGTYPES:
                          type: string
                          format: byte
                          description: Services
                        HOSTADR:
                          type: string
                          format: byte
                          description: Host IP address
                        SERVNO:
                          type: string
                          format: byte
                          description: Service port number
                        STATE:
                          type: string
                          format: byte
                          description: Server Status
                  LIST_IPV6:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 40
                          description: Application Server Name
                        HOST:
                          type: string
                          maxLength: 32
                          description: Name of Application Server
                        SERV:
                          type: string
                          maxLength: 20
                          description: Service
                        MSGTYPES:
                          type: string
                          format: byte
                          description: Services
                        HOSTADR:
                          type: string
                          format: byte
                          description: Host IP address
                        SERVNO:
                          type: string
                          format: byte
                          description: Service port number
                        STATE:
                          type: string
                          format: byte
                          description: Server Status
                        HOSTNAMELONG:
                          type: string
                          maxLength: 64
                          description: Host Name
                        HOSTADDR_V4_STR:
                          type: string
                          maxLength: 15
                          description: IPv4 Address
                        HOSTADDR_V6_STR:
                          type: string
                          maxLength: 45
                          description: IP Address
                        SYSSERVICE0:
                          type: string
                          format: byte
                          description: System Services Registered on Message Server
                        SYSSERVICE1:
                          type: string
                          format: byte
                          description: System Services Registered on Message Server
                        SYSSERVICE2:
                          type: string
                          format: byte
                          description: System Services Registered on Message Server
                        SYSSERVICE3:
                          type: string
                          format: byte
                          description: System Services Registered on Message Server
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
