ResponseEntity < State > function ( @ Valid @ RequestBody State arg0 ) { log . debug ( "srini_string" , arg0 ) ; if ( arg0 . getId ( ) == null ) { return createState ( arg0 ) ; } State loc0 = stateRepository . save ( arg0 ) ; return ResponseEntity . ok ( ) . headers ( HeaderUtil . createEntityUpdateAlert ( "srini_string" , arg0 . getId ( ) . toString ( ) ) ) . body ( loc0 ) ; }
put / states : updates an existing state . concode_field_sep StateRepository stateRepository concode_elem_sep Logger log concode_field_sep List<State> getAllStates concode_elem_sep ResponseEntity<State> getState concode_elem_sep ResponseEntity<State> createState concode_elem_sep ResponseEntity<Void> deleteState