openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MENU_AGR_TREE_READ_HIERARCHY:
    post:
      tags:
      - SMTR_AGRS
      operationId: /rfc/MENU_AGR_TREE_READ_HIERARCHY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTIVITY_GROUP:
                  type: string
                  maxLength: 30
                ADD_DETAILS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      UNIQUE_NR:
                        type: integer
                        format: int32
                        description: Natural number
                      LOBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      VERB:
                        type: string
                        maxLength: 32
                        description: Object type component
                      LOBJTYPE_NAME:
                        type: string
                        maxLength: 32
                        description: Object name
                      VERB_NAME:
                        type: string
                        maxLength: 32
                        description: Element name in upper/lower case
                      FLAGS:
                        type: string
                        maxLength: 16
                        description: Attributes for Menu Entry
                      PRIORITY:
                        type: integer
                        format: int32
                        description: Dummy for B20 int1 (Local Everywhere)
                      PARAMS:
                        type: string
                        maxLength: 1024
                        description: Character 1024
                NODES:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      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
                      SORT_ORDER:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      REPORTTYPE:
                        type: string
                        maxLength: 2
                        description: Report type
                      REPORT:
                        type: string
                        maxLength: 48
                        description: Extended Program Name
                      MENU_LEVEL:
                        type: integer
                        format: int64
                        description: Level in the menu
                      SAP_GUID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      ATTRIBUTES:
                        type: string
                        maxLength: 10
                        description: Attributes of the menu
                      TARGET_SYS:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      X_POS:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      Y_POS:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                      BOOK_INFO:
                        type: string
                        maxLength: 12
                        description: 'Structures: name of the structure'
                      SOURCE_AGR:
                        type: string
                        maxLength: 30
                        description: Role Name
                      ICON:
                        type: string
                        maxLength: 128
                        description: Icons for Role Menu Entries
                      FLAGS:
                        type: string
                        maxLength: 16
                        description: Attributes for Menu Entry
                TCODES:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      TYPE:
                        type: string
                        maxLength: 2
                        description: Report type
                      TCODE:
                        type: string
                        maxLength: 48
                        description: Extended program name
                      EXCLUDE:
                        type: string
                        maxLength: 1
                        description: Exclusive
                      DIRECT:
                        type: string
                        maxLength: 1
                        description: Flag to show that the transaction was input directly
                      INHERITED:
                        type: string
                        maxLength: 1
                        description: Flag to show that the entry was inherited
                      FOLDER:
                        type: integer
                        format: int64
                        description: Counter for menu ID
                TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      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
                URLS:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      AGR_NAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      OBJECT_ID:
                        type: integer
                        format: int64
                        description: Counter for Menu ID
                      LINK_TYPE:
                        type: string
                        maxLength: 1
                        description: Customized ('C') or standard menu ('S') flag
                      URL:
                        type: string
                        maxLength: 255
                        description: URL for the SAP Portal
              required:
              - ACTIVITY_GROUP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ADD_DETAILS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        UNIQUE_NR:
                          type: integer
                          format: int32
                          description: Natural number
                        LOBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        VERB:
                          type: string
                          maxLength: 32
                          description: Object type component
                        LOBJTYPE_NAME:
                          type: string
                          maxLength: 32
                          description: Object name
                        VERB_NAME:
                          type: string
                          maxLength: 32
                          description: Element name in upper/lower case
                        FLAGS:
                          type: string
                          maxLength: 16
                          description: Attributes for Menu Entry
                        PRIORITY:
                          type: integer
                          format: int32
                          description: Dummy for B20 int1 (Local Everywhere)
                        PARAMS:
                          type: string
                          maxLength: 1024
                          description: Character 1024
                  NODES:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        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
                        SORT_ORDER:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        REPORTTYPE:
                          type: string
                          maxLength: 2
                          description: Report type
                        REPORT:
                          type: string
                          maxLength: 48
                          description: Extended Program Name
                        MENU_LEVEL:
                          type: integer
                          format: int64
                          description: Level in the menu
                        SAP_GUID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        ATTRIBUTES:
                          type: string
                          maxLength: 10
                          description: Attributes of the menu
                        TARGET_SYS:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        X_POS:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        Y_POS:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                        BOOK_INFO:
                          type: string
                          maxLength: 12
                          description: 'Structures: name of the structure'
                        SOURCE_AGR:
                          type: string
                          maxLength: 30
                          description: Role Name
                        ICON:
                          type: string
                          maxLength: 128
                          description: Icons for Role Menu Entries
                        FLAGS:
                          type: string
                          maxLength: 16
                          description: Attributes for Menu Entry
                  TCODES:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        TYPE:
                          type: string
                          maxLength: 2
                          description: Report type
                        TCODE:
                          type: string
                          maxLength: 48
                          description: Extended program name
                        EXCLUDE:
                          type: string
                          maxLength: 1
                          description: Exclusive
                        DIRECT:
                          type: string
                          maxLength: 1
                          description: Flag to show that the transaction was input directly
                        INHERITED:
                          type: string
                          maxLength: 1
                          description: Flag to show that the entry was inherited
                        FOLDER:
                          type: integer
                          format: int64
                          description: Counter for menu ID
                  TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        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
                  URLS:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        AGR_NAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        OBJECT_ID:
                          type: integer
                          format: int64
                          description: Counter for Menu ID
                        LINK_TYPE:
                          type: string
                          maxLength: 1
                          description: Customized ('C') or standard menu ('S') flag
                        URL:
                          type: string
                          maxLength: 255
                          description: URL for the SAP Portal
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
