             options.method = 'POST'
             @request @uris.variants, options
 
-        collection: (uri, options={}) =>
+        collection: (uri, type, options={}) =>
             options.page_number ?= 0
             options.page_size ?= config.PAGE_SIZE
             @request uri,

            uri = @uris.data_sources
            if options.filter == 'own'
                uri += "?user=#{ encodeURIComponent @current_user?.uri }"
            @collection uri, options

        create_data_source: (options={}) =>
            success = options.success

            uri = @uris.annotations + '?embed=original_data_source,annotated_data_source'
            if options.filter == 'own'
                uri += "&annotated_data_source.user=#{ encodeURIComponent @current_user?.uri }"
            @collection uri, 'annotation', options

        create_annotation: (options={}) =>
            success = options.success
