Write RESTful API Wrappers Declaratively