cookie-curler/DESIGN.md

661 B

The Beginning

$ curl https://cc.woozle.org/

{
    "cookies": 1,
    "message": "You have made your first cookie!",
    "api": {
        "url": "api/click",
        "example": "curl https://cc.woozle.org/ | curl --data-binary @- https://cc.woozle.org/api/click"
    },
    "state": ":f1d2d2f924e986ac86fdf7b36c94bcdf32beec15"
}

$ curl https://cc.woozle.org/api/click

{
    "cookies": 2,
    "message": "You have made two cookies. Maybe you're onto something!",
    "api": {
        "url": "api/click",
        "method": "POST"
    },
    "state": "2:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15"
}
$ curl https://cc.woozle.org/click