mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
Примеры к занятию 31 группы 2021-08.
This commit is contained in:
+1
-1
@@ -17,6 +17,6 @@ public class CountryServiceRest implements CountryService {
|
||||
@Override
|
||||
public Country getCountry( String id ) {
|
||||
log.info( "Request" );
|
||||
return rest.getForObject( "http://api.countrylayer.com/v2/alpha/" + id + "?access_key=c9abc59091c6b3ace3c5cb6ea7f16e4a", Country.class );
|
||||
return rest.getForObject( "http://api.countrylayer.com/v2/alpha/" + id + "?access_key=[!!!Your key!!!]", Country.class );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user