Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.store.client;
- import com.store.entities.PixabayResponse;
- import org.springframework.cloud.openfeign.FeignClient;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestParam;
- @FeignClient(name = "PixabayClient", url = "${pixabay.url}")
- public interface PixabayClient {
- @GetMapping("/api")
- PixabayResponse getImageUrl(@RequestParam String key,
- @RequestParam String q,
- @RequestParam String image_type);
- }
Advertisement
Add Comment
Please, Sign In to add comment