Added basic API view functions