8000 GitHub - flaviotorres/cachethq: cachethq ComponentGroup API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

flaviotorres/cachethq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

cachethq

cachethq ComponentGroup API

Python - RESTFul interface for CachetHQ Component Group

* /componentgroups: List all component groups.
    URI: /componentgroups
    Method: GET
* /componentgroup/<group_name>: Create a new group name
    URI: /componentgroup/new_group_name
    Method: PUT
* /componentgroup/<group_name>: Delete a group name
    URI: /componentgroup/new_group_name
    Method: DELETE
*  /help: Print this help.
    URI: /help
    Method: GET

Examples:

Create a new component group

curl -s -X PUT http://localhost:8090/componentgroups/test | python -m json.tool
{
    "id": 31
}

List all component groups

curl -s -X GET http://localhost:8090/componentgroups | python -m json.tool
[
    {
        "id": 23,
        "name": "YOUR_CP"
    },
    {
        "id": 25,
        "name": "new_cp"
    },
    {
        "id": 27,
        "name": "test"
    }
]

Delete a component group

 curl -s -X DELETE http://localhost:8090/componentgroups/test | python -m json.tool
{
    "groupname": "test",
    "status": "deleted"
}

INSTALLING

All you need is:

  • pymysql 1
  • Python 2.7 2
  • Bottle 3

About

cachethq ComponentGroup API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0