         return request
     }
     
-    var method: WebAPIOperation {
+    /// WebRouter protocol property that returns the WebAPIOperations that
+    /// is required for the requested operation
+    var method: WebAPIOperations {
         switch self {
         case let .Shorten(longURL):
             var data: NSData?

            }
            catch _ {}
            
            return WebAPIOperation.Post(data: data!)
        case .Lookup:
            return .Get
        }
    }
    
    
    /// Function that generates the query parameter portion of the URL.
    /// Always encodes the API Key into the string.  Then optionally includes
    /// any passed parameters.
    func queryString(queryParameters: [String: String]? = nil) -> String {
        var qs: String = "?key=\(GoogleURLShortenerRouter.apiKey)"

        if let p = queryParameters {
            for (k, value) in p {
                if let encodedValue = value.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLQueryAllowedCharacterSet()) {
                    qs += "&\(k)=\(encodedValue)"
                }
            }
        }

        return qs
    }
}

        }
    }
    
    /// Function that generates the query parameter portion of the URL.
    /// Always encodes the API Key into the string.  Then optionally includes
    /// any passed parameters.
    ///
    /// - parameter queryParameters: A [String: String]? dictionary of
    /// query parameters to encode into the url
    /// - returns: a url represented as a String
    func queryString(queryParameters: [String: String]? = nil) -> String {
        var qs: String = "?key=\(GoogleURLShortenerRouter.apiKey)"

        if let p = queryParameters {
            for (k, value) in p {
                if let encodedValue = value.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLQueryAllowedCharacterSet()) {
                    qs += "&\(k)=\(encodedValue)"
                }
            }
        }

        return qs
    }
}




extension GoogleURLShortenerRouter: WebAPIRouter {

    /// WebAPIRouter protocol property that returns a NSMutableURLRequest
    var request: NSMutableURLRequest? {
        var request: NSMutableURLRequest?
        
