url 的一部分如何调用

发布于 2024-09-15 19:17:36 字数 397 浏览 2 评论 0原文

所以我有一个基本 Uri:

https://graph.facebook.com/

好的,您可以将诸如此类的各种子路径附加到他们的 API:

/me/friends
/322323232
etc.

所以您最终会得到这样的 API 调用:

https://graph.facebook.com/me/friends?access_token=2343sdfse43.....

您会调用 /me此网址的 /friends 部分?我的意思是这不是“Uri”。 Uri 是第一部分。

必须有某种正式名称来调用 Uri 下的子目录,对吧?或不?

So I've got a base Uri of:

https://graph.facebook.com/

Ok, you can append various sub paths such as this to their API:

/me/friends
/322323232
etc.

So you'd end up with something like this for their API calls:

https://graph.facebook.com/me/friends?access_token=2343sdfse43.....

What would you call the /me/friends portion of this url? I mean it's not a "Uri". The Uri is the first part.

There's got to be some kind of official name to call sub directories under the Uri right? or no?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

对不⑦ 2024-09-22 19:17:36

URI(统一资源标识符)是整个字符串。另请注意,URL(统一资源定位符)和 URI 并不相同; URL 是 URI 的子集。有关信息,请参阅维基百科文章

在您的示例中,/me/friends 被称为路径

The URI (Uniform Resource Identifier) is the entire string. Also note that URL (Uniform Resource Locator) and URI are not the same; URL is a subset of URI. See Wikipedia's article for information.

In your example, /me/friends is known as the path.

挽梦忆笙歌 2024-09-22 19:17:36

我将其称为“路径”或“路线”。

I would call it the "path" or "route."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文