openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TOCX_SWITCH_ON_CHAPTERS:
    post:
      tags:
      - DSYI
      operationId: /rfc/TOCX_SWITCH_ON_CHAPTERS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                APPLICATION_FROM:
                  type: string
                  default: XXXX
                  maxLength: 4
                  description: Application of structure to be modified
                APPLICATION_TO:
                  type: string
                  default: ZZZZ
                  maxLength: 4
                  description: Application of the modified structure
                OUTLINE_FROM:
                  type: string
                  maxLength: 12
                  description: Name of structure to be modified
                OUTLINE_TO:
                  type: string
                  maxLength: 12
                  description: Name of the modified structure
                SWITCH_ON_FLAG:
                  type: string
                  default: X
                  maxLength: 1
                  description: 'Flag: if ''X'', then chapters are switched on'
                VIEWNAME_FROM:
                  type: string
                  default: STANDARD
                  maxLength: 12
                  description: 'Flag: if ''X'', then chapters are switched on'
                VIEWNAME_TO:
                  type: string
                  default: ___NONE___
                  maxLength: 12
                  description: 'Flag: if ''X'', then chapters are switched on'
                LIST_OF_CHAPTERS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOKCLASS:
                        type: string
                        maxLength: 4
                        description: 'Documentation: Class'
                      DOKNAME:
                        type: string
                        maxLength: 60
                        description: Documentation Object
              required:
              - OUTLINE_FROM
              - OUTLINE_TO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LIST_OF_CHAPTERS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOKCLASS:
                          type: string
                          maxLength: 4
                          description: 'Documentation: Class'
                        DOKNAME:
                          type: string
                          maxLength: 60
                          description: Documentation Object
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
