working get resources, begin working on put method - csrf issues