简体   繁体   English

消费者会知道 RESTful URL 是基于 OData 还是简单的 RESTful api url? 有关系吗?

[英]Would a consumer know if the RESTful URL is OData based or the simple RESTful api url? Does it matter?

If I create a simple RESTful web API in c# and one OData RESTful API and host them.如果我在 c# 和一个 OData RESTful API 中创建一个简单的 RESTful Web API 并托管它们。 Would the consumer know which one is OData based and which one is a simple one?消费者会知道哪一个是基于 OData 的,哪一个是简单的? Does it matter to them?对他们来说重要吗?

It depends how you expose them: if you let users send an ODATA query then yes the user will know.这取决于您如何公开它们:如果您让用户发送 ODATA 查询,那么是的,用户将知道。 If it's under the hood then no, the customer doesn't need to know.如果它在引擎盖下,那么不,客户不需要知道。 It's a bit like asking whether your users can guess whether your datastore is SQL or something else这有点像询问您的用户是否可以猜测您的数据存储是 SQL 还是其他内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM