openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/PRGN_GENERATE_SAVE_NODES:
    post:
      tags:
      - PRGN_STRUCTURE
      operationId: /rfc/PRGN_GENERATE_SAVE_NODES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTIVITY_GROUP:
                  type: string
                  maxLength: 30
                MENU_HIERARCHY:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      PARENT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      FOLDER:
                        type: string
                        maxLength: 1
                        description: Customized ('C') or standard menu ('S') flag
                      MENU_LEVEL:
                        type: integer
                        format: int64
                        description: Level in the menu
                      SORT_ORDER:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      STRING1:
                        type: string
                        maxLength: 255
                        description: URL for the SAP Portal
                      STRING2:
                        type: string
                        maxLength: 255
                        description: URL for the SAP Portal
                      ICON:
                        type: string
                        maxLength: 128
                        description: Icons for Role Menu Entries
                      FLAGS:
                        type: string
                        maxLength: 16
                        description: Attributes for Menu Entry
                MENU_TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language of menu texts
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      TEXT:
                        type: string
                        maxLength: 80
                        description: Menu entry text
                      DESCRIPTION:
                        type: string
                        maxLength: 255
                        description: Long Text for Menu Entry
              required:
              - ACTIVITY_GROUP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MENU_HIERARCHY:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        PARENT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        FOLDER:
                          type: string
                          maxLength: 1
                          description: Customized ('C') or standard menu ('S') flag
                        MENU_LEVEL:
                          type: integer
                          format: int64
                          description: Level in the menu
                        SORT_ORDER:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        STRING1:
                          type: string
                          maxLength: 255
                          description: URL for the SAP Portal
                        STRING2:
                          type: string
                          maxLength: 255
                          description: URL for the SAP Portal
                        ICON:
                          type: string
                          maxLength: 128
                          description: Icons for Role Menu Entries
                        FLAGS:
                          type: string
                          maxLength: 16
                          description: Attributes for Menu Entry
                  MENU_TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language of menu texts
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        TEXT:
                          type: string
                          maxLength: 80
                          description: Menu entry text
                        DESCRIPTION:
                          type: string
                          maxLength: 255
                          description: Long Text for Menu Entry
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
