Simple REST API. Quick-and-dirty but works for now.