docomo-nlu 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +32 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +7 -0
  7. data/CODE_OF_CONDUCT.md +74 -0
  8. data/Gemfile +8 -0
  9. data/Gemfile.lock +198 -0
  10. data/README.md +38 -0
  11. data/Rakefile +8 -0
  12. data/bin/console +15 -0
  13. data/bin/setup +8 -0
  14. data/docomo-nlu.gemspec +37 -0
  15. data/lib/docomo-nlu.rb +11 -0
  16. data/lib/docomo-nlu/config.rb +25 -0
  17. data/lib/docomo-nlu/management.rb +28 -0
  18. data/lib/docomo-nlu/management/account.rb +32 -0
  19. data/lib/docomo-nlu/management/aiml_base.rb +126 -0
  20. data/lib/docomo-nlu/management/base.rb +87 -0
  21. data/lib/docomo-nlu/management/bot.rb +18 -0
  22. data/lib/docomo-nlu/management/config.rb +25 -0
  23. data/lib/docomo-nlu/management/default_predicate.rb +15 -0
  24. data/lib/docomo-nlu/management/map.rb +10 -0
  25. data/lib/docomo-nlu/management/multipart_base.rb +82 -0
  26. data/lib/docomo-nlu/management/ng_word.rb +10 -0
  27. data/lib/docomo-nlu/management/ok_word.rb +10 -0
  28. data/lib/docomo-nlu/management/organization.rb +23 -0
  29. data/lib/docomo-nlu/management/organization_member.rb +15 -0
  30. data/lib/docomo-nlu/management/predicate_name.rb +15 -0
  31. data/lib/docomo-nlu/management/project.rb +16 -0
  32. data/lib/docomo-nlu/management/project_member.rb +15 -0
  33. data/lib/docomo-nlu/management/property.rb +10 -0
  34. data/lib/docomo-nlu/management/provider.rb +17 -0
  35. data/lib/docomo-nlu/management/scenario.rb +18 -0
  36. data/lib/docomo-nlu/management/scenario_project.rb +10 -0
  37. data/lib/docomo-nlu/management/scenario_util.rb +30 -0
  38. data/lib/docomo-nlu/management/set.rb +10 -0
  39. data/lib/docomo-nlu/management/task_project.rb +20 -0
  40. data/lib/docomo-nlu/spontaneous.rb +8 -0
  41. data/lib/docomo-nlu/spontaneous/dialogue.rb +58 -0
  42. data/lib/docomo-nlu/spontaneous/registration.rb +58 -0
  43. data/lib/docomo-nlu/version.rb +5 -0
  44. data/lib/generators/docomo_nlu/install/install_generator.rb +11 -0
  45. data/lib/generators/templates/template.rb +7 -0
  46. data/vcr/vcr_cassettes/account/count.yml +42 -0
  47. data/vcr/vcr_cassettes/account/create.yml +44 -0
  48. data/vcr/vcr_cassettes/account/delete.yml +38 -0
  49. data/vcr/vcr_cassettes/account/index.yml +43 -0
  50. data/vcr/vcr_cassettes/account/show.yml +43 -0
  51. data/vcr/vcr_cassettes/account/update.yml +41 -0
  52. data/vcr/vcr_cassettes/baes/login.yml +44 -0
  53. data/vcr/vcr_cassettes/base/login.yml +44 -0
  54. data/vcr/vcr_cassettes/base/login_400.yml +42 -0
  55. data/vcr/vcr_cassettes/base/logout.yml +40 -0
  56. data/vcr/vcr_cassettes/base/logout_400.yml +40 -0
  57. data/vcr/vcr_cassettes/bot/create.yml +43 -0
  58. data/vcr/vcr_cassettes/bot/create_conflict.yml +45 -0
  59. data/vcr/vcr_cassettes/bot/delete.yml +38 -0
  60. data/vcr/vcr_cassettes/bot/deploy.yml +164 -0
  61. data/vcr/vcr_cassettes/bot/download_aiml.yml +51 -0
  62. data/vcr/vcr_cassettes/bot/download_archive.yml +43 -0
  63. data/vcr/vcr_cassettes/bot/download_dat.yml +43 -0
  64. data/vcr/vcr_cassettes/bot/index.yml +43 -0
  65. data/vcr/vcr_cassettes/bot/index_not_found.yml +42 -0
  66. data/vcr/vcr_cassettes/bot/show.yml +43 -0
  67. data/vcr/vcr_cassettes/bot/upload_aiml.yml +51 -0
  68. data/vcr/vcr_cassettes/bot/upload_archive.yml +46 -0
  69. data/vcr/vcr_cassettes/bot/upload_dat.yml +46 -0
  70. data/vcr/vcr_cassettes/config/delete.yml +38 -0
  71. data/vcr/vcr_cassettes/config/index.yml +120 -0
  72. data/vcr/vcr_cassettes/config/update.yml +42 -0
  73. data/vcr/vcr_cassettes/default_predicate/create.yml +42 -0
  74. data/vcr/vcr_cassettes/default_predicate/delete.yml +38 -0
  75. data/vcr/vcr_cassettes/default_predicate/index.yml +120 -0
  76. data/vcr/vcr_cassettes/default_predicate/index_not_found.yml +120 -0
  77. data/vcr/vcr_cassettes/default_predicate/update.yml +40 -0
  78. data/vcr/vcr_cassettes/map/create.yml +45 -0
  79. data/vcr/vcr_cassettes/map/create_400.yml +48 -0
  80. data/vcr/vcr_cassettes/map/delete.yml +38 -0
  81. data/vcr/vcr_cassettes/map/index_all.yml +43 -0
  82. data/vcr/vcr_cassettes/map/index_find.yml +43 -0
  83. data/vcr/vcr_cassettes/map/index_where.yml +43 -0
  84. data/vcr/vcr_cassettes/map/save.yml +45 -0
  85. data/vcr/vcr_cassettes/map/save_400.yml +48 -0
  86. data/vcr/vcr_cassettes/map/show_find.yml +43 -0
  87. data/vcr/vcr_cassettes/map/show_where.yml +43 -0
  88. data/vcr/vcr_cassettes/organization/create.yml +44 -0
  89. data/vcr/vcr_cassettes/organization/delete.yml +38 -0
  90. data/vcr/vcr_cassettes/organization/index.yml +42 -0
  91. data/vcr/vcr_cassettes/organization/show.yml +42 -0
  92. data/vcr/vcr_cassettes/organization/update.yml +40 -0
  93. data/vcr/vcr_cassettes/organization_member/create.yml +42 -0
  94. data/vcr/vcr_cassettes/organization_member/delete.yml +38 -0
  95. data/vcr/vcr_cassettes/organization_member/index.yml +42 -0
  96. data/vcr/vcr_cassettes/organization_member/index_404.yml +42 -0
  97. data/vcr/vcr_cassettes/organization_member/index_not_found.yml +42 -0
  98. data/vcr/vcr_cassettes/predicate_name/create.yml +42 -0
  99. data/vcr/vcr_cassettes/predicate_name/delete.yml +38 -0
  100. data/vcr/vcr_cassettes/predicate_name/index.yml +42 -0
  101. data/vcr/vcr_cassettes/predicate_name/index_all.yml +42 -0
  102. data/vcr/vcr_cassettes/predicate_name/index_find.yml +42 -0
  103. data/vcr/vcr_cassettes/predicate_name/index_where.yml +42 -0
  104. data/vcr/vcr_cassettes/project/create.yml +44 -0
  105. data/vcr/vcr_cassettes/project/create_conflict.yml +44 -0
  106. data/vcr/vcr_cassettes/project/delete.yml +38 -0
  107. data/vcr/vcr_cassettes/project/index.yml +227 -0
  108. data/vcr/vcr_cassettes/project/show.yml +43 -0
  109. data/vcr/vcr_cassettes/project_member/create.yml +42 -0
  110. data/vcr/vcr_cassettes/project_member/delete.yml +38 -0
  111. data/vcr/vcr_cassettes/project_member/index.yml +42 -0
  112. data/vcr/vcr_cassettes/project_member/index_403.yml +40 -0
  113. data/vcr/vcr_cassettes/project_member/index_not_found.yml +42 -0
  114. data/vcr/vcr_cassettes/provider/create.yml +44 -0
  115. data/vcr/vcr_cassettes/provider/delete.yml +38 -0
  116. data/vcr/vcr_cassettes/provider/index.yml +42 -0
  117. data/vcr/vcr_cassettes/provider/show.yml +42 -0
  118. data/vcr/vcr_cassettes/scenario/create.yml +42 -0
  119. data/vcr/vcr_cassettes/scenario/create_conflict.yml +44 -0
  120. data/vcr/vcr_cassettes/scenario/delete.yml +38 -0
  121. data/vcr/vcr_cassettes/scenario/deploy.yml +164 -0
  122. data/vcr/vcr_cassettes/scenario/download_aiml.yml +51 -0
  123. data/vcr/vcr_cassettes/scenario/index.yml +42 -0
  124. data/vcr/vcr_cassettes/scenario/index_not_found.yml +42 -0
  125. data/vcr/vcr_cassettes/scenario/show.yml +42 -0
  126. data/vcr/vcr_cassettes/scenario/update.yml +40 -0
  127. data/vcr/vcr_cassettes/scenario/upload.yml +51 -0
  128. data/vcr/vcr_cassettes/scenario/upload_aiml.yml +51 -0
  129. data/vcr/vcr_cassettes/scenario/upload_archive.yml +46 -0
  130. data/vcr/vcr_cassettes/scenario/upload_dat.yml +46 -0
  131. data/vcr/vcr_cassettes/set/create.yml +45 -0
  132. data/vcr/vcr_cassettes/set/create_400.yml +48 -0
  133. data/vcr/vcr_cassettes/set/delete.yml +38 -0
  134. data/vcr/vcr_cassettes/set/index_all.yml +42 -0
  135. data/vcr/vcr_cassettes/set/index_find.yml +42 -0
  136. data/vcr/vcr_cassettes/set/index_where.yml +42 -0
  137. data/vcr/vcr_cassettes/set/save.yml +45 -0
  138. data/vcr/vcr_cassettes/set/save_400.yml +48 -0
  139. data/vcr/vcr_cassettes/set/show_find.yml +43 -0
  140. data/vcr/vcr_cassettes/set/show_where.yml +43 -0
  141. metadata +336 -0
