REST now works, added delete and update methods