Plain Web API或Web API和OData?

时间:2021-06-22 19:34:19

I'm starting a project that has to expose a RESTful service that will be consumed by a wide variety of clients of several OSs.

我正在启动一个必须公开RESTful服务的项目,该服务将被多个操作系统的各种客户端使用。

I'm reading about Web API and OData using Web API and it's hard for me to decide what to use, the plain Web API or the OData one.

我正在阅读使用Web API的Web API和OData,我很难决定使用什么,普通的Web API或OData。

What are some notable pros and cons?

有哪些显着的利弊?

Update
Would you guys be kind enough and comment on why this question is "primarily opinion based"? where exactly do you see any personal opinion here?

更新你们是否善意并评论为什么这个问题“主要基于意见”?你在哪里看到任何个人意见?

1 个解决方案

#1


1  

I've found this great post by Julie Lerman, that explains Web API and OData, and that OData is like a Web API with added a WCF-like feature set.

我发现了Julie Lerman的这篇精彩文章,它解释了Web API和OData,而OData就像一个Web API,添加了类似WCF的功能集。

One of the features is easy prototypes of generic CRUD controllers.
The article is more detailed and clear.

其中一个特性是通用CRUD控制器的简易原型。文章更加详细和清晰。

#1


1  

I've found this great post by Julie Lerman, that explains Web API and OData, and that OData is like a Web API with added a WCF-like feature set.

我发现了Julie Lerman的这篇精彩文章,它解释了Web API和OData,而OData就像一个Web API,添加了类似WCF的功能集。

One of the features is easy prototypes of generic CRUD controllers.
The article is more detailed and clear.

其中一个特性是通用CRUD控制器的简易原型。文章更加详细和清晰。