《D会场-刘圣波-利用 ASP.NET OData 简化物联网系统的 API 设计.pdf》由会员分享,可在线阅读,更多相关《D会场-刘圣波-利用 ASP.NET OData 简化物联网系统的 API 设计.pdf(17页珍藏版)》请在三个皮匠报告上搜索。
1、?ASP.NET OData?API?25%25%?25%25%?IoT?Timescale DB?TimescaleDB?PostgreSQLPostgreSQL?TimescaleDB?TimescaleDB?PB?TimescaleDB?OData?OASIS?RESTful API?OData?RESTful API?HTTP?URL?api/students?$select=Nameapi/students?$filter=Name eq Toddapi/students?filter=Score gt 100api/students?$orderby=Score desc?ODat
2、a?GET/POSTGET/POST?APIAPIGetGetActionsActions?/?FunctionsFunctions?ExpandExpand?/?/?HTTP GET api/entitesHTTP POST/PATCH/DELETEodata/attachdeviceinfo?$select=Nameodata/attachdeviceinfo?$expand=deviceinfoodata/devicedata(1102)?$count=true&$skip=10&$top=10odata/attachdeviceinfo?$apply=filter(deviceinfo
3、/Adcode eq 110105)/groupby(deviceinfo/Adcode),aggregate($count as NumAttachDevices,deviceinfo/deviceid with countdistinct as NumDevices,attachdevicetype/id with countdistinct as NumTypes)?10?10?0040405050606?Expand?GET?APIAPI?API?OData?REST?RESTfulRESTful?API?API?Expand?EDM?Entity Data Model?OData?