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

import Foundation
import Get
import URLQueryEncoder

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

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

        /// Get Comments
        ///
        /// Get all comments for a feed item.
        public var get: Request<[[String: AnyJSON]]> {
            Request(path: path, method: "GET", id: "studio_api_unified_feed_actions_api_get_comments")
        }

        /// Post Comment
        ///
        /// Create a new comment on a feed item.
        public func post(_ body: [String: AnyJSON]) -> Request<[String: AnyJSON]> {
            Request(path: path, method: "POST", body: body, id: "studio_api_unified_feed_actions_api_post_comment")
        }
    }
}
