add core/api.py
rename api views