ruby_odata是Ruby实现OData协议的封装,安装方法:geminstallruby_odata
示例代码:
require'lib/ruby_odata'svc=OData::Service.new"https://127.0.0.1:8888/SampleService/Entities.svc"new_category=Category.newnew_category.Name="SampleCategory"svc.AddToCategories(new_category)category=svc.save_changesputscategory.to_json
评论