Finish CRUD API for events and posts