Hi all - I'm building a resource set in a couple different formats to compare/contrast and I'm having a little trouble expressing one in CJ.
The scenario is an issue management system - think Jira or GitHub. I want to create a "home page" resource which will have both specific data values as well as some top level collections (issues assigned to you, open issues, users, etc.). A basic example of vanilla JSON is:
You can imagine that there would, over time, be a desire to include more data than just the link. Plus, I want to preserve the link relationship type "bugs" - therefore, I don't think it makes sense to leverage collection/links.
Another option would be to have a single item with a data array (e.g. collection/items[0]/data/[name=bugs]). However, it doesn't seem like it's possible to have the value of a data item be an array.
So it seems like in order to be true to form in a CJ world, I would need to create another resource for my "home page collection of type X" and then include it as a link. Is this right? It doesn't seem right in that I would now have a media type (e.g. a representation concern) dictating my resource modeling - so hoping that someone here can show me what I'm missing.
TIA,
_howard