rest: implement policy check for create entity

Change-Id: Ib4afce7ac25a42867a9cb3b59f62bbc5a3630fdc
Merge "rest: implement policy check for create entity"