cookie-curler/DESIGN.md

30 lines
661 B
Markdown

# The Beginning
`$ curl https://cc.woozle.org/`
```json
{
"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`
```json
{
"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
```