Commit 0e1aa38f authored by Alexander Prendetskiy's avatar Alexander Prendetskiy Committed by Matija Obreza

Maintenance update

- Fixes for "Accesssion API v1: details"
- package-lock.json
parent 6df0ad06
This diff is collapsed.
......@@ -181,7 +181,7 @@ public class AccessionController {
}
@RequestMapping(value = "/details/10.{dummy:[0-9]+}/**}", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })
@JsonView(JsonViews.Minimal.class)
@JsonView(JsonViews.Public.class)
public AccessionDetailsJson getAccessionDetailsByDoi(HttpServletRequest request) {
final String fullPath = (String) request.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE);
final String doi = fullPath.substring(API_BASE.length() + 1);
......@@ -191,8 +191,8 @@ public class AccessionController {
return getAccessionDetails(accession);
}
@GetMapping(value="/details/{UUID}", consumes = MediaType.APPLICATION_JSON_VALUE)
@JsonView(JsonViews.Minimal.class)
@GetMapping(value="/details/{UUID}", produces = MediaType.APPLICATION_JSON_VALUE)
@JsonView(JsonViews.Public.class)
public AccessionDetailsJson getAccessionDetailsByUUID(@PathVariable("UUID") final UUID uuid) {
Accession accession = accessionService.getByUuid(uuid);
return getAccessionDetails(accession);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment