Skip to content

Commit

Permalink
renderInquiriesSignup() "inquiryTrialId" param - rest-api
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Mar 9, 2024
1 parent e00f669 commit 6647aca
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,11 @@ public InquiriesPDFVO renderInquiriesHead(@PathParam("id") Long id, @PathParam("

@GET
@Path("{id}/inquiryvalues/signuppdf")
public Response renderInquiriesSignup(@PathParam("id") Long id, @QueryParam("department_id") Long departmentId, @QueryParam("active_signup") Boolean activeSignup)
public Response renderInquiriesSignup(@PathParam("id") Long id, @QueryParam("department_id") Long departmentId, @QueryParam("inquiry_trial_id") Long inquiryTrialId,
@QueryParam("active_signup") Boolean activeSignup)
throws AuthenticationException,
AuthorisationException, ServiceException {
InquiriesPDFVO vo = WebUtil.getServiceLocator().getProbandService().renderInquiriesSignup(auth, departmentId, id, activeSignup);
InquiriesPDFVO vo = WebUtil.getServiceLocator().getProbandService().renderInquiriesSignup(auth, departmentId, inquiryTrialId, id, activeSignup);
// http://stackoverflow.com/questions/9204287/how-to-return-a-png-image-from-jersey-rest-service-method-to-the-browser
// non-streamed
ResponseBuilder response = Response.ok(vo.getDocumentDatas(), vo.getContentType().getMimeType());
Expand All @@ -324,10 +325,11 @@ public Response renderInquiriesSignup(@PathParam("id") Long id, @QueryParam("dep
@GET
@Produces({ MediaType.APPLICATION_JSON })
@Path("{id}/inquiryvalues/signuppdf/head")
public InquiriesPDFVO renderInquiriesSignupHead(@PathParam("id") Long id, @QueryParam("department_id") Long departmentId, @QueryParam("active_signup") Boolean activeSignup)
public InquiriesPDFVO renderInquiriesSignupHead(@PathParam("id") Long id, @QueryParam("department_id") Long departmentId, @QueryParam("inquiry_trial_id") Long inquiryTrialId,
@QueryParam("active_signup") Boolean activeSignup)
throws AuthenticationException,
AuthorisationException, ServiceException {
InquiriesPDFVO result = WebUtil.getServiceLocator().getProbandService().renderInquiriesSignup(auth, departmentId, id, activeSignup);
InquiriesPDFVO result = WebUtil.getServiceLocator().getProbandService().renderInquiriesSignup(auth, departmentId, inquiryTrialId, id, activeSignup);
result.setDocumentDatas(null);
return result;
}
Expand Down

0 comments on commit 6647aca

Please sign in to comment.