com.cloudesire.platform.apiclient.api.AdminApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.CacheDTO;
import com.cloudesire.platform.apiclient.dto.model.dto.TaskExecutorDTO;
import com.cloudesire.platform.apiclient.dto.model.dto.UrlEntityDTO;
import com.cloudesire.platform.apiclient.query.PageRequestQuery;
import retrofit2.Call;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.PATCH;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import java.util.List;
public interface AdminApi
{
@GET( "task" )
Call> getTasks();
@PATCH( "task/{className}" )
Call executeTask( @Path ( "className" ) String className );
@PUT( "admin/bucket/{key}" )
Call setUserTokens( @Path( "key" ) String key, @Query( "tokens" ) long tokens, @Query( "minutes" ) long minutes );
@GET( "admin/report" )
Call> retrieveInvoicesWithoutReport( @QueryMap PageRequestQuery page );
@POST( "admin/report" )
Call generateMissingReports( @QueryMap PageRequestQuery page );
@DELETE( "admin/report" )
Call deleteReports( @Query( "invoiceId" ) int invoiceId );
@GET( "cache" )
Call getCache();
@DELETE( "cache" )
Call emptyCache();
}