@steveklabnik
-> GET /
<- 200 OK
200 OK
3foo3bar6baz_id11;2no3yes;
200 OK
[{"foo":"bar", "baz_id":11},{"no":"yes"}]
Content-Type: application/json
https://www.iana.org/assignments/media-types/text/html
GET /
Host: mycompany.com
200 OK
Content-Type: application/json
application/vnd.mycompany+json
Structure: media type
Semantics: profile
{
"posts": [{
"id": "1",
"title": "Rails is Omakase"
}]
}
{
"posts": [{
"id": "1",
"title": "Rails is Omakase",
"links": {
"author": "9",
"comments": [ "5", "12", "17", "20" ]
}
}]
}
{
"posts": [{
"id": "1",
"title": "Rails is Omakase",
"links": {
"author": "http://example.com/people/1",
"comments": "http://example.com/comments/5,12,17,20"
}
}]
}
@steveklabnik / steve@steveklabnik.com