With this MR metadata is no longer hardcoded but retrieved from a TEI resource at hand (1).
Furthermore, the API endpoint
/api/info/ has been altered in a way that it doesn't return littered JSON anymore (2).
Also general code improvements (correcting typos, minor refactoring) have been made.
For convenience purposes the changes from !6 (merged) have already been merged into this branch.
❗ Breaking Changes
language isn't a simple key/value pair anymore but contains an array of values due to the fact that some manuscripts comprise more than one language. This change MAY require updates in the frontend.
language has been renamed to
ad (1): This provides the possibility to display the real title of a manuscript as well as the languages used in the resource.
ad (2): Applications using the data from this endpoint no longer receive littered data.
Shall we add your feature to the documentation?
Are there parts of the documentation we have to adjust
Are we able to test this new feature?
Yes, you can test by following these steps: Fire up the database, insert some data and try the API endpoint
I added a statement to the CHANGELOG.