Simple message board service using the Actor System and Play Http.
sbt run
POST localhost:9000/posts
{"text": "post message here"}
DELETE localhost:9000/posts
{"id": "post uuid here"}
GET localhost:9000/posts
[
{
"id": "b3e95337-a715-4b6f-b150-2b76a798c895",
"text": "some post",
"count": 3
},
{
"id": "b08731f2-43b0-4878-91e9-9f341eaa5cf6",
"text": "another post",
"count": 1
},
{
"id": "a7356722-273a-48df-af62-7f5482824024",
"text": "another another post",
"count": -1
}
]
POST localhost:9000/vote
Dir flags (up/down)
dir=1
or dir=-1
{
"postId": "b1a9c76d-8b55-4bc3-b17e-76097994eb1a",
"dir": 1
}