Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2836

Implement JAX-RS endpoint for adding a menu item

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.28.00
    • None
    • Sprint 72, Sprint 73

    Description

      URI : http://host:port/site/_rp/menuId./create/parentTargetId
      where
      menuId = id of menu where a new item must be added
      parentTargetId = id of parent; the new item will be appended to the children of this parent

      Request-data: a JSON map containing the properties of the menu item
      Response-data: upon success a JSON map, containing the new item id under the key "data"

      Example:
      URI:
      http://localhost:8080/site/_rp/0a4b8ed9-0ce6-47b9-8de9-8811eadfd9ff./create/2e0ad79a-5c5d-402a-ae56-f9db1e6cd773

      Request-data:

      {"name": "Events 1", "linkType": "SITEMAPITEM", "link": "event01", "roles": ["sitewriter"]}

      Reponse-data:
      {"success": true, "message": "Item created successfully", "data": "8dab930c-c97f-4135-9027-33a9bc465d40"
      }

      Attachments

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            meggermont Michiel Eggermont (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: