test: NbpServiceTest completed?
This commit is contained in:
parent
b2cbfad2ac
commit
b38a507ce9
4 changed files with 59 additions and 15 deletions
|
@ -0,0 +1,18 @@
|
|||
package eu.ztsh.wymiana.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.client.RestClient;
|
||||
|
||||
@Configuration
|
||||
public class RestClientConfiguration {
|
||||
|
||||
@Bean
|
||||
public RestClient restClient() {
|
||||
return RestClient.builder()
|
||||
.baseUrl("http://api.nbp.pl")
|
||||
.defaultHeader("Accept", "application/json")
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue