Closed michael-82 closed 11 months ago
In /api/v2/terminology/search
search
is a verb. However REST URL's should designate resources. Often it's better to use noun's for resource names.
After looking in the code, I would suggest:
/api/v2/terminology/selectable-entries -> /api/v3/terminology/entries
/api/v2/terminology/root-entries -> /api/v3/terminology/categories
because the first resource is the resource of all entries that can be constraint by a query and the second is the resource of all categories. If I understand it correctly, categories are different from entries. We also have /api/v2/terminology/entries/{id}
which would nicely work together with /api/v3/terminology/entries
.
Please also note that the old API should be still available in order to allow an update of the backend without an update of the UI.
Changing the wording is no problem. Concerning the versioning, I have 2 questions:
The terminology endpoints are named slightly confusing (imho).
Thus I suggest changing
/api/v2/terminology/selectable-entries -> /api/v2/terminology/search /api/v2/terminology/root-entries -> /api/v2/terminology/entries/categories
I would also remove the /api/v1/... equivalents completely. @thkoehler11 @Shayan1375 - this would obviously affect the GUI - please let me know if this causes any issues