HTTP GET com.mycompany.myapp.Order|123/items

Returns the details and contents of a collection (superset of the collection's representation within GET on an Action.

Returns:

  • 200 "OK"
    • object was found, and collection was found
    • body will contain representation described below
  • 404 "Not Found"
    • either the object was not found or the collection was not found
    • body will be empty

The representation is:

{
  "_self": { 
    "link": {
      "rel": "_self.link",
      "href": "http://localhost:8080/com.mycompany.myapp.Order|123/items",
      "method": "get",
    },
    "memberType": "collection",
    "object": {
      "rel": "_self.object",
      "href": "http://localhost:8080/com.mycompany.myapp.Order|123",
      "method": "get",
    }
  },
  "value": [
     {
       "rel": "value",
       "href": "http://localhost:8080/com.mycompany.myapp.OrderItem|123|1",
       "method": "get",
       "title": "Harry Potter and the Goblet of Fire"
     },
     {
       "rel": "value",
       "href": "http://localhost:8080/com.mycompany.myapp.OrderItem|123|2",
       "method": "get",
       "title": "Rubiks Cube"
     },
     {
       "rel": "value",
       "href": "http://localhost:8080/com.mycompany.myapp.OrderItem|123|3",
       "method": "get",
       "title": "Xbox"
     }
  ],
  "type": {
    "rel": "type",
    "href": "http://localhost:8080/types/application/vnd+com.mycompany.myapp.OrderItem"
    "method": "get"
  },
  "addTo": {
    "rel": "addTo",
    "href": "http://localhost:8080/com.mycompany.myapp.Order|123/items"
    "method": "put"
  },
  "addTo": {
    "rel": "addTo",
    "href": "http://localhost:8080/com.mycompany.myapp.Order|123/items"
    "method": "post"
  },
  "removeFrom": {
    "rel": "removeFrom",
    "href": "http://localhost:8080/com.mycompany.myapp.Order|123/items"
    "method": "delete"
  }
  ...
}
  • No labels