openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SIW_AREA_GET:
    post:
      tags:
      - SI17
      operationId: /rfc/SIW_AREA_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                KW_APPLICATION:
                  type: string
                  default: KM_KW_R3
                  maxLength: 15
                  description: 'KW Framework: Application'
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                ONLY_LOCAL_AREAS:
                  type: string
                  default: X
                  maxLength: 1
                  description: Single-Character Flag
                AREAS:
                  type: array
                  items:
                    type: object
                    properties:
                      AREA:
                        type: string
                        maxLength: 10
                        description: Area
                AREAS_TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      DOCUSPACE:
                        type: string
                        maxLength: 10
                        description: Document Area
                      DESCRIPT:
                        type: string
                        maxLength: 64
                        description: Short Description
              required:
              - KW_APPLICATION
              - LANGUAGE
              - ONLY_LOCAL_AREAS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  AREAS:
                    type: array
                    items:
                      type: object
                      properties:
                        AREA:
                          type: string
                          maxLength: 10
                          description: Area
                  AREAS_TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        DOCUSPACE:
                          type: string
                          maxLength: 10
                          description: Document Area
                        DESCRIPT:
                          type: string
                          maxLength: 64
                          description: Short Description
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
