# Relationship with no links but with missing resource linkage

**URL:** <https://discuss.jsonapi.org/t/relationship-with-no-links-but-with-missing-resource-linkage/2000>\
**Category:** Uncategorized\
**Created:** [July 14, 2020, 10:00pm UTC](https://discuss.jsonapi.org/t/relationship-with-no-links-but-with-missing-resource-linkage/2000 "2020-07-14T22:00:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerkms](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/zerkms/32/698_2.png) [@zerkms](https://discuss.jsonapi.org/u/zerkms)\
**Post date:** [July 14, 2020, 10:00pm UTC](https://discuss.jsonapi.org/t/relationship-with-no-links-but-with-missing-resource-linkage/2000/1 "2020-07-14T22:00:05Z")

</div>

I’m looking at the example at [https://jsonapi.org/format/#document-compound-documents](https://jsonapi.org/format/#document-compound-documents)

The `included` `comment.id=5` is authored by `people.id=2`. There is no `people.id=2` in the `included` though, and there is no `links.self` in the `relationships.author` either.

Hence, is this a valid `json:api` object?

---

<div class="post-metadata">

**Author:** ![fdrake](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/fdrake/32/654_2.png) [@fdrake](https://discuss.jsonapi.org/u/fdrake)\
**Post date:** [July 16, 2020, 5:12pm UTC](https://discuss.jsonapi.org/t/relationship-with-no-links-but-with-missing-resource-linkage/2000/2 "2020-07-16T17:12:55Z")

</div>

Probably, at least by my reading of the specification, but it’s not as useful as it should be.

Given the specification’s assertion that the shape of the URL space is not covered by the specification, there’s no way to convert `{"type": "...", "id": "..."}` to a URL, so therefore no way to know how to retrieve `people.id=2` without having already retrieved that resource.

A careful implementation would include the URLs for resources not included in the response.

---

<div class="post-metadata">

**Author:** ![Haneen](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@Haneen](https://discuss.jsonapi.org/u/Haneen)\
**Post date:** [February 5, 2021, 1:12am UTC](https://discuss.jsonapi.org/t/relationship-with-no-links-but-with-missing-resource-linkage/2000/3 "2021-02-05T01:12:21Z")

</div>

> [@Relationship with no links but with missing resource linkage](https://discuss.jsonapi.org/t/relationship-with-no-links-but-with-missing-resource-linkage/2000):
>
> I’m looking at the example at [https://jsonapi.org/format/#document-compound-documents](https://jsonapi.org/format/#document-compound-documents) The included comment.id=5 is authored by people.id=2. There is no people.id=2 in the included though, and there is no links.self in the relationships.author either. Hence, is this a valid json:api object?
