openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BX_READ_USER_MENU_NEW:
    post:
      tags:
      - SMTR_NAVIGATION_MODULES_BX
      operationId: /rfc/BX_READ_USER_MENU_NEW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                GENERATE_MINI_APP_URLS:
                  type: string
                  default: X
                  maxLength: 1
                  description: Customized ('C') or standard menu ('S') flag
                GENERATE_URL:
                  type: string
                  default: ' '
                  maxLength: 1
                GET_RFC_DESTINATION_TYPE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Customized ('C') or standard menu ('S') flag
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                READ_MINI_APPLICATIONS:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Customized ('C') or standard menu ('S') flag
                READ_USER_MENU:
                  type: string
                  default: X
                  maxLength: 1
                  description: Customized ('C') or standard menu ('S') flag
                REPLACE_RFC_VARIABLES:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Customized ('C') or standard menu ('S') flag
                SHOW_AGR_NAME_IF_POSSIBLE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Customized ('C') or standard menu ('S') flag
                SORT_NODES:
                  type: string
                  default: ' '
                  maxLength: 1
                USER_NAME:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                GENERATED_URLS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      WP_TYPE:
                        type: string
                        maxLength: 20
                        description: Workplace URL Type
                      GEN_URL:
                        type: string
                        maxLength: 2000
                        description: URL for SAP Portal
                MINI_APPLICATIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      SORT_ORDER:
                        type: integer
                        format: int64
                        description: Level in the menu
                      HEIGHT:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      TEXT:
                        type: string
                        maxLength: 80
                        description: Menu entry text
                      WP_TYPE:
                        type: string
                        maxLength: 20
                        description: Workplace URL Type
                      GEN_URL:
                        type: string
                        maxLength: 2000
                        description: URL for SAP Portal
                      RAW_URL:
                        type: string
                        maxLength: 2000
                        description: URL for SAP Portal
                      TARGET_SYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                NODE_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      ORIGIN_ID:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      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:
                  GENERATED_URLS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        WP_TYPE:
                          type: string
                          maxLength: 20
                          description: Workplace URL Type
                        GEN_URL:
                          type: string
                          maxLength: 2000
                          description: URL for SAP Portal
                  MINI_APPLICATIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        SORT_ORDER:
                          type: integer
                          format: int64
                          description: Level in the menu
                        HEIGHT:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        TEXT:
                          type: string
                          maxLength: 80
                          description: Menu entry text
                        WP_TYPE:
                          type: string
                          maxLength: 20
                          description: Workplace URL Type
                        GEN_URL:
                          type: string
                          maxLength: 2000
                          description: URL for SAP Portal
                        RAW_URL:
                          type: string
                          maxLength: 2000
                          description: URL for SAP Portal
                        TARGET_SYS:
                          type: string
                          maxLength: 10
                          description: Logical system
                  NODE_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        ORIGIN_ID:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        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.
