Title: RC2: Resource Relationships · Issue #60 · JSONAPIdotNET/JSONAPI.NET · GitHub
Open Graph Title: RC2: Resource Relationships · Issue #60 · JSONAPIdotNET/JSONAPI.NET
X Title: RC2: Resource Relationships · Issue #60 · JSONAPIdotNET/JSONAPI.NET
Description: https://github.com/dgeb/json-api/blob/v1rc2/format/index.md#resource-relationships- Self key The spec does not require a self key on the links hash. Not sure if we want to support that immediately. But we do have to throw an error or tra...
Open Graph Description: https://github.com/dgeb/json-api/blob/v1rc2/format/index.md#resource-relationships- Self key The spec does not require a self key on the links hash. Not sure if we want to support that immediately....
X Description: https://github.com/dgeb/json-api/blob/v1rc2/format/index.md#resource-relationships- Self key The spec does not require a self key on the links hash. Not sure if we want to support that immediately....
Opengraph URL: https://github.com/JSONAPIdotNET/JSONAPI.NET/issues/60
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RC2: Resource Relationships","articleBody":"https://github.com/dgeb/json-api/blob/v1rc2/format/index.md#resource-relationships-\n#### Self key\n\nThe spec does not require a `self` key on the `links` hash. Not sure if we want to support that immediately. But we do have to throw an error or transform relationship property names that would serialize as `self`.\n#### SerializeAsAttribute\n\nWe have to rethink this attribute. The options the spec offers for serializing relationships are:\n1. Serialize a string containing the related resource URL.\n2. Serialize an object with the relationship URL keyed at `self`. I just commented for clarification on the rc2 PR, but I am pretty sure this URL alone is not sufficient.\n3. Serialize an object with the related resource URL keyed at `resource`. This is functionally equivalent to #1, but more verbose.\n4. Serialize an object with linkage to other resources, using `type` and `id` or `ids`. If this option is chosen the linked attributes must be included in the top level `linked` object, unlike in the past where you could send the related resource's ID but _not_ make a compound document.\n5. Serialize some combination of the above.\n\nThe main choice the developer has is:\n1. Do I want to just send a resource URL?\n2. Or should I link to a secondary resource in the compound document?\n\nAnd of course like we discussed in #27, they might want to make this decision at runtime.\n#### LinkTemplate\n\nThis attribute is still useful, since the spec only _recommends_ a format for resource URLs, and the user might need to override that convention. It might make more sense to call it something like: `ResourceUrlFormatAttribute`. We would also need a way to override the default relationship URL.\n","author":{"url":"https://github.com/csantero","@type":"Person","name":"csantero"},"datePublished":"2015-02-10T23:45:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/60/JSONAPI.NET/issues/60"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0788745e-64e4-3166-e3d3-59e578c71db9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6A4:1F14:305E2D6:42CF94A:6A50AD89 |
| html-safe-nonce | d238477ea54841e4a2e36604edd47c139a0fe665a8d4ed4c3e594dea17e4b417 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkE0OjFGMTQ6MzA1RTJENjo0MkNGOTRBOjZBNTBBRDg5IiwidmlzaXRvcl9pZCI6IjMxMzcwNjIwMjQ3OTU2OTY1MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c5dc0b56ec751b36a7a9adfc7a2b3c1035384b1723a43ad6f2daf85a84e93a2d |
| hovercard-subject-tag | issue:57256245 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSONAPIdotNET/JSONAPI.NET/60/issue_layout |
| twitter:image | https://opengraph.githubassets.com/148c4ab08b4cb58898e5c1773c041d14acfb15cd489defd24d9ec43aacf66037/JSONAPIdotNET/JSONAPI.NET/issues/60 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/148c4ab08b4cb58898e5c1773c041d14acfb15cd489defd24d9ec43aacf66037/JSONAPIdotNET/JSONAPI.NET/issues/60 |
| og:image:alt | https://github.com/dgeb/json-api/blob/v1rc2/format/index.md#resource-relationships- Self key The spec does not require a self key on the links hash. Not sure if we want to support that immediately.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | csantero |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/JSONAPIdotNET/JSONAPI.NET git https://github.com/JSONAPIdotNET/JSONAPI.NET.git |
| octolytics-dimension-user_id | 16112275 |
| octolytics-dimension-user_login | JSONAPIdotNET |
| octolytics-dimension-repository_id | 27474358 |
| octolytics-dimension-repository_nwo | JSONAPIdotNET/JSONAPI.NET |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27474358 |
| octolytics-dimension-repository_network_root_nwo | JSONAPIdotNET/JSONAPI.NET |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width