package com.example.petstoremobile.api;

import com.example.petstoremobile.dtos.EmployeeDTO;
import com.example.petstoremobile.dtos.PageResponse;
import retrofit2.Call;
import retrofit2.http.*;

public interface EmployeeApi {

    @GET("api/v1/employees")
    Call<PageResponse<EmployeeDTO>> getAllEmployees(
            @Query("page") int page,
            @Query("size") int size);

    @GET("api/v1/employees/{id}")
    Call<EmployeeDTO> getEmployeeById(@Path("id") Long id);

    @POST("api/v1/employees")
    Call<EmployeeDTO> createEmployee(@Body EmployeeDTO employee);

    @PUT("api/v1/employees/{id}")
    Call<EmployeeDTO> updateEmployee(@Path("id") Long id, @Body EmployeeDTO employee);

    @DELETE("api/v1/employees/{id}")
    Call<Void> deleteEmployee(@Path("id") Long id);
}






