com.github.petruki.switcher.client.service.ClientService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switcher-client Show documentation
Show all versions of switcher-client Show documentation
Switcher Client for working with Switcher API
package com.github.petruki.switcher.client.service;
import java.util.Map;
import javax.ws.rs.core.Response;
import com.github.petruki.switcher.client.domain.Switcher;
/**
* @author rogerio
* @since 2019-12-24
*/
public interface ClientService {
String AUTH_RESPONSE = "authResponse";
String HEADER_AUTHORIZATION = "Authorization";
String HEADER_APIKEY = "switcher-api-key";
String TOKEN_TEXT = "Bearer %s";
String AUTH_URL = "%s/auth";
public Response executeCriteriaService(final Map properties,
final Switcher switcher) throws Exception;
public Response auth(final Map properties) throws Exception;
}