implemented POST and DELETE