make rest layer working

Change-Id: Ia1d32f9c61c8233b9ca5fe1b8911dfd7002a9894