Moving rest api domain model to stratos common component to be reused by the cli