/** * GETs the JSON representation of the ORCID record containing only funding details * * @param orcid the ORCID that corresponds to the user's record * @return the JSON representation of the ORCID record */ @Override @GET @Produces(value = {VND_ORCID_JSON, ORCID_JSON, MediaType.APPLICATION_JSON}) @Path(FUNDING_PATH) public Response viewFundingDetailsJson(@PathParam("orcid") String orcid) { return serviceDelegator.findFundingDetails(orcid); }
/** * GETs the HTML representation of the ORCID record containing only funding details * * @param orcid the ORCID that corresponds to the user's record * @return the HTML representation of the ORCID record */ @Override @GET @Produces(value = {MediaType.TEXT_HTML}) @Path(FUNDING_PATH) public Response viewFundingDetailsHtml(@PathParam("orcid") String orcid) { Response response = serviceDelegator.findFundingDetails(orcid); return Response.fromResponse(response) .header("Content-Disposition", "attachment; filename=\"" + orcid + "-grants.xml\"") .build(); }