http://localhost:8080/xcf-jaxrs-example2/rest/api/get/accounts concode_field_sep BusinessService businessService concode_field_sep Response postObject concode_elem_sep Response getAccountByIdResources concode_elem_sep String root concode_elem_sep Response getAccountById concode_elem_sep HttpEntity<Greeting> greeting concode_elem_sep Response demoContext concode_elem_sep Response demoQueryParam concode_elem_sep Response demoResourceHelper concode_elem_sep Response demoMatrixParam concode_elem_sep String helloWorld concode_elem_sep String helloWorld concode_elem_sep Response demoHttpHeader
Response function ( ) { List < Account > loc0 = new ArrayList < > ( ) ; try { loc0 = businessService . getAccounts ( ) ; } catch ( Exception loc1 ) { loc1 . printStackTrace ( ) ; return Response . status ( Status . EXPECTATION_FAILED ) . build ( ) ; } return Response . status ( Status . OK ) . entity ( loc0 ) . build ( ) ; }