List < Country > function ( @ RequestParam String arg0 ) { log . debug ( "srini_string" , arg0 ) ; return StreamSupport . stream ( countrySearchRepository . search ( queryStringQuery ( arg0 ) ) . spliterator ( ) , false ) . collect ( Collectors . toList ( ) ) ; }
search / _ search/countries ? query = : query : search for the country corresponding to the query . concode_field_sep CountryRepository countryRepository concode_elem_sep Logger log concode_elem_sep CountrySearchRepository countrySearchRepository concode_field_sep ResponseEntity<Country> updateCountry concode_elem_sep List<Country> getAllCountries concode_elem_sep ResponseEntity<Country> createCountry concode_elem_sep ResponseEntity<Country> getCountry concode_elem_sep ResponseEntity<Void> deleteCountry