package profiles.data.remote.api import okhttp3.MultipartBody import profiles.data.remote.dto.ProfileDto import profiles.data.remote.dto.UpdateProfileRequest import retrofit2.http.* interface ProfileApi { @GET("profiles/{id}") suspend fun getProfile(@Path("id") id: String): ProfileDto @GET("auth/me") suspend fun getMyProfile(): ProfileDto @PUT("profiles/profile") suspend fun updateProfile(@Body request: UpdateProfileRequest): ProfileDto @Multipart @POST("profiles/avatar") suspend fun uploadAvatar(@Part avatar: MultipartBody.Part): ProfileDto @DELETE("profiles/avatar") suspend fun removeAvatar(): ProfileDto @GET("profiles/search") suspend fun searchProfiles(@Query("q") query: String): List }