@GET @Produces(value = {MediaType.TEXT_PLAIN}) @Path(STATUS_PATH) @ApiOperation(value = "Check the server status", response = String.class) public Response viewStatusText() { return serviceDelegator.viewStatusText(); }
@GET @Produces( value = { VND_ORCID_XML, ORCID_XML, MediaType.APPLICATION_XML, VND_ORCID_JSON, ORCID_JSON, MediaType.APPLICATION_JSON, OrcidApiConstants.APPLICATION_CITEPROC }) @Path(WORK + PUTCODE) @ApiOperation( value = "Fetch a Work", notes = "More notes about this method", response = Work.class) public Response viewWork( @PathParam("orcid") String orcid, @PathParam("putCode") Long putCode, @Context HttpServletRequest httpRequest) { if (OrcidApiConstants.APPLICATION_CITEPROC.equals(httpRequest.getHeader("Accept"))) return serviceDelegator.viewWorkCitation(orcid, putCode); return serviceDelegator.viewWork(orcid, putCode); }
@GET @Produces( value = { VND_ORCID_XML, ORCID_XML, MediaType.APPLICATION_XML, VND_ORCID_JSON, ORCID_JSON, MediaType.APPLICATION_JSON }) @Path(ACTIVITIES) @ApiOperation(value = "Fetch all Activities", response = ActivitiesSummary.class) public Response viewActivities( @PathParam("orcid") String orcid, @Context HttpServletRequest httpRequest) { return serviceDelegator.viewActivities(orcid); }
@GET @Produces( value = { VND_ORCID_XML, ORCID_XML, MediaType.APPLICATION_XML, VND_ORCID_JSON, ORCID_JSON, MediaType.APPLICATION_JSON }) @Path(PEER_REVIEW_SUMMARY + PUTCODE) @ApiOperation(value = "Fetch a Peer Review Summary", response = PeerReviewSummary.class) public Response viewPeerReviewSummary( @PathParam("orcid") String orcid, @PathParam("putCode") Long putCode) { return serviceDelegator.viewPeerReviewSummary(orcid, putCode); }
@GET @Produces( value = { VND_ORCID_XML, ORCID_XML, MediaType.APPLICATION_XML, VND_ORCID_JSON, ORCID_JSON, MediaType.APPLICATION_JSON }) @Path(EDUCATION + PUTCODE) @ApiOperation(value = "Fetch an Education", response = Education.class) public Response viewEducation( @PathParam("orcid") String orcid, @PathParam("putCode") Long putCode) { return serviceDelegator.viewEducation(orcid, putCode); }
@GET @Produces( value = { VND_ORCID_XML, ORCID_XML, MediaType.APPLICATION_XML, VND_ORCID_JSON, ORCID_JSON, MediaType.APPLICATION_JSON }) @Path(EMPLOYMENT + PUTCODE) @ApiOperation( value = "Fetch an Employment", notes = "Retrive a specific education representation", response = Employment.class) @ApiResponses( value = { @ApiResponse(code = 200, message = "Employment found", response = Employment.class), @ApiResponse(code = 404, message = "Employment not found") }) public Response viewEmployment( @PathParam("orcid") String orcid, @PathParam("putCode") Long putCode) { return serviceDelegator.viewEmployment(orcid, putCode); }