ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Wagle (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-10372) Create an API endpoint for widget_layouts
Date Mon, 06 Apr 2015 18:23:12 GMT
Siddharth Wagle created AMBARI-10372:
----------------------------------------

             Summary: Create an API endpoint for widget_layouts
                 Key: AMBARI-10372
                 URL: https://issues.apache.org/jira/browse/AMBARI-10372
             Project: Ambari
          Issue Type: Task
          Components: ambari-server
    Affects Versions: 2.1.0
            Reporter: Siddharth Wagle
             Fix For: 2.1.0


*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*
{code}
{
  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: { …. }
           }

          }
         ]      
    }     
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message