Java Reference
In-Depth Information
          "rel": "self",
          "href": " http://localhost:8080/rest/posts/71892",
          "method": "GET"
        },
        {
          "rel": "replies",
          "href": " http://localhost:8080/rest/posts/71892/posts",
          "method": "GET"
        },
        {
          "rel": "follower",
          "href": " http://localhost:8080/rest/posts/71892/followers" ,
          "method": "GET"
        },
        {
          "rel": "owner",
          "href": " http://localhost:8080/rest/posts/71892/users",
          "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",
          "href": " http://localhost:8080/rest/posts/71893/users",
          "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
}
  ]
}
Search WWH ::




Custom Search