Closed Datamance closed 7 years ago
Hi,
So this code:
nps_bp = api_manager.create_api_blueprint( NetPromoterScore, url_prefix='/api/v1', methods=['POST'], collection_name='nps', preprocessors={ 'POST': [nps_entry_preprocessor] } )
Definitely shouldn't throw this error: TypeError: create_api_blueprint() takes at least 3 arguments (6 given)
TypeError: create_api_blueprint() takes at least 3 arguments (6 given)
Any idea what could be going on here?
whoops! was looking at wrong version of docs :) turns out I needed the blueprint name as my first arg.
Sorry about that!
Hi,
So this code:
nps_bp = api_manager.create_api_blueprint( NetPromoterScore, url_prefix='/api/v1', methods=['POST'], collection_name='nps', preprocessors={ 'POST': [nps_entry_preprocessor] } )
Definitely shouldn't throw this error:
TypeError: create_api_blueprint() takes at least 3 arguments (6 given)
Any idea what could be going on here?