// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.Unified.Items.Comments.WithCommentId {
    public var reaction: Reaction {
        Reaction(path: path + "/reaction")
    }

    public struct Reaction {
        /// Path: `/api/unified/items/comments/{comment_id}/reaction`
        public let path: String

        /// React To Comment
        ///
        /// React to a comment (like/dislike).
        public func post(_ body: GenAPI.GenericReactionRequest) -> Request<GenAPI.GenericReactionResponse> {
            Request(path: path, method: "POST", body: body, id: "studio_api_unified_feed_actions_api_react_to_comment")
        }

        /// Remove Comment Reaction
        ///
        /// Remove a reaction from a comment.
        public var delete: Request<[String: AnyJSON]> {
            Request(path: path, method: "DELETE", id: "studio_api_unified_feed_actions_api_remove_comment_reaction")
        }
    }
}
