Determine REST inputs from URL template