acdh-oeaw / apis-core

https://acdh-oeaw.github.io/apis-core/
MIT License
11 stars 3 forks source link

if `entity/{id}` called via webbrowser it should redirect to entities detail view #370

Closed csae8092 closed 1 year ago

skurzinz commented 1 year ago

Q: Does that make sense? Are there any applications using links of this type to fetch information? Will there be any possibility to still get the raw data from the browser (for checking, debugging etc purposes)?

csae8092 commented 1 year ago

Q: Does that make sense? Are there any applications using links of this type to fetch information? Will there be any possibility to still get the raw data from the browser (for checking, debugging etc purposes)?

Yes it make sense as we will use the entity link e.g. in ARCHE or all Schnitzler-Kraus... Projects because

And yes, you can overrule the content negotiation by adding either the already existing format param, or by adding a newly implemented ?data-view=true param (this is e.g. used in an entities detail view, so that you can link in the browser to the entities data view)

(see also https://github.com/acdh-oeaw/apis-core/pull/374#issue-1443664872)

skurzinz commented 1 year ago

Ok ok, sorry, did not fully read the comment you just linked to :)