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

import Foundation
import Get
import URLQueryEncoder

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

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

        /// React To Comment
        ///
        /// React to a comment (like/dislike).
        public func post(_ body: GenAPI.GenericCommentReactionRequest) -> Request<GenAPI.CommentReactionResponse> {
            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 func delete(_ body: GenAPI.GenericCommentReactionRequest) -> Request<GenAPI.CommentReactionResponse> {
            Request(path: path, method: "DELETE", body: body, id: "studio_api_unified_feed_actions_api_remove_comment_reaction")
        }
    }
}
