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

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

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

import com.cloudesire.platform.apiclient.dto.model.dto.CommentDTO;
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 retrofit2.http.QueryMap;

import java.util.List;
import java.util.Map;

public interface UserReviewsApi
{
    @POST( "comment" )
    Call create( @Body CommentDTO resource );

    @DELETE( "comment/{id}" )
    Call delete( @Path( "id" ) Integer id );

    @GET( "comment" )
    Call> getAllByProductAndUser( @Query( "product" ) Integer product, @Query( "user" ) Integer user );

    @GET( "comment/product={id}" )
    Call> getAll( @Path( "id" ) Integer id, @QueryMap Map pageRequest );

    @GET( "comment/{id}" )
    Call get( @Path( "id" ) Integer id );

    @PUT( "comment/{id}" )
    Call update( @Path( "id" ) Integer id, @Body CommentDTO resource );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy