deletes a product . concode_field_sep ProductRepository productRepository concode_elem_sep Logger logger concode_elem_sep FluentAssembler fluentAssembler concode_elem_sep ProductRepresentationFinder productRepresentationFinder concode_field_sep Response product concode_elem_sep Response updateProduct concode_elem_sep Response createProduct concode_elem_sep Response products
Response function ( @ PathParam ( "srini_string" ) long arg0 ) { Product loc0 = productRepository . load ( arg0 ) ; if ( loc0 != null ) { productRepository . delete ( loc0 ) ; } else { return Response . status ( Status . NOT_FOUND ) . build ( ) ; } return Response . status ( Status . OK ) . build ( ) ; }