Updating for working API endpoints for creating and getting events