-
Notifications
You must be signed in to change notification settings - Fork 0
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
Standardize api parameter syntax in backend generated data #20
Comments
According to a discussion with @simar0at the input parameters for the api methods may not change, as a mapping before the call is easy to implement. The focus of this issue is now on standardizing the different sources from which content references come: menu items, contents to open in the initial view, hypertext links, and application state persisted in url. The parameters coming from these sources are validated against the same rules, therefore the specific parameters of specific content types (Text, Profile etc.) must be named uniformly in these references. |
Updated the table to the convention I want to use. |
In the menu data object, (fixed this in vicav-app/ef93ae9) |
Can you please add this as an issue to the vicav-app repository, it is more appropriate there. |
Not so much about the naming, but the type of the "scope" parameter in map marker data has many forms:
The enum is also different (I cannot tell if this is intentional):
Please let's standardize these wherever possible. |
In the text |
Not naming issues, but related to the params:
|
As we are introducing zod in validation on the frontend (see acdh-oeaw/vicav-vue3#100), any other means of mapping and validation become unnecessary, and would be nice to have removed. One such thing involved is that menu items or clickable texts (links) are equipped with different parameters than those required on the api endpoint to fetch the corresponding content. This requires a manual mapping on the frontend which could be evaded once the parameters are standardized (see acdh-oeaw/vicav-vue3@08c30fd, acdh-oeaw/vicav-vue3@4673762 and acdh-oeaw/vicav-vue3@6bdde62).
To make the application as robust as zod can make it to be, I propose to standardize the api and all possible data sources in terms of parameter naming and types.
This would overwrite any previous discussions about parameter naming.
Currently the following parameters are in use:
/vicav/biblio_tei
/vicav/ling_feature
/vicav/profile
/vicav/text
/vicav/bibl_markers_tei
scope
scope
data-scope
/vicav/corpus
/vicav/corpus_text
Please, let's discuss and standardize the parameter names so that the validation and parameter passing could go fully automatic.
The text was updated successfully, but these errors were encountered: