simple request handler for resty pin getting and setting