-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizing TimeMap formats served #122
Comments
While it is doable by introducing yet another flag and some logic changes, I am not sure if that added complexity would be worth the effort, unless you have a convincing case. |
What are your thoughts on reusing the My use case stems from the aggregators-of-aggregator (dare I say "meta aggregator" ;) ) concept and the need to pull from well-formatted known sources when the ideal source is not available. From what I recall, MemGator expects a Link-formatted TimeMap to be available, but it would be interesting to promote each format to a first-class rather than derived format. For example, if a MemGator that serves all three formats were to query a differently configured MemGator (with regard to # of archives and formats of TMs served), if the latter did not serve in Link, would the former still be able to use it as a source? |
The flag can be reused, but it will need clear documentation to distinguish the behavior difference in one-off mode and server. However, the increased complexity of parsing comma-separated list and validating when it should have only one value, then plugging all the logic will be a mess. For the use case you are describing, I would say it would be more dangerous to allow customization in what formats to serve responses in. For now, we know for sure that if a MemGator instance is running, it must be returning |
In server mode, MemGator serves 3 formats of TimeMaps: Link, CDXJ, and JSON.
In the vein of #116, I would like to be able to restrict the formats that my MemGator binary serves when in server mode.
Because most web archives that are Memento compliant only serve Link formatted TimeMaps, I would like impose similar restrictions at the aggregator level using MemGator (without touching the code).
The text was updated successfully, but these errors were encountered: