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

import Foundation
import Get
import URLQueryEncoder

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

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

        /// React To Comment
        ///
        /// React to a comment (like/dislike).
        public func post(_ body: [String: AnyJSON]) -> Request<[String: AnyJSON]> {
            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")
        }
    }
}
