package com.example.petstoremobile.api;

import com.example.petstoremobile.dtos.PageResponse;
import com.example.petstoremobile.dtos.PurchaseOrderDTO;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface PurchaseOrderApi {

    @GET("api/v1/purchase-orders")
    Call<PageResponse<PurchaseOrderDTO>> getAllPurchaseOrders(
            @Query("page") int page,
            @Query("size") int size,
            @Query("q") String query,
            @Query("storeId") Long storeId,
            @Query("sort") String sort);

    @GET("api/v1/purchase-orders/{id}")
    Call<PurchaseOrderDTO> getPurchaseOrderById(@Path("id") Long id);
}