Consider exposing database IDs for easier access #153
Replies: 1 comment 2 replies
-
What would be the use-case for this? I'd be leery of making a change like this unless there was a real compelling reason to do so. Regarding adding Metron ID field to the other resources, it's on my TODO list but fairly low-priority. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
many thanks for your work on Metron! It is a very promising project and I have high hopes for its future. Here's a feature request for your consideration.
One feature that I know from various public databases that seems to be missing in Metron is the easy access to unique identifiers of all the various items.
As far as I understand it, currently the only way to learn the ID of a given item (other than a single issue - issues do have their IDs listed on their pages) is to ask the API for it (which requires mentioning the item by some other property, such as its name).
Compare it to services such as Comic Vine, BoardGamegeek or IMDb, where IDs of items are included in the URIs of their respective pages:
In the most relevant case of Comic Vine, note that I can access the same page for Batman Vol. 1 using the URL scheme I would also use when calling the API:
https://comicvine.gamespot.com/volume/4050-796/
(withvolume
instead ofBatman
). This feature is apparently absent in Metron; I can't point somebody to an item's web page if I know only its ID (I would be forced to query the API for itsresource_url
first).I think that exposing IDs in the catalog's URIs is a good practice. For one thing, it establishes a canonical way to refer to a given item (either in the link opened in a browser or in an API call). If I were compiling a personal comic database of some sort, I could then have a
metron-id
column that could be used for both generating links to Metron's catalog, and making some API calls about it.Even if you don't like the URI idea (e.g. for SEO or aesthetic reasons), please consider adding the "Metron ID" field to page templates for all the kinds of items that have an ID.
Beta Was this translation helpful? Give feedback.
All reactions