XD-331: REST for rich gauge

Implement controller and test.