initial commit, working rest api, error handling missing