use url path parameters to get id