I have a REST api where doing a GET on /sku/17 gives you a stockkeeping unit record. It’s for a point of sale app I’m making. I have this looking like this:
There’s a bug in the specification. http://jsonapi.org/format/ - in the “Resource Object” section, you can see it has the single resource like in my top example. It’s repeated in Resource Linkage and Resource Links.
Ah, I see what you mean. There is a //... at the top. This because a resource object can be a child of data or includes. You do not return a resource object, you return a compound document, which can contain many resources. A document must have one of data, meta or links as it’s descendants.