a delete / contacts/person / id should delete a entry if exists concode_field_sep AddressBook addressBook concode_field_sep AddressBook getAddressBook concode_elem_sep Response getPerson concode_elem_sep Response addPerson
Response function ( @ PathParam ( "srini_string" ) int arg0 ) { for ( int loc0 = 0 ; loc0 < addressBook . getPersonList ( ) . size ( ) ; loc0 ++ ) { if ( addressBook . getPersonList ( ) . get ( loc0 ) . getId ( ) == arg0 ) { addressBook . getPersonList ( ) . remove ( loc0 ) ; return Response . noContent ( ) . build ( ) ; } } return Response . status ( Status . NOT_FOUND ) . build ( ) ; }