openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BX_FAVOS_WRITE_ALL_NODES:
    post:
      tags:
      - SMTR_NAVIGATION_MODULES_BX
      operationId: /rfc/BX_FAVOS_WRITE_ALL_NODES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                REPLACE_EXISTING_FAVOS:
                  type: string
                  default: X
                  maxLength: 1
                TARGET_CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                USER_NAME:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                INPUT_NODES_AND_TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      PARENT_ID:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      SORT_ORDER:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      MENU_LEVEL:
                        type: integer
                        format: int64
                        description: Level in the menu
                      NODE_TYPE:
                        type: string
                        maxLength: 1
                        description: Type of node ( U = URL, F = folder, T = transaction)
                      TCODE:
                        type: string
                        maxLength: 20
                        description: Current Transaction Code
                      SAP_GUID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      TARGET_SYS:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      TEXT:
                        type: string
                        maxLength: 80
                        description: Menu entry text
                      X_POS:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      Y_POS:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      INFOS:
                        type: string
                        maxLength: 12
                        description: 'Structures: name of the structure'
                      URL_TYPE:
                        type: string
                        maxLength: 20
                        description: Type of URL
                      URL:
                        type: string
                        maxLength: 255
                        description: URL for the SAP Portal
                      SOURCEROLE:
                        type: string
                        maxLength: 30
                        description: Role Name
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  INPUT_NODES_AND_TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        PARENT_ID:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        SORT_ORDER:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        MENU_LEVEL:
                          type: integer
                          format: int64
                          description: Level in the menu
                        NODE_TYPE:
                          type: string
                          maxLength: 1
                          description: Type of node ( U = URL, F = folder, T = transaction)
                        TCODE:
                          type: string
                          maxLength: 20
                          description: Current Transaction Code
                        SAP_GUID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        TARGET_SYS:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        TEXT:
                          type: string
                          maxLength: 80
                          description: Menu entry text
                        X_POS:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        Y_POS:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        INFOS:
                          type: string
                          maxLength: 12
                          description: 'Structures: name of the structure'
                        URL_TYPE:
                          type: string
                          maxLength: 20
                          description: Type of URL
                        URL:
                          type: string
                          maxLength: 255
                          description: URL for the SAP Portal
                        SOURCEROLE:
                          type: string
                          maxLength: 30
                          description: Role Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
