getting id via request.param("id")  instead of request.query, request.param, request.body and also adding url mapping for that.