Changed id to be path variable instead of query parameter