akash-mitra / webtheory

Web-superiority platform for the web-artisans. (WIP Version)
0 stars 0 forks source link

Need an ability to save an array of menu at a time #119

Closed akash-mitra closed 3 years ago

akash-mitra commented 3 years ago

Currently PUT/POST request at /api/menus/ save one item at a time.

Need an ability to save (insert|update) a group of menu items like this via a single PUT|POST request:

[
   {
      "id":1,
      "title":"home",
      "alias":null,
      "parent_id":null,
      "sequence_num":1,
      "menuable_id":63,
      "menuable_type":"App\\Page",
      "home":false
   },
   {
      "id":2,
      "title":"contact",
      "alias":null,
      "parent_id":null,
      "sequence_num":2,
      "menuable_id":25,
      "menuable_type":"App\\Page",
      "home":false
   }
]