samvera / questioning_authority

Question your authorities
Other
54 stars 30 forks source link

add fetch action allowing for uri parameter #343

Closed elrayle closed 2 years ago

elrayle commented 2 years ago

Prior to this PR, the way to get the details of a term was to use the show action. The term is identified by appending the term's id to the end of the URL request path in the form:

http://my.app/qa/show/vocab/123

This approach does not work for IDs that are URIs. The slashes in the URI get interpreted as part of the path. The introduction of the fetch action allows the URI to be passed in as a parameter instead of as part of the path.

http://my.app/qa/fetch/vocab?uri=http://my.vocab/terms/123

NOTE: The linked data module already uses fetch to pass in a URI since almost all IDs are URIs.