hvdsomp / signposting

7 stars 0 forks source link

add rel=self & rel=api-catalog to link set? #20

Closed phonedude closed 7 months ago

phonedude commented 7 months ago

I'm not entirely how this would work in the syntax for link sets, but there would be utility in having:

  "link":{
     "rel":"self",
     "href":"https://my.repo.org/api-info.json"
  },
  "link":{
     "rel":"api-catalog",
     "href":"https://my.repo.org/api-info.json"
  },

in the .json file

hvdsomp commented 7 months ago

I think the utility that you are after is that an API Catalog references itself. The API Catalog design is such that:

Sticking to this design approach, the following would achieve the intended utility:

This would also allow other well-know URI affordances to be handled in the same way.

hvdsomp commented 7 months ago

Added a placeholder example illustrating API Calalog entries for well-know VOID URI and well-known api-catalog.

phonedude commented 7 months ago

is there no way to put rels in there? referencing the other issue, putting rel=timemap and rel=timegate would be a huge benefit.

hvdsomp commented 7 months ago

The API Catalog Link Set approach does not work that way. It works this way (for collection-level interop affordances):

For Memento, one could handle this either in a collection-level or an item-level manner.

A collection-level approach would be as follows for a timegate affordance (similar for timemap):

If one were to handle it in an item-level manner it would look as follows:

hvdsomp commented 7 months ago

It looks like this can be closed.