//
// DefaultAPI.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//

import Foundation
import Alamofire


open class DefaultAPI: APIBase {
    /**
     Read Users
     - parameter completion: completion handler to receive the data and the error objects
     */
    open class func readUsersImageImageUncolorizationUsersGet(completion: @escaping ((_ data: Any?, _ error: ErrorResponse?) -> Void)) {
        readUsersImageImageUncolorizationUsersGetWithRequestBuilder().execute { (response, error) -> Void in
            completion(response?.body, error)
        }
    }


    /**
     Read Users
     - GET /image/image/uncolorization/users/
     - returns: RequestBuilder<Any> 
     */
    open class func readUsersImageImageUncolorizationUsersGetWithRequestBuilder() -> RequestBuilder<Any> {
        let path = "/image/image/uncolorization/users/"
        let URLString = OpenAPIClientAPI.basePath + path
        let parameters: [String:Any]? = nil
        
        let url = URLComponents(string: URLString)

        let requestBuilder: RequestBuilder<Any>.Type = OpenAPIClientAPI.requestBuilderFactory.getBuilder()

        return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false)
    }

    /**
     Root
     - parameter completion: completion handler to receive the data and the error objects
     */
    open class func rootGet(completion: @escaping ((_ data: Any?, _ error: ErrorResponse?) -> Void)) {
        rootGetWithRequestBuilder().execute { (response, error) -> Void in
            completion(response?.body, error)
        }
    }


    /**
     Root
     - GET /
     - returns: RequestBuilder<Any> 
     */
    open class func rootGetWithRequestBuilder() -> RequestBuilder<Any> {
        let path = "/"
        let URLString = OpenAPIClientAPI.basePath + path
        let parameters: [String:Any]? = nil
        
        let url = URLComponents(string: URLString)

        let requestBuilder: RequestBuilder<Any>.Type = OpenAPIClientAPI.requestBuilderFactory.getBuilder()

        return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false)
    }

}
