Closed harej closed 1 year ago
Once https://github.com/internetarchive/iari/pull/826 is done references/ will support serving the revisions of articles
I'm guessing you want this to "save" a request, right? In that case this is a very special case I would say. This endpoint does no fetching from the internet currently. It is very simple and just reads from the cache on disk.
Retrieving data by URLs is not a special case, it is the use case supported by the other endpoints. I want to be able to go from article URL to wikitext references. I don't care what the implementation is. I just want it to happen.
If this endpoint is only meant to read data that is already cached, then we should revisit the idea of adding original wikitext to the /article
endpoint.
I can do that very easily 😀 I'll keep the references lightweight by removing only the url_objects and the template_objects
Closing in favor of https://github.com/internetarchive/iari/issues/831
Like how I can request
/article
data for a URL:I would like to be able to do the same thing with the
/references
endpoint, for example:This would be useful if I am working with a list of page titles and not page IDs.