Ask HN: HTTP Path vs. Query Parameters2 points·by lunch·hace 7 años·3 commentsWhat sort of design considerations might sites like YouTube use when deciding between path or query parameters for identifying resources?For example, YouTube uses a query param 'v' to specify a video id: youtube.com/watch?v=<video_id> Instead of sticking it in the path: youtube.com/watch/<video_id>3 commentsPost comment[–]nonsapreiche·hace 7 añosreplyI use the first if video_id can not fit in a hierarchical model[–]highhedgehog·hace 7 añosreplyCan you elaborate, I am interested? What do you mean by "if video_id cannot fit in a hierarchical model"?[–]nonsapreiche·hace 7 añosreplyLike a matrix versus a tree
For example, YouTube uses a query param 'v' to specify a video id:
Instead of sticking it in the path: