Java Reference
In-Depth Information
"rel": "self",
"href": "
http://localhost:8080/rest/posts/71892",
"method": "GET"
},
{
"rel": "replies",
"method": "GET"
},
{
"rel": "follower",
"method": "GET"
},
{
"rel": "owner",
"method": "GET"
}
]
},
{
"id": 71893,
"title": "Worst movie of 2015",
"content": "The worst movie has gotta be Just Being Me.",
"links": [
{
"rel": "self",
"href": "
http://localhost:8080/rest/posts/71893",
"method": "GET"
},
{
"rel": "owner",
"method": "GET"
}
]
}
]
}
There's a lot going on here. The response is in JSON format and is formed of one JSON object
named
post
that contains an array of posts:
{
"posts": [
{
... element one in the array
},
{
... element two in the array
}
]
}