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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Oembed {
    public var enableForClip: EnableForClip {
        EnableForClip(path: path + "/enable-for-clip")
    }

    public struct EnableForClip {
        /// Path: `/api/oembed/enable-for-clip`
        public let path: String

        /// Enable Oembed For Clip
        public func get(clipId: String? = nil) -> Request<GenAPI.OEmbedEnableResponse> {
            Request(path: path, method: "GET", query: makeGetQuery(clipId), id: "studio_api_bots_oembed_api_enable_oembed_for_clip")
        }

        private func makeGetQuery(_ clipId: String?) -> [(String, String?)] {
            let encoder = URLQueryEncoder()
            encoder.encode(clipId, forKey: "clip_id")
            return encoder.items
        }
    }
}
