com.cloudesire.platform.apiclient.api.DependencyApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.DependencyDTO;
import com.cloudesire.platform.apiclient.query.PageRequestQuery;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
import java.util.List;
public interface DependencyApi
{
@POST( "dependency" )
Call create( @Body DependencyDTO dependency );
@GET( "dependency" )
Call> getAll();
@GET( "dependency" )
Call> getAll( @QueryMap PageRequestQuery pageRequest );
@GET( "dependency/{id}" )
Call get( @Path( "id" ) int id );
@PUT( "dependency/{id}" )
Call update( @Path( "id" ) int id, @Body DependencyDTO dependency );
@DELETE( "dependency/{id}" )
Call delete( @Path( "id" ) int id );
}