Created abstract resource and entity to simplify rest services