                 // Search API
             case .searchFeeds(_, let query):                 return try U.encode(req, with: query)
             case .searchContentOfStream(_, _, _, let query): return try U.encode(req, with: query)
-                //Streams API
+                // Streams API
             case .fetchEntryIds(_, _, let params):           return try U.encode(req, with: params)
             case .fetchContents(_, _, let params):           return try U.encode(req, with: params)
+                // Mixes API
+            case .fetchMix(_, _, let params):                return try U.encode(req, with: params)
                 // Subscriptions API
             case .fetchSubscriptions, .unsubscribeTo:        return req
             case .subscribeTo(_, let subscription):          return try J.encode(req, with: subscription)

                //Search API
            case .searchFeeds:               return .get
            case .searchContentOfStream:     return .get
                //Streams API
            case .fetchEntryIds:             return .get
            case .fetchContents:             return .get
                // Subscriptions API
            case .fetchSubscriptions:        return .get
            case .subscribeTo:               return .post

                // Streams API
            case .fetchEntryIds(let target, let streamId,  _):   return target.baseUrl + "/v3/streams/" + urlEncode(streamId) + "/ids"
            case .fetchContents(let target, let streamId, _):    return target.baseUrl + "/v3/streams/" + urlEncode(streamId) + "/contents"
                // Mixes API
            case .fetchMix(let target, let streamId, _):         return target.baseUrl + "/v3/mixes/" + urlEncode(streamId) + "/contents"
                // Subscriptions API
            case .fetchSubscriptions(let target):                return target.baseUrl + "/v3/subscriptions"
            case .subscribeTo(let target, _):                    return target.baseUrl + "/v3/subscriptions"
