First shot at creating a helper for defining simple REST methods