io.baltoro.client.AdminEP Maven / Gradle / Ivy
package io.baltoro.client;
import io.baltoro.features.EPReturnType;
import io.baltoro.features.Endpoint;
import io.baltoro.features.Param;
import io.baltoro.to.AppTO;
import io.baltoro.to.BaseTO;
import io.baltoro.to.UserTO;
public interface AdminEP
{
@Endpoint(appName="admin",path="/api/adminlogin")
public UserTO adminLogin(@Param("email") String email,@Param("password") String password);
@Endpoint(appName="admin",path="/api/app/createUser")
public UserTO createUser(@Param("email") String email,@Param("password") String password);
@Endpoint(appName="admin",path="/api/app/createApp")
public AppTO createApp(@Param("name") String name);
@Endpoint(appName="admin", path="/api/app/get")
T getBO(@Param("base-uuid") String baseUuid, @EPReturnType Class type) throws Exception;
@Endpoint(appName="admin", path="/api/app/getMyApps")
AppTO[] getMyApps() throws Exception;
}