add NB resource to api.py, add apache config wsgi