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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Generate.ExistingLyricsById {
    public func lyricsId(_ lyricsId: String) -> WithLyricsId {
        WithLyricsId(path: "\(path)/\(lyricsId)")
    }

    public struct WithLyricsId {
        /// Path: `/api/generate/existing-lyrics-by-id/{lyrics_id}`
        public let path: String

        /// Get Existing Lyrics By Id
        public func get(version: String? = nil) -> Request<GenAPI.ExistingLyricsByIDResponse> {
            Request(path: path, method: "GET", query: makeGetQuery(version), id: "studio_api_bots_generate_api_get_existing_lyrics_by_id")
        }

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