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-6343) Views : Admin - Add Group and Group Member Resources
Date Tue, 01 Jul 2014 19:53:25 GMT
Siddharth Wagle created AMBARI-6343:
---------------------------------------

             Summary: Views : Admin - Add Group and Group Member Resources
                 Key: AMBARI-6343
                 URL: https://issues.apache.org/jira/browse/AMBARI-6343
             Project: Ambari
          Issue Type: Bug
          Components: controller
    Affects Versions: 1.7.0
            Reporter: Siddharth Wagle
            Assignee: Siddharth Wagle
             Fix For: 1.7.0


Add service/resource, resource provider and db tables/entities for Group.
API support

{code}

POST
/api/v1/groups/Engineering

{code}


{code}


DELETE
/api/v1/groups/Engineering

{code}



{code}

GET
/api/v1/groups/Engineering
Response
{
  "href" : "http://<server>:8080/api/v1/groups/Engineering",
  "Groups" : {
    "name" : "Engineering"
  }
}
{code}

{code}

GET
/api/v1/groups
Response
{
  "href" : "http://server:8080/api/v1/groups/",
  "items" : [
    {
      "href" : "http://server:8080/api/v1/groups/Engineering",
      "Groups" : {
        "name" : "Engineering"
      }
    },
    {
      "href" : "http://server:8080/api/v1/groups/Marketing",
      "Groups" : {
        "name" : "Marketing"
      }
    }
  ]
}
{code}

{code}

POST
/api/v1/groups/Engineering/members/Joe
{code}

{code}

POST
/api/v1/groups/Engineering/members
Request
[
  {
    "Members":{
      "user_name":"Joe",
    }
  },
  {
    "Members":{
      "user_name":"Mary",
    }
  },
  {
    "Members":{
      "user_name":"Fred",
    }
  }
]
{code}

{code}

DELETE
/api/v1/groups/Engineering/members/Joe
{code}

{code}

GET
/api/v1/groups/Engineering/members
Response
{
  "href" : "http://server:8080/api/v1/groups/Engineering/members",
  "items" : [
    {
      "href" : "http://server:8080/api/v1/groups/Engineering/members/Joe",
      "Members" : {
        "user_name" : "Joe"
      }
    },
    {
      "href" : "http://server:8080/api/v1/groups/Engineering/members/Mary",
      "Members" : {
        "user_name" : "Mary"
      }
    }
  ]
}
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message