openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EXTERNAL_GET_VIEW_VARIANTS:
    post:
      tags:
      - SIC1
      summary: Read view variants and their parent view
      operationId: /rfc/EXTERNAL_GET_VIEW_VARIANTS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                E_VIEW_VARIANTS:
                  type: array
                  items:
                    type: object
                    properties:
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Name of SAP table view
                      ROOTTAB:
                        type: string
                        maxLength: 30
                        description: Primary table of an aggregate
                I_VIEW_VARIANTS:
                  type: array
                  items:
                    type: object
                    properties:
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Name of SAP table view
                      ROOTTAB:
                        type: string
                        maxLength: 30
                        description: Primary table of an aggregate
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_VIEW_VARIANTS:
                    type: array
                    items:
                      type: object
                      properties:
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Name of SAP table view
                        ROOTTAB:
                          type: string
                          maxLength: 30
                          description: Primary table of an aggregate
                  I_VIEW_VARIANTS:
                    type: array
                    items:
                      type: object
                      properties:
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Name of SAP table view
                        ROOTTAB:
                          type: string
                          maxLength: 30
                          description: Primary table of an aggregate
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
