adding resources.py file for REST API