Naive first attempt at implementing some REST methods, which don't work and need to be fixed