OData只定規格,不限制實作,當然,它由微軟提出,ASP.NET Web API v1 就支援 OData,在 ASP.NET Web API v2 一路支援至 OData v3(與有限的v4)。我們談 OData 規格也談 ASP.NET Web API 實作,如何利用 OData 來擴充你的 ASP.NET Web API,讓你開發出來的 RESTFul API 能應付多變的需求,以提升加速開發(少寫一行扣,就少一隻蟲!)。
5. http://mvc.tw
◼ An open protocol to allow the creation and
consumption of queryable and interoperable
RESTful APIs in a simple and standard way.
OData is …
5
6. http://mvc.tw
◼ 2007 年由微軟提出制定 OData,OData 1.0, 2.0, 3.0
都是微軟制定的開放標準,後續有 IBM、SAP 等加入共用
制定,於 2014/3/17 通過結構化資訊標準促進組織
(OASIS)認證。
◼ Simplifying data sharing across disparate
applications in enterprise, Cloud, and mobile
devices.
OASIS standard
6
7. http://mvc.tw
◼ 在 REST 的原則下,Everything is a Resource。
◼ http://services.odata.org/v4/TripPinServiceRW/People
Requesting resources
7
52. http://mvc.tw
◼ 免費線上 MVA 課程
◼ https://mva.microsoft.com/zh-tw/training-
courses/web-services-aspnet-web-api-2-11740
Web Services 開發實戰:
使用 ASP.NET Web API 2
52
53. http://mvc.tw
◼ 免費線上 Channel9 課程
◼ https://channel9.msdn.com/Blogs/Channel9Taiwan/
◼ Developing-Web-Services-Using-ASPNET-WebAPI2-Part1
◼ Developing-Web-Services-Using-ASPNET-WebAPI2-Part2
◼ Developing-Web-Services-Using-ASPNET-WebAPI2-Part3
◼ Developing-Web-Services-Using-ASPNET-WebAPI2-Part4
◼ Developing-Web-Services-Using-ASPNET-WebAPI2-Part5
Web Services 開發實戰:
使用 ASP.NET Web API 2
53
62. 謝謝各位
• 本投影片所包含的商標與文字皆屬原著作者所有。
• 本投影片使用的圖片皆從網路搜尋。
• 本著作係採用姓名標示-非商業性-相同方式分享 3.0 台灣授權。閱讀本授權條款,請到
http://creativecommons.org/licenses/by-nc-sa/3.0/tw/,或寫信至Creative Commons, 444 Castro
Street, Suite 900, Mountain View, California, 94041, USA.
h t t p : / / m v c . t w