Daniel-KM / Omeka-S-module-CleanUrl

Displays clean and readable URLs like https://example.org/my_collection/dcterms:identifier in Omeka S.
Other
4 stars 4 forks source link

API Uris #7

Open sinanatra opened 3 years ago

sinanatra commented 3 years ago

Is it possible to change the json-ld api url too? instead of /api/items/1 to /api/items/{custom_property}. In case, could you elaborate in how to do so?

coret commented 2 years ago

+1

coret commented 2 years ago

And maybe go a step futher and give control over the identifiers of objects, eg. the /api/items/ part. For example, we defined an URI strategy where the identifiers of our resources are written like https://{domainname}/id/{identifier}, which is in line with the W3C Cool URIs for the Semantic Web note. So for us /id/{custom_property} would be desired.

Daniel-KM commented 2 years ago

Yes, it's an interesting improvement. To be done…