raas-client-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -10
- data/app/controllers/raas/client/rails/raas_controller.rb +3 -2
- data/lib/raas/client/rails/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b56a61195736f945cd1e9a2f5779a6d3db9386cc7cbcb8c77da0d68dd15f55f8
|
4
|
+
data.tar.gz: 7c754de285006edc369ae879e11caf3cd42d86cb072209ba4767567b114bad16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a9f769596c3fe3a69889adadaa56b0107a3ec6da4dae4b12e623bedca50b7b4437408d72f23088aa384d0c03e9771032dffe72199fcd1e9bbbf4638ef4a6026
|
7
|
+
data.tar.gz: d16bb03dce672c082439305a686a8df2f0b2c551264d3a8841039ba11e9b98e0e1b53685206d329c4cf6b56bc1b3e9235c4d7d6f028829440b07310784a42fbc
|
data/README.md
CHANGED
@@ -6,9 +6,10 @@ Adding extra endpoints to access RaaS. These endpoints allows you to fetch exter
|
|
6
6
|
|
7
7
|
### Set your Credentials
|
8
8
|
|
9
|
-
`landscape`, `application`, `token`
|
10
|
-
|
11
|
-
|
9
|
+
`landscape`, `application`, `token` are mandatory to interact with RaaS.
|
10
|
+
Basically, these variables can be assigned externally with files or hard-code.
|
11
|
+
Following is the example of how you set these variables on your code.
|
12
|
+
These credentials would be provided by SuTech. Please, ask [SuTech](https://www.sutech.co.jp/) adminisators for further information.
|
12
13
|
|
13
14
|
```ruby
|
14
15
|
Raas::Client::Rails::Engine.config.raas_client_rails.landscape = 'LANDSCAPE'
|
@@ -28,21 +29,32 @@ Once you install your gem, your application has several extra endpoints to inter
|
|
28
29
|
|
29
30
|
## Installation
|
30
31
|
|
31
|
-
|
32
|
+
The client is provided as [RubyGem](https://rubygems.org/gems/raas-client-rails),
|
33
|
+
and this provided as Rails Engine. you should follow the steps below to make the API work
|
34
|
+
|
35
|
+
1. Update your gem file
|
32
36
|
|
33
37
|
```ruby
|
34
38
|
gem "raas-client-rails"
|
35
39
|
```
|
36
40
|
|
37
|
-
|
41
|
+
2. install gem
|
42
|
+
|
38
43
|
```bash
|
39
|
-
$ bundle
|
44
|
+
$ bundle install
|
40
45
|
```
|
41
46
|
|
42
|
-
|
43
|
-
|
44
|
-
|
47
|
+
3. mount endPoint on `config/routes.rb`
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
mount Raas::Client::Rails::Engine => "[PATH]"
|
45
51
|
```
|
46
52
|
|
53
|
+
4. Launch your rails server
|
54
|
+
|
55
|
+
5. then you can use this with...
|
56
|
+
|
57
|
+
`/PATH/raas/endPointList`
|
58
|
+
|
47
59
|
## License
|
48
|
-
|
60
|
+
All the patents belong to SuTech
|
@@ -3,6 +3,7 @@ module Raas::Client::Rails
|
|
3
3
|
require_relative 'rest_client'
|
4
4
|
|
5
5
|
class RaasController < ApplicationController
|
6
|
+
skip_before_action :verify_authenticity_token
|
6
7
|
|
7
8
|
MSA_REPORT = "report";
|
8
9
|
MSA_DT = "datatraveler";
|
@@ -15,8 +16,8 @@ module Raas::Client::Rails
|
|
15
16
|
|
16
17
|
def prepare(params)
|
17
18
|
# seven arguments are needed to make this work
|
18
|
-
application = Raas::Client::Rails::Engine.config.raas_client_rails.
|
19
|
-
landscape = Raas::Client::Rails::Engine.config.raas_client_rails.
|
19
|
+
application = Raas::Client::Rails::Engine.config.raas_client_rails.application
|
20
|
+
landscape = Raas::Client::Rails::Engine.config.raas_client_rails.landscape
|
20
21
|
token = Raas::Client::Rails::Engine.config.raas_client_rails.token
|
21
22
|
@backUrl = params[:backUrl]
|
22
23
|
@subUrl = params[:subUrl]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raas-client-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sunao Suzuki
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -57,7 +57,7 @@ metadata:
|
|
57
57
|
homepage_uri: https://www.sutech.co.jp/
|
58
58
|
source_code_uri: https://github.com/SuTechDevelop/raas-client-for-rails
|
59
59
|
changelog_uri: https://github.com/SuTechDevelop/raas-client-for-rails/activity
|
60
|
-
post_install_message:
|
60
|
+
post_install_message:
|
61
61
|
rdoc_options: []
|
62
62
|
require_paths:
|
63
63
|
- lib
|
@@ -72,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
76
|
-
signing_key:
|
75
|
+
rubygems_version: 3.1.6
|
76
|
+
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Summary
|
79
79
|
test_files: []
|