Updating json and adding Get route for machines/