@@ -0,0 +1,164 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/scenarios/compile
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Authorization:
13
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 202
23
+ message: Accepted
24
+ headers:
25
+ Date:
26
+ - Wed, 22 Aug 2018 08:46:37 GMT
27
+ Content-Type:
28
+ - application/json;charset=utf-8
29
+ Content-Length:
30
+ - '151'
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - Apache
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"statusUri":"http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/NLPManagementAPI/projects/212/bots/test_bot/scenarios/compile/status"}'
42
+ http_version:
43
+ recorded_at: Wed, 22 Aug 2018 08:46:37 GMT
44
+ - request:
45
+ method: get
46
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/scenarios/compile/status
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ Accept:
52
+ - application/json
53
+ Authorization:
54
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
55
+ Accept-Encoding:
56
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
57
+ User-Agent:
58
+ - Ruby
59
+ response:
60
+ status:
61
+ code: 200
62
+ message: OK
63
+ headers:
64
+ Date:
65
+ - Wed, 22 Aug 2018 08:46:37 GMT
66
+ Content-Type:
67
+ - application/json;charset=utf-8
68
+ Content-Length:
69
+ - '54'
70
+ Connection:
71
+ - keep-alive
72
+ Server:
73
+ - Apache
74
+ X-Content-Type-Options:
75
+ - nosniff
76
+ X-Frame-Options:
77
+ - SAMEORIGIN
78
+ body:
79
+ encoding: UTF-8
80
+ string: '{"status":"Completed","created":"2018-08-22 17:46:37"}'
81
+ http_version:
82
+ recorded_at: Wed, 22 Aug 2018 08:46:37 GMT
83
+ - request:
84
+ method: post
85
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/scenarios/transfer
86
+ body:
87
+ encoding: UTF-8
88
+ string: ''
89
+ headers:
90
+ Content-Type:
91
+ - application/json
92
+ Authorization:
93
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
94
+ Accept-Encoding:
95
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
96
+ Accept:
97
+ - "*/*"
98
+ User-Agent:
99
+ - Ruby
100
+ response:
101
+ status:
102
+ code: 202
103
+ message: Accepted
104
+ headers:
105
+ Date:
106
+ - Wed, 22 Aug 2018 08:46:37 GMT
107
+ Content-Type:
108
+ - application/json;charset=utf-8
109
+ Content-Length:
110
+ - '152'
111
+ Connection:
112
+ - keep-alive
113
+ Server:
114
+ - Apache
115
+ X-Content-Type-Options:
116
+ - nosniff
117
+ X-Frame-Options:
118
+ - SAMEORIGIN
119
+ body:
120
+ encoding: UTF-8
121
+ string: '{"statusUri":"http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/NLPManagementAPI/projects/212/bots/test_bot/scenarios/transfer/status"}'
122
+ http_version:
123
+ recorded_at: Wed, 22 Aug 2018 08:46:37 GMT
124
+ - request:
125
+ method: get
126
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/scenarios/transfer/status
127
+ body:
128
+ encoding: US-ASCII
129
+ string: ''
130
+ headers:
131
+ Accept:
132
+ - application/json
133
+ Authorization:
134
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
135
+ Accept-Encoding:
136
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
137
+ User-Agent:
138
+ - Ruby
139
+ response:
140
+ status:
141
+ code: 200
142
+ message: OK
143
+ headers:
144
+ Date:
145
+ - Wed, 22 Aug 2018 08:46:38 GMT
146
+ Content-Type:
147
+ - application/json;charset=utf-8
148
+ Content-Length:
149
+ - '110'
150
+ Connection:
151
+ - keep-alive
152
+ Server:
153
+ - Apache
154
+ X-Content-Type-Options:
155
+ - nosniff
156
+ X-Frame-Options:
157
+ - SAMEORIGIN
158
+ body:
159
+ encoding: UTF-8
160
+ string: '{"transferStatusResponses":[{"hostName":"localhost","status":"Completed","transfered":"2018-08-22
161
+ 17:46:37"}]}'
162
+ http_version:
163
+ recorded_at: Wed, 22 Aug 2018 08:46:38 GMT
164
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/aiml/test
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.15.2
12
+ Authorization:
13
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Tue, 04 Sep 2018 23:38:27 GMT
25
+ Content-Length:
26
+ - '381'
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Apache
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ Content-Disposition:
36
+ - attachment;filename*=UTF-8''test.aiml
37
+ body:
38
+ encoding: UTF-8
39
+ string: |
40
+ <?xml version="1.0" encoding="UTF-8"?>
41
+ <aiml version="2.0.0" xmlns="http://www.nttdocomo.com/aiml/schema" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nttdocomo.com/aiml/schema/AIML.xsd">
42
+ <category>
43
+ <pattern>*</pattern>
44
+ <template>
45
+ Hello, world!
46
+ </template>
47
+ </category>
48
+ </aiml>
49
+ http_version:
50
+ recorded_at: Tue, 04 Sep 2018 23:38:27 GMT
51
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/scenarios
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Authorization:
13
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Wed, 22 Aug 2018 08:46:36 GMT
25
+ Content-Type:
26
+ - application/json;charset=utf-8
27
+ Content-Length:
28
+ - '170'
29
+ Connection:
30
+ - keep-alive
31
+ Server:
32
+ - Apache
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"userScenarios":[{"scenarioId":"test_scenario","description":"test","compileFlag":true,"compilable":false,"authoring":false,"lastModified":""}],"templateScenarios":null}'
40
+ http_version:
41
+ recorded_at: Wed, 22 Aug 2018 08:46:36 GMT
42
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/scenarios
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Authorization:
13
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Wed, 22 Aug 2018 08:46:36 GMT
25
+ Content-Type:
26
+ - application/json;charset=utf-8
27
+ Content-Length:
28
+ - '47'
29
+ Connection:
30
+ - keep-alive
31
+ Server:
32
+ - Apache
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"userScenarios":null,"templateScenarios":null}'
40
+ http_version:
41
+ recorded_at: Wed, 22 Aug 2018 08:46:36 GMT
42
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/scenarios/test_scenario
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Authorization:
13
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Wed, 22 Aug 2018 08:46:36 GMT
25
+ Content-Type:
26
+ - application/json;charset=utf-8
27
+ Content-Length:
28
+ - '170'
29
+ Connection:
30
+ - keep-alive
31
+ Server:
32
+ - Apache
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"userScenarios":[{"scenarioId":"test_scenario","description":"test","compileFlag":true,"compilable":false,"authoring":false,"lastModified":""}],"templateScenarios":null}'
40
+ http_version:
41
+ recorded_at: Wed, 22 Aug 2018 08:46:36 GMT
42
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,40 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/scenarios/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"userScenarios":[{"scenarioId":"test_scenario","description":"test","compileFlag":true}]}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Authorization:
13
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 204
23
+ message: No Content
24
+ headers:
25
+ Date:
26
+ - Wed, 22 Aug 2018 08:46:36 GMT
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Apache
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ body:
36
+ encoding: UTF-8
37
+ string: ''
38
+ http_version:
39
+ recorded_at: Wed, 22 Aug 2018 08:46:36 GMT
40
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/aiml
6
+ body:
7
+ encoding: UTF-8
8
+ string: "-------------RubyMultipartPost-e2ad91e439a2f16888987a7a89f6aa41\r\nContent-Disposition:
9
+ form-data; name=\"uploadFile\"; filename=\"test.aiml\"\r\nContent-Length:
10
+ 381\r\nContent-Type: text/plain\r\nContent-Transfer-Encoding: binary\r\n\r\n<?xml
11
+ version=\"1.0\" encoding=\"UTF-8\"?>\n<aiml version=\"2.0.0\" xmlns=\"http://www.nttdocomo.com/aiml/schema\"
12
+ xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
13
+ xsi:schemaLocation=\"http://www.nttdocomo.com/aiml/schema/AIML.xsd\">\n <category>\n
14
+ \ <pattern>*</pattern>\n <template>\n Hello, world!\n </template>\n
15
+ \ </category>\n</aiml>\n\r\n-------------RubyMultipartPost-e2ad91e439a2f16888987a7a89f6aa41--\r\n\r\n"
16
+ headers:
17
+ User-Agent:
18
+ - Faraday v0.15.2
19
+ Authorization:
20
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
21
+ Content-Type:
22
+ - multipart/form-data; boundary=-----------RubyMultipartPost-e2ad91e439a2f16888987a7a89f6aa41
23
+ Content-Length:
24
+ - '674'
25
+ Accept-Encoding:
26
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
27
+ Accept:
28
+ - "*/*"
29
+ response:
30
+ status:
31
+ code: 201
32
+ message: Created
33
+ headers:
34
+ Date:
35
+ - Wed, 22 Aug 2018 08:46:36 GMT
36
+ Content-Length:
37
+ - '0'
38
+ Connection:
39
+ - keep-alive
40
+ Server:
41
+ - Apache
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - SAMEORIGIN
46
+ body:
47
+ encoding: UTF-8
48
+ string: ''
49
+ http_version:
50
+ recorded_at: Wed, 22 Aug 2018 08:46:36 GMT
51
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://nlu-external-dev-977165653.ap-northeast-1.elb.amazonaws.com/management/v2.2/projects/212/bots/test_bot/aiml
6
+ body:
7
+ encoding: UTF-8
8
+ string: "-------------RubyMultipartPost-b24e0cc1ee959042791b50c43b322dfa\r\nContent-Disposition:
9
+ form-data; name=\"uploadFile\"; filename=\"test.aiml\"\r\nContent-Length:
10
+ 381\r\nContent-Type: text/plain\r\nContent-Transfer-Encoding: binary\r\n\r\n<?xml
11
+ version=\"1.0\" encoding=\"UTF-8\"?>\n<aiml version=\"2.0.0\" xmlns=\"http://www.nttdocomo.com/aiml/schema\"
12
+ xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
13
+ xsi:schemaLocation=\"http://www.nttdocomo.com/aiml/schema/AIML.xsd\">\n <category>\n
14
+ \ <pattern>*</pattern>\n <template>\n Hello, world!\n </template>\n
15
+ \ </category>\n</aiml>\n\r\n-------------RubyMultipartPost-b24e0cc1ee959042791b50c43b322dfa--\r\n\r\n"
16
+ headers:
17
+ User-Agent:
18
+ - Faraday v0.15.2
19
+ Authorization:
20
+ - NLP f68518ed5a40907ec6b754caeaadc32b0af4920f69955c22749e38e17946ea57
21
+ Content-Type:
22
+ - multipart/form-data; boundary=-----------RubyMultipartPost-b24e0cc1ee959042791b50c43b322dfa
23
+ Content-Length:
24
+ - '674'
25
+ Accept-Encoding:
26
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
27
+ Accept:
28
+ - "*/*"
29
+ response:
30
+ status:
31
+ code: 201
32
+ message: Created
33
+ headers:
34
+ Date:
35
+ - Tue, 04 Sep 2018 23:05:43 GMT
36
+ Content-Length:
37
+ - '0'
38
+ Connection:
39
+ - keep-alive
40
+ Server:
41
+ - Apache
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - SAMEORIGIN
46
+ body:
47
+ encoding: UTF-8
48
+ string: ''
49
+ http_version:
50
+ recorded_at: Tue, 04 Sep 2018 23:05:43 GMT
51
+ recorded_with: VCR 4.0.0