/students
/students/<int:id>
@application.route("/students/<int:id>", methods=["GET", "POST"])
def student_by_id(id):
return {"student": id}
@application.route("/students")
def all_students():
return {"students": "all"}
<a href="{{ url_for('student_by_id', id=student.id) }}">{{ student.id }}</a>