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;

// api calls for stores
public interface StoreApi {

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

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

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