feat(rest api): simple rest api made functional with user model