Installed django rest framework.
Added tests for all models and fixed bugs they revealed.