jsonrpc-with-rails:带有 Ruby on Rails4 的 JSON-RPC 服务器

时间:2021-06-13 04:54:12
【文件属性】:
文件名称:jsonrpc-with-rails:带有 Ruby on Rails4 的 JSON-RPC 服务器
文件大小:31KB
文件格式:ZIP
更新时间:2021-06-13 04:54:12
Ruby jsonrpc-with-rails 这是带有 Ruby on Rails4 的 JSON-RPC API 服务器。 测试脚本 发送 post 请求,如下所示。 require 'net/http' require 'uri' require 'json' require 'pp' URL = 'http://localhost:3000' uri = URI . parse ( URL ) request = Net :: HTTP :: Post . new ( uri . request_uri ) json = { id : '12345' , jsonrpc : '2.0' , method : 'user/get' , params : { id : 1 } } . to_json request . body = 'payload=
【文件预览】:
jsonrpc-with-rails-master
----.gitignore(466B)
----README.md(681B)
----.rubocop.yml(212B)
----bin()
--------rails(220B)
--------bundle(129B)
--------spring(461B)
--------rake(164B)
----test()
--------integration()
--------mailers()
--------fixtures()
--------models()
--------helpers()
--------test_helper.rb(450B)
--------controllers()
----public()
--------500.html(1KB)
--------robots.txt(202B)
--------422.html(2KB)
--------404.html(2KB)
--------favicon.ico(0B)
----Gemfile(931B)
----db()
--------seeds.rb(343B)
----log()
--------.keep(0B)
----app()
--------views()
--------mailers()
--------processor()
--------models()
--------helpers()
--------controllers()
----Gemfile.lock(2KB)
----config()
--------database.yml(2KB)
--------environment.rb(150B)
--------environments()
--------application.rb(1KB)
--------secrets.yml(964B)
--------locales()
--------boot.rb(170B)
--------initializers()
--------routes.rb(98B)
----config.ru(154B)
----lib()
--------tasks()
--------rpc()
--------assets()
----Rakefile(249B)

网友评论