openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_TABLESPACE_LIST:
    post:
      tags:
      - S390
      summary: Get list of tablespaces having a given tablespace name
      operationId: /rfc/GET_TABLESPACE_LIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                TSNAME:
                  type: string
                  maxLength: 8
                  description: Tablespace name
                TS_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      DBNAME:
                        type: string
                        maxLength: 8
                        description: Database name
                      TSNAME:
                        type: string
                        maxLength: 8
                        description: Name of the tablespace
              required:
              - TSNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TS_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        DBNAME:
                          type: string
                          maxLength: 8
                          description: Database name
                        TSNAME:
                          type: string
                          maxLength: 8
                          description: Name of the tablespace
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
