package com.crm.chat.data.api

import com.crm.chat.data.model.UpdateUserProfileRequest
import com.crm.chat.data.model.UserProfile
import retrofit2.Response
import retrofit2.http.*

interface UserProfileApiService {

    @GET("api/iam/users/{id}/profile")
    suspend fun getUserProfile(@Path("id") userId: Long): Response<UserProfile>

    @PATCH("api/iam/users/{id}/profile")
    suspend fun updateUserProfile(@Path("id") userId: Long, @Body request: UpdateUserProfileRequest): Response<Unit>
}
