All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloudesire.platform.apiclient.api.CompanyGroupApi Maven / Gradle / Ivy

The newest version!
package com.cloudesire.platform.apiclient.api;

import com.cloudesire.platform.apiclient.dto.model.dto.CompanyGroupDTO;
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.Query;

import java.util.List;

public interface CompanyGroupApi
{
    @POST( "companyGroup" )
    Call create( @Body CompanyGroupDTO group );

    @GET( "companyGroup" )
    Call> getAll();

    @GET( "companyGroup" )
    Call> getAll( @Query( "userCompanyId" ) int userCompanyId );

    @GET( "companyGroup/{id}" )
    Call get( @Path( "id" ) int id );

    @PUT( "companyGroup/{id}" )
    Call update( @Path( "id" ) int id, @Body CompanyGroupDTO group );

    @DELETE( "companyGroup/{id}" )
    Call delete( @Path( "id" ) int id );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy