Add viewmodel classes and restapi service

Continue with put/get and tests