Make bay objects work in ReST Client API

Make the bay objects work in the ReST Client API

Change-Id: I7d57a09a111e416481fc26c626d9857b7d43b3c3