             params["api_key"] = apiKey
         }
         
-        return Endpoint.URLRequest(baseURL, method: method, path: path, parameters: params, body: body)
+        return Endpoint.URLRequest(baseURL, method: method, path: path, parameters: params, formData: formData)
     }
     
-    static func URLRequest(baseURL: String, method: Alamofire.Method, path: String, parameters: [String: AnyObject]?, body: NSData?) -> NSURLRequest {
+    static func URLRequest(baseURL: String, method: Alamofire.Method, path: String, parameters: [String: AnyObject]?, formData: MultipartFormData?) -> NSURLRequest {
         let urlRequestWithParams: NSURLRequest = {
             let getRequest = NSMutableURLRequest(URL: NSURL(string: (baseURL as NSString).stringByAppendingPathComponent(path))!)
             getRequest.HTTPMethod = Method.GET.rawValue

//
//  Endpoint.swift
//  
//
//  Created by BAN Jun on 2015/03/01.
//

        
        let request = NSMutableURLRequest(URL: urlRequestWithParams.URL!)
        request.HTTPMethod = method.rawValue
        
        if let formData = formData {
            do {
                try request.HTTPBody = formData.encode()
                request.setValue(formData.contentType, forHTTPHeaderField: "Content-Type")
            } catch _ {
                
            }
        }
        
        return request
