TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: HTTP Path vs. Query Parameters

2 pointsby lunchabout 6 years ago
What sort of design considerations might sites like YouTube use when deciding between path or query parameters for identifying resources?<p>For example, YouTube uses a query param &#x27;v&#x27; to specify a video id:<p><pre><code> youtube.com&#x2F;watch?v=&lt;video_id&gt; </code></pre> Instead of sticking it in the path:<p><pre><code> youtube.com&#x2F;watch&#x2F;&lt;video_id&gt;</code></pre>

1 comment

nonsapreicheabout 6 years ago
I use the first if video_id can not fit in a hierarchical model
评论 #19645157 未加载