use pathparam for id