io.polyapi.client.internal.service.InvocationService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of library Show documentation
Show all versions of library Show documentation
Java client library for Poly API
The newest version!
package io.polyapi.client.internal.service;
import java.lang.reflect.Type;
import java.util.Map;
public interface InvocationService {
T invokeServerFunction(Class> invokingClass, String id, Map body, Type expectedResponseType);
T invokeApiFunction(Class> invokingClass, String id, Map body, Type expectedResponseType);
T invokeCustomFunction(Class> invokingClass, String id, Map body, Type expectedResponseType);
Void invokeAuthFunction(Class> invokingClass, String id, Map body, Type expectedResponseType);
Void invokeSubresourceAuthFunction(Class> invokingClass, String id, Map body, Type expectedResponseType);
T injectVariable(String id, String type);
T getVariable(String id, Type type);
void updateVariable(String id, T entity);
}