       }
    }
    
-   public var path: String {
+   public var task: Task {
       switch self {
-      case .listBroadcasts(_):
-         return "/liveBroadcasts"
-      case .liveBroadcast(_):
-         return "/liveBroadcasts"
-      case .transitionLiveBroadcast(_):
-         return "/liveBroadcasts/transition"
-      case .deleteLiveBroadcast(_):
-         return "/liveBroadcasts"
-      case .bindLiveBroadcast(_):
-         return "/liveBroadcasts/bind"
-      case .liveStream(_):
-         return "/liveStreams"
-      case .deleteLiveStream(_):
-         return "/liveStreams"
-         
+      case .listBroadcasts(let parameters):
+         return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
+      case .liveBroadcast(let parameters):
+         return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
+      case .transitionLiveBroadcast(let parameters):
+         return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
+      case .deleteLiveBroadcast(let parameters):
+         return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
+      case .bindLiveBroadcast(let parameters):
+         return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
+      case .liveStream(let parameters):
+         return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
+      case .deleteLiveStream(let parameters):
+         return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
       }
    }
    

}

extension LiveStreamingAPI: TargetType {
   var headers: [String : String]? {
      return nil
   }
   
   public var baseURL: URL { return URL(string: LiveAPI.BaseURL)! }
   
   public var method: Moya.Method {
      switch self {

      return []
   }
   
   var headers: [String : String]? {
      return ["Content-type": "application/json"]
   }
}

public func url(_ route: TargetType) -> String {
