odata.service 元标记的规范在哪里/是什么?
我想向我们的网络应用程序添加一些标签,以便自动发现我们的 odata feed。
例如,Nerddinner 有以下标签:
<link rel="odata.service" title="NerdDinner.com OData Service" href="/Services/OData.svc" /><link rel="odata.feed" title="NerdDinner.com OData Service - Dinners" href="/Services/OData.svc/Dinners" />
问题是我有 4 个不同的提要,并且不清楚是否允许我向文档添加多个 link rel="odata.service"
。
这个元标记的规范在哪里?
(接下来的问题是,是否有任何应用程序利用此标签,我可以用它来测试行为)
I would like to add some tags to our web app to enable auto-discovery of our odata feeds.
So for example Nerd Dinner has the following tag:
<link rel="odata.service" title="NerdDinner.com OData Service" href="/Services/OData.svc" /><link rel="odata.feed" title="NerdDinner.com OData Service - Dinners" href="/Services/OData.svc/Dinners" />
The trouble is that I have 4 different feeds and am unclear if I am allowed to add multiple link rel="odata.service"
to the document.
Where is the specification for this meta tag?
(follow on question, are there any apps that take advantage of this tag that I can use to test out behavior)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Pablo 在他的博客上对此标记提案进行了精彩的描述,以宣传 OData 支持:http://blogs.msdn.com/b/pablo/archive/2010/06/15/advertising-support-for-odata-in- web-pages.aspx Mike 在他的博客上有一个关于 IE 扩展的条目,该扩展可以读取此标头并弹出数据服务的 UI http://blog.flasko.net/post/3213799517/odata-extension-for-internet-explorer。
希望这有帮助
Pablo has a great description of this tag proposal to advertise OData support over on his blog at : http://blogs.msdn.com/b/pablo/archive/2010/06/15/advertising-support-for-odata-in-web-pages.aspx Mike has an entry on his blog about an IE extension which can read this header and popup a UI for the data service http://blog.flasko.net/post/3213799517/odata-extension-for-internet-explorer.
Hope this helps