package com.example.petstoremobile.api;

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

import java.util.List;

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

public interface StoreApi {

    @GET("api/v1/stores")
    Call<PageResponse<StoreDTO>> getAllStores(
            @Query("page") int page,
            @Query("size") int size);

    @GET("api/v1/dropdowns/stores")
    Call<List<DropdownDTO>> getStoreDropdowns();

    @GET("api/v1/dropdowns/stores/{storeId}/employees")
    Call<List<DropdownDTO>> getStoreEmployees(@Path("storeId") Long storeId);
}
