Haikyou JSON REST API.
All URLs in the Haikyou API starts with http://haikyou.herokuapp.com/.
curl -i -X GET http://haikyou.herokuapp.com/somethingHaikyou only support JSON for serialization of data.
If Haikyou is having trouble, you might see a 5xx error. 500 means that Haikyou is down, 503 Service Unavailable, or 504 Gateway Timeout.
400 means the request is bad. 422 means "Not an haiku"
GET /conversationwill return this.
[
{
"from": "Bebop",
"to": "Rocksteady",
"visibility": "public"
"message": "This is not an haiku poem",
"date": "2014-01-22T10:56:50+01:00",
},
{
"from": "Rocksteady",
"to": "Bebop",
"visibility": "private"
"message": "This is yet not an haiku poem",
"date": "2014-01-22T10:56:51+01:00",
},
]PUT /conversationwill send a message
{
"from": "Bebop",
"to": "Rocksteady",
"visibility": "public"
"message": "This is not an haiku poem",
}POST /conversation/idwill star a message
{
"id": "1"
"starred": true
}POST /conversation/idwill change visibility of a message
{
"visibility": "public"
}