test: NbpServiceTest completed?

This commit is contained in:
Piotr Dec 2024-05-23 22:38:20 +02:00
parent b2cbfad2ac
commit b38a507ce9
Signed by: stawros
GPG key ID: F89F27AD8F881A91
4 changed files with 59 additions and 15 deletions

View file

@ -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();
}
}