Issue #1: Make more general REST methods