dataquest-dev / DSpace

(Official) The DSpace digital asset management system that powers your Institutional Repository
https://wiki.lyrasis.org/display/DSDOC7x/
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Rest api for handle resolution with metadata #761

Open Paurikova2 opened 2 weeks ago

Paurikova2 commented 2 weeks ago
Phases MP MM MB MR JM Total
ETA 0 0 0 0 0 0
Developing 8 0 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem description

Return title, repository , submitdate and reportemail metadata for handle. not only url.

The new Handle server project (link) uses this code or this code to get a URL for a specific handle.

The endpoint "/resolve/" can be found in HdlResolverRestController.java and here.

I want to modify this endpoint so that if a parameter is provided (or in some other way, such as updating the URL, HTTP request parameters, etc.), it will return a List Map, i.e., instead of https://dev-5.pc:8443/server/resolve/11234/1-5419 which returns ["AAA"], it should return [{"url": "AAA", OTHER METADATA}] where other metadata is like in http://hdl.handle.net/11025/57448?noredirect which is in HandlePlugin.java.

NOTE: (Note, you restarted Docker during the import and handle.remote-resolver.enabled = true is set to false, which is why /resolve/ does not work.)

SUMMARY: Instead of ["string"], I want /resolve/* [{}].