package com.example.petstoremobile.api;

import com.example.petstoremobile.dtos.CustomerDTO;
import com.example.petstoremobile.dtos.DropdownDTO;
import com.example.petstoremobile.dtos.PageResponse;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

//api calls to get customers
public interface CustomerApi {

    @GET("api/v1/customers")
    Call<PageResponse<CustomerDTO>> getAllCustomers(@Query("page") int page, @Query("size") int size);

    @GET("api/v1/customers/{customerId}")
    Call<CustomerDTO> getCustomerById(@Path("customerId") Long customerId);

    @GET("api/v1/dropdowns/customers")
    Call<List<DropdownDTO>> getCustomerDropdowns();
}