An open API service indexing awesome lists of open source software.

https://github.com/work-design/ruby_sdk

在 rails 项目中对接 work-design 服务
https://github.com/work-design/ruby_sdk

Last synced: 3 months ago
JSON representation

在 rails 项目中对接 work-design 服务

Awesome Lists containing this project

README

          

# RubySdk
在 Rails 应用中以微服务形式集成 Work Design 的业务组件

## Usage
How to use my plugin.

```ruby
gem 'work_design', require: 'work_design'
```

## 如何使用

controller
```ruby
class ApplicationController < ActionController::API
include WorkDesign::Proxy
include WorkDesign::Identify
end
```

Routes
```ruby
Rails.application.routes.append do
match 'wechat/*path' => 'home#wechat', via: :all, defaults: { business: 'wechat' }
end
```

## 许可证
遵循 [MIT](https://opensource.org/licenses/MIT) 协议