File tree Expand file tree Collapse file tree
src/main/java/handsonmjc/asynch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public class InvestorResource {
2020
2121 public static final String RESOURCE_PATH = "investors" ;
2222
23+ // Injected
2324 private final InvestorService investorService ;
2425
2526 public InvestorResource (InvestorService investorService ) {
@@ -36,4 +37,14 @@ public Response createInvestor(InvestorInformationRequest investorInformationReq
3637
3738 return result ;
3839 }
40+
41+ @ POST
42+ public Response getInvestorStatus (long applicationId ,
43+ @ Context HttpServletRequest httpServletRequest ) throws Exception {
44+ InvestorDto investor = investorService .lookup (applicationId );
45+
46+ Response result = Response .ok ().entity (investor ).build ();
47+
48+ return result ;
49+ }
3950}
Original file line number Diff line number Diff line change @@ -44,4 +44,8 @@ public InvestorDto createInvestor(InvestorInformationRequest investorInformation
4444 }
4545 }
4646
47+ InvestorDto lookup (long applicationId ) {
48+ throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
49+ }
50+
4751}
You can’t perform that action at this time.
0 commit comments