All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.funixgaming.api.twitch.client.clients.FunixGamingTwitchGameClient Maven / Gradle / Ivy

There is a newer version: 1.3.1.2
Show newest version
package fr.funixgaming.api.twitch.client.clients;

import com.funixproductions.api.twitch.reference.client.dtos.responses.TwitchDataResponseDTO;
import com.funixproductions.api.twitch.reference.client.dtos.responses.game.TwitchGameDTO;
import fr.funixgaming.api.core.client.clients.FeignTokenInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(
        name = "FunixGamingTwitchGameClient",
        url = "${funixgaming.api.twitch.app-domain-url}",
        path = "/twitch/games",
        configuration = FeignTokenInterceptor.class
)
public interface FunixGamingTwitchGameClient {

    @GetMapping("name")
    TwitchDataResponseDTO getGameByName(@RequestParam(name = "name") String name);

    @GetMapping("id")
    TwitchDataResponseDTO getGameById(@RequestParam(name = "id") String id);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy