com.cloudesire.platform.apiclient.api.EnvironmentApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.EnvironmentDTO;
import com.cloudesire.platform.apiclient.query.ResellerCatalogQuery;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
import java.util.List;
public interface EnvironmentApi
{
@GET( "environment/{name}" )
Call get( @Path( "name" ) String name );
@GET( "environment" )
Call> getAll();
@PUT( "environment/{name}" )
Call update( @Path( "name" ) String name, @Body EnvironmentDTO environmentDTO );
@GET( "environment/{name}/sitemap" )
Call getSitemap( @Path( "name" ) String name );
@GET( "environment/{name}/sitemap" )
Call getSitemap( @Path( "name" ) String name, @QueryMap ResellerCatalogQuery query );
@DELETE( "environment" )
Call reset();
}