Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-10372

Create an API endpoint for widget_layouts

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • ambari-server
    • None

    Description

      Request for getting order of the widgets specific to a user

      • /api/v1/users/admin/widget_layouts/default_hdfs_layout
      • /api/v1/users/admin/widget_layouts?section_name=HDFS_SUMMARY

      Response

      {
        href: "http://c6401.ambari.apache.org:8080/api/v1/users/jaimin/widget_layouts?layout_name=default_hdfs_layout&fields=*",
          layout_name: “default_hdfs_layout”, 
          section_name: “HDFS_SUMMARY”,
          cluster_name: “c1”,
           widgetLayoutInfo: {  
             widgetLayout:    [{
                 widget_name: “NAMENODE_HEAP”,
                 href: “http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/2.0.6/services/HDFS/artifacts/widgets?widgetName=NAMENODE_HEAP”,
                 widget: {
                     WidgetInfo: { …. }
                 }
               }, 
               {
                 id: 1,
                 widget_name: “jaiminFavWidget”,
                 author: “jaimin”
                 href: “http://c6401.ambari.apache.org:8080/api/v1/users/jaimin/widgets/1”,
                 widget: {
                     WidgetInfo: { …. }
                 }
               },
                {
                 id: 10
                 widget_name: “myFavWidget”
                 author: “admin”,
                 href: “http://c6401.ambari.apache.org:8080/api/v1/users/admin/widgets/10”,
                 widget: {
                     WidgetInfo: { …. }
                 }
      
                }
               ]      
          }     
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              swagle Siddharth Wagle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: