added swagger annotations, changed paths for get and put