add support for POST, PUT, DELETE and PATCH methods