- 
                Notifications
    You must be signed in to change notification settings 
- Fork 87
RESTful API For Groups
        Echo edited this page Apr 16, 2018 
        ·
        5 revisions
      
    Request
GET /saltshaker/api/v1.0/groups/g-5a461050290a11e8a7e3000c298454d8
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
    "data": {
        "id": "g-5a461050290a11e8a7e3000c298454d8",
        "name": "test",
        "product_id": "p-bbfc8b5221d611e894b0000c298454d8",
        "description": ""
    },
    "status": true,
    "message": ""
}
Request
GET /saltshaker/api/v1.0/groups?product_id=p-bbfc8b5221d611e894b0000c298454d8
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
   "data": [
        {
            "id": "g-60e2f3f22b1b11e886cb000c298454d8",
            "name": "test01",
            "product_id": "p-bbfc8b5221d611e894b0000c298454d8",
            "description": ""
        }
    ],
    "status": true,
    "message": ""
}
Request
POST /saltshaker/api/v1.0/groups
POST Body
{
	"name": "test01",
	"product_id": "p-bbfc8b5221d611e894b0000c298454d8"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
    "status": true,
    "message": ""
}
Request
DELETE /saltshaker/api/v1.0/groups/g-42fcb22e28fa11e8a7e3000c298454d8
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
    "status": true,
    "message": ""
}
Request
PUT /saltshaker/api/v1.0/groups/g-42fcb22e28fa11e8a7e3000c298454d8
PUT Body
{
	"name": "test01",
	"product_id": "p-bbfc8b5221d611e894b0000c298454d8"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
    "status": true,
    "message": ""
}