indexea_client 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +3413 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccountApi.md +685 -0
  6. data/docs/AccountBean.md +27 -0
  7. data/docs/AccountPasswdBody.md +8 -0
  8. data/docs/AccountPortraitBody.md +7 -0
  9. data/docs/AccountProfileBody.md +8 -0
  10. data/docs/AccountResetpwdBody.md +9 -0
  11. data/docs/AccountSigninBody.md +9 -0
  12. data/docs/AccountSignupBody.md +10 -0
  13. data/docs/AccountsFeedbackBody.md +8 -0
  14. data/docs/AccountsMessageBody.md +8 -0
  15. data/docs/AnalyzeObject.md +8 -0
  16. data/docs/AnalyzeToken.md +11 -0
  17. data/docs/AppBean.md +23 -0
  18. data/docs/AppCompanyBody.md +22 -0
  19. data/docs/AppIndexBody.md +7 -0
  20. data/docs/AppLogAccount.md +9 -0
  21. data/docs/AppLogBean.md +19 -0
  22. data/docs/AppLogsBean.md +9 -0
  23. data/docs/AppMentorBean.md +14 -0
  24. data/docs/AppOauthBody.md +7 -0
  25. data/docs/AppOauthBody1.md +7 -0
  26. data/docs/AppOauthresetsecretBody.md +7 -0
  27. data/docs/AppTokensBody.md +7 -0
  28. data/docs/AppTokensBody1.md +7 -0
  29. data/docs/AppWidgetBody.md +7 -0
  30. data/docs/AppsApi.md +1843 -0
  31. data/docs/AppsAppBody.md +8 -0
  32. data/docs/AppsBody.md +8 -0
  33. data/docs/AutoCompleteItem.md +9 -0
  34. data/docs/BlacklistBean.md +12 -0
  35. data/docs/Bulletin.md +15 -0
  36. data/docs/CompanyBean.md +24 -0
  37. data/docs/ContactForm.md +11 -0
  38. data/docs/CrawlerLog.md +14 -0
  39. data/docs/CrawlerLogs.md +8 -0
  40. data/docs/CrawlerTask.md +16 -0
  41. data/docs/FieldsApi.md +215 -0
  42. data/docs/GlobalApi.md +258 -0
  43. data/docs/GlobalOptionForm.md +8 -0
  44. data/docs/IndexBean.md +26 -0
  45. data/docs/IndexFieldBean.md +8 -0
  46. data/docs/IndexForm.md +15 -0
  47. data/docs/IndexRebuildForm.md +12 -0
  48. data/docs/IndexSettings.md +10 -0
  49. data/docs/IndexSettingsBody.md +7 -0
  50. data/docs/IndexStatBean.md +14 -0
  51. data/docs/IndexSynonymsflushBody.md +7 -0
  52. data/docs/IndexTask.md +13 -0
  53. data/docs/IndexTemplate.md +17 -0
  54. data/docs/IndexTemplates.md +8 -0
  55. data/docs/IndexUploadBody.md +7 -0
  56. data/docs/IndicesApi.md +1620 -0
  57. data/docs/IntelligentMapping.md +8 -0
  58. data/docs/KeywordBindingBean.md +14 -0
  59. data/docs/MentorForm.md +8 -0
  60. data/docs/Message.md +18 -0
  61. data/docs/MessageApi.md +262 -0
  62. data/docs/Messages.md +8 -0
  63. data/docs/OauthAppBean.md +20 -0
  64. data/docs/OpenidBean.md +10 -0
  65. data/docs/OptionForm.md +10 -0
  66. data/docs/OrdersIdentBody.md +7 -0
  67. data/docs/PayResult.md +9 -0
  68. data/docs/PaymentApi.md +788 -0
  69. data/docs/PaymentInvoice.md +15 -0
  70. data/docs/PaymentOrder.md +25 -0
  71. data/docs/PaymentRecord.md +13 -0
  72. data/docs/PaymentService.md +12 -0
  73. data/docs/QueriesApi.md +1821 -0
  74. data/docs/QueryActionBean.md +27 -0
  75. data/docs/QueryBean.md +22 -0
  76. data/docs/QueryForm.md +15 -0
  77. data/docs/QueryNode.md +10 -0
  78. data/docs/QuerySortField.md +9 -0
  79. data/docs/QueryVariableBean.md +17 -0
  80. data/docs/RecommendApi.md +365 -0
  81. data/docs/RecommendBean.md +18 -0
  82. data/docs/RecordFilter.md +10 -0
  83. data/docs/RecordsApi.md +286 -0
  84. data/docs/SearchApi.md +646 -0
  85. data/docs/SearchEstimateResult.md +11 -0
  86. data/docs/SearchWord.md +8 -0
  87. data/docs/StatIndexBean.md +14 -0
  88. data/docs/StatsApi.md +245 -0
  89. data/docs/SynonymsBean.md +14 -0
  90. data/docs/TokenBean.md +12 -0
  91. data/docs/TriggerBean.md +13 -0
  92. data/docs/TriggerLogBean.md +15 -0
  93. data/docs/ValueOfField.md +8 -0
  94. data/docs/WidgetBean.md +21 -0
  95. data/docs/WidgetForm.md +13 -0
  96. data/docs/WidgetLogo.md +7 -0
  97. data/docs/WidgetLogoBody.md +7 -0
  98. data/docs/WidgetStatusForm.md +8 -0
  99. data/docs/WidgetsApi.md +573 -0
  100. data/git_push.sh +55 -0
  101. data/indexea_client.gemspec +38 -0
  102. data/lib/indexea_client/api/account_api.rb +846 -0
  103. data/lib/indexea_client/api/apps_api.rb +2271 -0
  104. data/lib/indexea_client/api/fields_api.rb +289 -0
  105. data/lib/indexea_client/api/global_api.rb +326 -0
  106. data/lib/indexea_client/api/indices_api.rb +2076 -0
  107. data/lib/indexea_client/api/message_api.rb +337 -0
  108. data/lib/indexea_client/api/payment_api.rb +975 -0
  109. data/lib/indexea_client/api/queries_api.rb +2320 -0
  110. data/lib/indexea_client/api/recommend_api.rb +461 -0
  111. data/lib/indexea_client/api/records_api.rb +375 -0
  112. data/lib/indexea_client/api/search_api.rb +892 -0
  113. data/lib/indexea_client/api/stats_api.rb +312 -0
  114. data/lib/indexea_client/api/widgets_api.rb +741 -0
  115. data/lib/indexea_client/api_client.rb +391 -0
  116. data/lib/indexea_client/api_error.rb +57 -0
  117. data/lib/indexea_client/configuration.rb +205 -0
  118. data/lib/indexea_client/models/account_bean.rb +396 -0
  119. data/lib/indexea_client/models/account_passwd_body.rb +227 -0
  120. data/lib/indexea_client/models/account_portrait_body.rb +206 -0
  121. data/lib/indexea_client/models/account_profile_body.rb +228 -0
  122. data/lib/indexea_client/models/account_resetpwd_body.rb +240 -0
  123. data/lib/indexea_client/models/account_signin_body.rb +237 -0
  124. data/lib/indexea_client/models/account_signup_body.rb +254 -0
  125. data/lib/indexea_client/models/accounts_feedback_body.rb +262 -0
  126. data/lib/indexea_client/models/accounts_message_body.rb +226 -0
  127. data/lib/indexea_client/models/analyze_object.rb +216 -0
  128. data/lib/indexea_client/models/analyze_token.rb +243 -0
  129. data/lib/indexea_client/models/app_bean.rb +360 -0
  130. data/lib/indexea_client/models/app_company_body.rb +357 -0
  131. data/lib/indexea_client/models/app_index_body.rb +212 -0
  132. data/lib/indexea_client/models/app_log_account.rb +224 -0
  133. data/lib/indexea_client/models/app_log_bean.rb +318 -0
  134. data/lib/indexea_client/models/app_logs_bean.rb +229 -0
  135. data/lib/indexea_client/models/app_mentor_bean.rb +277 -0
  136. data/lib/indexea_client/models/app_oauth_body.rb +206 -0
  137. data/lib/indexea_client/models/app_oauth_body_1.rb +212 -0
  138. data/lib/indexea_client/models/app_oauthresetsecret_body.rb +212 -0
  139. data/lib/indexea_client/models/app_tokens_body.rb +212 -0
  140. data/lib/indexea_client/models/app_tokens_body_1.rb +212 -0
  141. data/lib/indexea_client/models/app_widget_body.rb +212 -0
  142. data/lib/indexea_client/models/apps_app_body.rb +216 -0
  143. data/lib/indexea_client/models/apps_body.rb +221 -0
  144. data/lib/indexea_client/models/auto_complete_item.rb +224 -0
  145. data/lib/indexea_client/models/blacklist_bean.rb +258 -0
  146. data/lib/indexea_client/models/bulletin.rb +312 -0
  147. data/lib/indexea_client/models/company_bean.rb +378 -0
  148. data/lib/indexea_client/models/contact_form.rb +258 -0
  149. data/lib/indexea_client/models/crawler_log.rb +270 -0
  150. data/lib/indexea_client/models/crawler_logs.rb +217 -0
  151. data/lib/indexea_client/models/crawler_task.rb +288 -0
  152. data/lib/indexea_client/models/global_option_form.rb +218 -0
  153. data/lib/indexea_client/models/index_bean.rb +390 -0
  154. data/lib/indexea_client/models/index_field_bean.rb +217 -0
  155. data/lib/indexea_client/models/index_form.rb +283 -0
  156. data/lib/indexea_client/models/index_rebuild_form.rb +254 -0
  157. data/lib/indexea_client/models/index_settings.rb +234 -0
  158. data/lib/indexea_client/models/index_settings_body.rb +212 -0
  159. data/lib/indexea_client/models/index_stat_bean.rb +270 -0
  160. data/lib/indexea_client/models/index_synonymsflush_body.rb +212 -0
  161. data/lib/indexea_client/models/index_task.rb +261 -0
  162. data/lib/indexea_client/models/index_template.rb +299 -0
  163. data/lib/indexea_client/models/index_templates.rb +219 -0
  164. data/lib/indexea_client/models/index_upload_body.rb +208 -0
  165. data/lib/indexea_client/models/intelligent_mapping.rb +217 -0
  166. data/lib/indexea_client/models/keyword_binding_bean.rb +274 -0
  167. data/lib/indexea_client/models/mentor_form.rb +220 -0
  168. data/lib/indexea_client/models/message.rb +306 -0
  169. data/lib/indexea_client/models/messages.rb +217 -0
  170. data/lib/indexea_client/models/oauth_app_bean.rb +329 -0
  171. data/lib/indexea_client/models/openid_bean.rb +238 -0
  172. data/lib/indexea_client/models/option_form.rb +287 -0
  173. data/lib/indexea_client/models/orders_ident_body.rb +206 -0
  174. data/lib/indexea_client/models/pay_result.rb +258 -0
  175. data/lib/indexea_client/models/payment_invoice.rb +283 -0
  176. data/lib/indexea_client/models/payment_order.rb +412 -0
  177. data/lib/indexea_client/models/payment_record.rb +261 -0
  178. data/lib/indexea_client/models/payment_service.rb +258 -0
  179. data/lib/indexea_client/models/query_action_bean.rb +391 -0
  180. data/lib/indexea_client/models/query_bean.rb +348 -0
  181. data/lib/indexea_client/models/query_form.rb +285 -0
  182. data/lib/indexea_client/models/query_node.rb +234 -0
  183. data/lib/indexea_client/models/query_sort_field.rb +264 -0
  184. data/lib/indexea_client/models/query_variable_bean.rb +335 -0
  185. data/lib/indexea_client/models/recommend_bean.rb +318 -0
  186. data/lib/indexea_client/models/record_filter.rb +242 -0
  187. data/lib/indexea_client/models/search_estimate_result.rb +242 -0
  188. data/lib/indexea_client/models/search_word.rb +218 -0
  189. data/lib/indexea_client/models/stat_index_bean.rb +270 -0
  190. data/lib/indexea_client/models/synonyms_bean.rb +274 -0
  191. data/lib/indexea_client/models/token_bean.rb +252 -0
  192. data/lib/indexea_client/models/trigger_bean.rb +263 -0
  193. data/lib/indexea_client/models/trigger_log_bean.rb +279 -0
  194. data/lib/indexea_client/models/value_of_field.rb +217 -0
  195. data/lib/indexea_client/models/widget_bean.rb +387 -0
  196. data/lib/indexea_client/models/widget_form.rb +328 -0
  197. data/lib/indexea_client/models/widget_logo.rb +206 -0
  198. data/lib/indexea_client/models/widget_logo_body.rb +206 -0
  199. data/lib/indexea_client/models/widget_status_form.rb +223 -0
  200. data/lib/indexea_client/version.rb +14 -0
  201. data/lib/indexea_client.rb +133 -0
  202. data/spec/api/account_api_spec.rb +200 -0
  203. data/spec/api/apps_api_spec.rb +492 -0
  204. data/spec/api/fields_api_spec.rb +86 -0
  205. data/spec/api/global_api_spec.rb +98 -0
  206. data/spec/api/indices_api_spec.rb +434 -0
  207. data/spec/api/message_api_spec.rb +96 -0
  208. data/spec/api/payment_api_spec.rb +227 -0
  209. data/spec/api/queries_api_spec.rb +482 -0
  210. data/spec/api/recommend_api_spec.rb +125 -0
  211. data/spec/api/records_api_spec.rb +107 -0
  212. data/spec/api/search_api_spec.rb +220 -0
  213. data/spec/api/stats_api_spec.rb +99 -0
  214. data/spec/api/widgets_api_spec.rb +174 -0
  215. data/spec/api_client_spec.rb +225 -0
  216. data/spec/base_object_spec.rb +109 -0
  217. data/spec/configuration_spec.rb +41 -0
  218. data/spec/models/account_bean_spec.rb +160 -0
  219. data/spec/models/account_passwd_body_spec.rb +46 -0
  220. data/spec/models/account_portrait_body_spec.rb +40 -0
  221. data/spec/models/account_profile_body_spec.rb +46 -0
  222. data/spec/models/account_resetpwd_body_spec.rb +52 -0
  223. data/spec/models/account_signin_body_spec.rb +52 -0
  224. data/spec/models/account_signup_body_spec.rb +58 -0
  225. data/spec/models/accounts_feedback_body_spec.rb +50 -0
  226. data/spec/models/accounts_message_body_spec.rb +46 -0
  227. data/spec/models/analyze_object_spec.rb +46 -0
  228. data/spec/models/analyze_token_spec.rb +64 -0
  229. data/spec/models/app_bean_spec.rb +136 -0
  230. data/spec/models/app_company_body_spec.rb +130 -0
  231. data/spec/models/app_index_body_spec.rb +40 -0
  232. data/spec/models/app_log_account_spec.rb +52 -0
  233. data/spec/models/app_log_bean_spec.rb +112 -0
  234. data/spec/models/app_logs_bean_spec.rb +52 -0
  235. data/spec/models/app_mentor_bean_spec.rb +82 -0
  236. data/spec/models/app_oauth_body_1_spec.rb +40 -0
  237. data/spec/models/app_oauth_body_spec.rb +40 -0
  238. data/spec/models/app_oauthresetsecret_body_spec.rb +40 -0
  239. data/spec/models/app_tokens_body_1_spec.rb +40 -0
  240. data/spec/models/app_tokens_body_spec.rb +40 -0
  241. data/spec/models/app_widget_body_spec.rb +40 -0
  242. data/spec/models/apps_app_body_spec.rb +46 -0
  243. data/spec/models/apps_body_spec.rb +46 -0
  244. data/spec/models/auto_complete_item_spec.rb +52 -0
  245. data/spec/models/blacklist_bean_spec.rb +70 -0
  246. data/spec/models/bulletin_spec.rb +92 -0
  247. data/spec/models/company_bean_spec.rb +142 -0
  248. data/spec/models/contact_form_spec.rb +64 -0
  249. data/spec/models/crawler_log_spec.rb +82 -0
  250. data/spec/models/crawler_logs_spec.rb +46 -0
  251. data/spec/models/crawler_task_spec.rb +94 -0
  252. data/spec/models/global_option_form_spec.rb +46 -0
  253. data/spec/models/index_bean_spec.rb +154 -0
  254. data/spec/models/index_field_bean_spec.rb +46 -0
  255. data/spec/models/index_form_spec.rb +88 -0
  256. data/spec/models/index_rebuild_form_spec.rb +70 -0
  257. data/spec/models/index_settings_body_spec.rb +40 -0
  258. data/spec/models/index_settings_spec.rb +58 -0
  259. data/spec/models/index_stat_bean_spec.rb +82 -0
  260. data/spec/models/index_synonymsflush_body_spec.rb +40 -0
  261. data/spec/models/index_task_spec.rb +76 -0
  262. data/spec/models/index_template_spec.rb +100 -0
  263. data/spec/models/index_templates_spec.rb +46 -0
  264. data/spec/models/index_upload_body_spec.rb +40 -0
  265. data/spec/models/intelligent_mapping_spec.rb +46 -0
  266. data/spec/models/keyword_binding_bean_spec.rb +82 -0
  267. data/spec/models/mentor_form_spec.rb +46 -0
  268. data/spec/models/message_spec.rb +106 -0
  269. data/spec/models/messages_spec.rb +46 -0
  270. data/spec/models/oauth_app_bean_spec.rb +118 -0
  271. data/spec/models/openid_bean_spec.rb +58 -0
  272. data/spec/models/option_form_spec.rb +62 -0
  273. data/spec/models/orders_ident_body_spec.rb +40 -0
  274. data/spec/models/pay_result_spec.rb +56 -0
  275. data/spec/models/payment_invoice_spec.rb +88 -0
  276. data/spec/models/payment_order_spec.rb +152 -0
  277. data/spec/models/payment_record_spec.rb +76 -0
  278. data/spec/models/payment_service_spec.rb +70 -0
  279. data/spec/models/query_action_bean_spec.rb +160 -0
  280. data/spec/models/query_bean_spec.rb +130 -0
  281. data/spec/models/query_form_spec.rb +88 -0
  282. data/spec/models/query_node_spec.rb +58 -0
  283. data/spec/models/query_sort_field_spec.rb +56 -0
  284. data/spec/models/query_variable_bean_spec.rb +104 -0
  285. data/spec/models/recommend_bean_spec.rb +106 -0
  286. data/spec/models/record_filter_spec.rb +58 -0
  287. data/spec/models/search_estimate_result_spec.rb +64 -0
  288. data/spec/models/search_word_spec.rb +46 -0
  289. data/spec/models/stat_index_bean_spec.rb +82 -0
  290. data/spec/models/synonyms_bean_spec.rb +82 -0
  291. data/spec/models/token_bean_spec.rb +70 -0
  292. data/spec/models/trigger_bean_spec.rb +76 -0
  293. data/spec/models/trigger_log_bean_spec.rb +88 -0
  294. data/spec/models/value_of_field_spec.rb +46 -0
  295. data/spec/models/widget_bean_spec.rb +132 -0
  296. data/spec/models/widget_form_spec.rb +84 -0
  297. data/spec/models/widget_logo_body_spec.rb +40 -0
  298. data/spec/models/widget_logo_spec.rb +40 -0
  299. data/spec/models/widget_status_form_spec.rb +46 -0
  300. data/spec/spec_helper.rb +110 -0
  301. metadata +501 -0
@@ -0,0 +1,573 @@
1
+ # IndexeaClient::WidgetsApi
2
+
3
+ All URIs are relative to *https://api.indexea.com/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**widget_copy**](WidgetsApi.md#widget_copy) | **POST** /widget/{app}/copy | 复制指定组件并创建新组件
8
+ [**widget_copy_to_widget**](WidgetsApi.md#widget_copy_to_widget) | **PUT** /widget/{app}/copy | 复制组件到已有组件
9
+ [**widget_create**](WidgetsApi.md#widget_create) | **POST** /widgets/{app} | 创建组件
10
+ [**widget_delete**](WidgetsApi.md#widget_delete) | **DELETE** /widgets/{app}/{widget} | 删除组件
11
+ [**widget_detail**](WidgetsApi.md#widget_detail) | **GET** /widget/{ident} | 获取UI组件的所有相关信息
12
+ [**widget_download**](WidgetsApi.md#widget_download) | **GET** /widgets/{app}/{widget}/download | 下载组件应用源码
13
+ [**widget_get**](WidgetsApi.md#widget_get) | **GET** /widgets/{app}/{widget} | 获取组件的详情
14
+ [**widget_list**](WidgetsApi.md#widget_list) | **GET** /widgets/{app} | 获取应用的组件列表
15
+ [**widget_logo**](WidgetsApi.md#widget_logo) | **POST** /widgets/{app}/{widget}/logo | 设置组件 Logo
16
+ [**widget_update**](WidgetsApi.md#widget_update) | **PUT** /widgets/{app}/{widget} | 修改组件
17
+ [**widget_update_settings**](WidgetsApi.md#widget_update_settings) | **PATCH** /widgets/{app}/{widget} | 修改组件设置参数
18
+
19
+ # **widget_copy**
20
+ > WidgetBean widget_copy(app, widget)
21
+
22
+ 复制指定组件并创建新组件
23
+
24
+ ### Example
25
+ ```ruby
26
+ # load the gem
27
+ require 'indexea_client'
28
+ # setup authorization
29
+ IndexeaClient.configure do |config|
30
+ end
31
+
32
+ api_instance = IndexeaClient::WidgetsApi.new
33
+ app = 'app_example' # String | 应用标识
34
+ widget = 56 # Integer | 源组件编号
35
+
36
+
37
+ begin
38
+ #复制指定组件并创建新组件
39
+ result = api_instance.widget_copy(app, widget)
40
+ p result
41
+ rescue IndexeaClient::ApiError => e
42
+ puts "Exception when calling WidgetsApi->widget_copy: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **app** | **String**| 应用标识 |
51
+ **widget** | **Integer**| 源组件编号 |
52
+
53
+ ### Return type
54
+
55
+ [**WidgetBean**](WidgetBean.md)
56
+
57
+ ### Authorization
58
+
59
+ [TokenAuth](../README.md#TokenAuth)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: Not defined
64
+ - **Accept**: application/json
65
+
66
+
67
+
68
+ # **widget_copy_to_widget**
69
+ > BOOLEAN widget_copy_to_widget(app, widget, to)
70
+
71
+ 复制组件到已有组件
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'indexea_client'
77
+ # setup authorization
78
+ IndexeaClient.configure do |config|
79
+ end
80
+
81
+ api_instance = IndexeaClient::WidgetsApi.new
82
+ app = 'app_example' # String | 应用标识
83
+ widget = 56 # Integer | 源组件编号
84
+ to = 56 # Integer | 目标组件编号
85
+
86
+
87
+ begin
88
+ #复制组件到已有组件
89
+ result = api_instance.widget_copy_to_widget(app, widget, to)
90
+ p result
91
+ rescue IndexeaClient::ApiError => e
92
+ puts "Exception when calling WidgetsApi->widget_copy_to_widget: #{e}"
93
+ end
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+ Name | Type | Description | Notes
99
+ ------------- | ------------- | ------------- | -------------
100
+ **app** | **String**| 应用标识 |
101
+ **widget** | **Integer**| 源组件编号 |
102
+ **to** | **Integer**| 目标组件编号 |
103
+
104
+ ### Return type
105
+
106
+ **BOOLEAN**
107
+
108
+ ### Authorization
109
+
110
+ [TokenAuth](../README.md#TokenAuth)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: Not defined
115
+ - **Accept**: application/json
116
+
117
+
118
+
119
+ # **widget_create**
120
+ > WidgetBean widget_create(bodyapp)
121
+
122
+ 创建组件
123
+
124
+ ### Example
125
+ ```ruby
126
+ # load the gem
127
+ require 'indexea_client'
128
+ # setup authorization
129
+ IndexeaClient.configure do |config|
130
+ end
131
+
132
+ api_instance = IndexeaClient::WidgetsApi.new
133
+ body = IndexeaClient::WidgetForm.new # WidgetForm |
134
+ app = 'app_example' # String | 应用标识
135
+
136
+
137
+ begin
138
+ #创建组件
139
+ result = api_instance.widget_create(bodyapp)
140
+ p result
141
+ rescue IndexeaClient::ApiError => e
142
+ puts "Exception when calling WidgetsApi->widget_create: #{e}"
143
+ end
144
+ ```
145
+
146
+ ### Parameters
147
+
148
+ Name | Type | Description | Notes
149
+ ------------- | ------------- | ------------- | -------------
150
+ **body** | [**WidgetForm**](WidgetForm.md)| |
151
+ **app** | **String**| 应用标识 |
152
+
153
+ ### Return type
154
+
155
+ [**WidgetBean**](WidgetBean.md)
156
+
157
+ ### Authorization
158
+
159
+ [TokenAuth](../README.md#TokenAuth)
160
+
161
+ ### HTTP request headers
162
+
163
+ - **Content-Type**: application/json
164
+ - **Accept**: application/json
165
+
166
+
167
+
168
+ # **widget_delete**
169
+ > BOOLEAN widget_delete(appwidget, opts)
170
+
171
+ 删除组件
172
+
173
+ ### Example
174
+ ```ruby
175
+ # load the gem
176
+ require 'indexea_client'
177
+ # setup authorization
178
+ IndexeaClient.configure do |config|
179
+ end
180
+
181
+ api_instance = IndexeaClient::WidgetsApi.new
182
+ app = 'app_example' # String | 应用标识
183
+ widget = 56 # Integer | 组件编号
184
+ opts = {
185
+ password: 'password_example' # String |
186
+ }
187
+
188
+ begin
189
+ #删除组件
190
+ result = api_instance.widget_delete(appwidget, opts)
191
+ p result
192
+ rescue IndexeaClient::ApiError => e
193
+ puts "Exception when calling WidgetsApi->widget_delete: #{e}"
194
+ end
195
+ ```
196
+
197
+ ### Parameters
198
+
199
+ Name | Type | Description | Notes
200
+ ------------- | ------------- | ------------- | -------------
201
+ **app** | **String**| 应用标识 |
202
+ **widget** | **Integer**| 组件编号 |
203
+ **password** | [**String**](.md)| | [optional]
204
+
205
+ ### Return type
206
+
207
+ **BOOLEAN**
208
+
209
+ ### Authorization
210
+
211
+ [TokenAuth](../README.md#TokenAuth)
212
+
213
+ ### HTTP request headers
214
+
215
+ - **Content-Type**: application/x-www-form-urlencoded
216
+ - **Accept**: application/json
217
+
218
+
219
+
220
+ # **widget_detail**
221
+ > WidgetBean widget_detail(ident, opts)
222
+
223
+ 获取UI组件的所有相关信息
224
+
225
+ ### Example
226
+ ```ruby
227
+ # load the gem
228
+ require 'indexea_client'
229
+
230
+ api_instance = IndexeaClient::WidgetsApi.new
231
+ ident = 'ident_example' # String | UI组件的唯一标识
232
+ opts = {
233
+ x_token: 'x_token_example' # String | 如果要使用非发布的组件,需要组件作者授权
234
+ }
235
+
236
+ begin
237
+ #获取UI组件的所有相关信息
238
+ result = api_instance.widget_detail(ident, opts)
239
+ p result
240
+ rescue IndexeaClient::ApiError => e
241
+ puts "Exception when calling WidgetsApi->widget_detail: #{e}"
242
+ end
243
+ ```
244
+
245
+ ### Parameters
246
+
247
+ Name | Type | Description | Notes
248
+ ------------- | ------------- | ------------- | -------------
249
+ **ident** | **String**| UI组件的唯一标识 |
250
+ **x_token** | **String**| 如果要使用非发布的组件,需要组件作者授权 | [optional]
251
+
252
+ ### Return type
253
+
254
+ [**WidgetBean**](WidgetBean.md)
255
+
256
+ ### Authorization
257
+
258
+ No authorization required
259
+
260
+ ### HTTP request headers
261
+
262
+ - **Content-Type**: Not defined
263
+ - **Accept**: application/json
264
+
265
+
266
+
267
+ # **widget_download**
268
+ > String widget_download(app, widget, framework)
269
+
270
+ 下载组件应用源码
271
+
272
+ ### Example
273
+ ```ruby
274
+ # load the gem
275
+ require 'indexea_client'
276
+ # setup authorization
277
+ IndexeaClient.configure do |config|
278
+ end
279
+
280
+ api_instance = IndexeaClient::WidgetsApi.new
281
+ app = 'app_example' # String | 应用标识
282
+ widget = 56 # Integer | 组件编号
283
+ framework = 'framework_example' # String | 指定的技术框架
284
+
285
+
286
+ begin
287
+ #下载组件应用源码
288
+ result = api_instance.widget_download(app, widget, framework)
289
+ p result
290
+ rescue IndexeaClient::ApiError => e
291
+ puts "Exception when calling WidgetsApi->widget_download: #{e}"
292
+ end
293
+ ```
294
+
295
+ ### Parameters
296
+
297
+ Name | Type | Description | Notes
298
+ ------------- | ------------- | ------------- | -------------
299
+ **app** | **String**| 应用标识 |
300
+ **widget** | **Integer**| 组件编号 |
301
+ **framework** | **String**| 指定的技术框架 |
302
+
303
+ ### Return type
304
+
305
+ **String**
306
+
307
+ ### Authorization
308
+
309
+ [TokenAuth](../README.md#TokenAuth)
310
+
311
+ ### HTTP request headers
312
+
313
+ - **Content-Type**: Not defined
314
+ - **Accept**: default
315
+
316
+
317
+
318
+ # **widget_get**
319
+ > WidgetBean widget_get(app, widget)
320
+
321
+ 获取组件的详情
322
+
323
+ ### Example
324
+ ```ruby
325
+ # load the gem
326
+ require 'indexea_client'
327
+ # setup authorization
328
+ IndexeaClient.configure do |config|
329
+ end
330
+
331
+ api_instance = IndexeaClient::WidgetsApi.new
332
+ app = 'app_example' # String | 应用标识
333
+ widget = 56 # Integer | 组件编号
334
+
335
+
336
+ begin
337
+ #获取组件的详情
338
+ result = api_instance.widget_get(app, widget)
339
+ p result
340
+ rescue IndexeaClient::ApiError => e
341
+ puts "Exception when calling WidgetsApi->widget_get: #{e}"
342
+ end
343
+ ```
344
+
345
+ ### Parameters
346
+
347
+ Name | Type | Description | Notes
348
+ ------------- | ------------- | ------------- | -------------
349
+ **app** | **String**| 应用标识 |
350
+ **widget** | **Integer**| 组件编号 |
351
+
352
+ ### Return type
353
+
354
+ [**WidgetBean**](WidgetBean.md)
355
+
356
+ ### Authorization
357
+
358
+ [TokenAuth](../README.md#TokenAuth)
359
+
360
+ ### HTTP request headers
361
+
362
+ - **Content-Type**: Not defined
363
+ - **Accept**: application/json
364
+
365
+
366
+
367
+ # **widget_list**
368
+ > Array<WidgetBean> widget_list(app)
369
+
370
+ 获取应用的组件列表
371
+
372
+ ### Example
373
+ ```ruby
374
+ # load the gem
375
+ require 'indexea_client'
376
+ # setup authorization
377
+ IndexeaClient.configure do |config|
378
+ end
379
+
380
+ api_instance = IndexeaClient::WidgetsApi.new
381
+ app = 'app_example' # String | 应用标识
382
+
383
+
384
+ begin
385
+ #获取应用的组件列表
386
+ result = api_instance.widget_list(app)
387
+ p result
388
+ rescue IndexeaClient::ApiError => e
389
+ puts "Exception when calling WidgetsApi->widget_list: #{e}"
390
+ end
391
+ ```
392
+
393
+ ### Parameters
394
+
395
+ Name | Type | Description | Notes
396
+ ------------- | ------------- | ------------- | -------------
397
+ **app** | **String**| 应用标识 |
398
+
399
+ ### Return type
400
+
401
+ [**Array<WidgetBean>**](WidgetBean.md)
402
+
403
+ ### Authorization
404
+
405
+ [TokenAuth](../README.md#TokenAuth)
406
+
407
+ ### HTTP request headers
408
+
409
+ - **Content-Type**: Not defined
410
+ - **Accept**: application/json
411
+
412
+
413
+
414
+ # **widget_logo**
415
+ > WidgetLogo widget_logo(appwidget, opts)
416
+
417
+ 设置组件 Logo
418
+
419
+ ### Example
420
+ ```ruby
421
+ # load the gem
422
+ require 'indexea_client'
423
+ # setup authorization
424
+ IndexeaClient.configure do |config|
425
+ end
426
+
427
+ api_instance = IndexeaClient::WidgetsApi.new
428
+ app = 'app_example' # String | 应用标识
429
+ widget = 56 # Integer | 组件编号
430
+ opts = {
431
+ logo: 'logo_example' # String |
432
+ }
433
+
434
+ begin
435
+ #设置组件 Logo
436
+ result = api_instance.widget_logo(appwidget, opts)
437
+ p result
438
+ rescue IndexeaClient::ApiError => e
439
+ puts "Exception when calling WidgetsApi->widget_logo: #{e}"
440
+ end
441
+ ```
442
+
443
+ ### Parameters
444
+
445
+ Name | Type | Description | Notes
446
+ ------------- | ------------- | ------------- | -------------
447
+ **app** | **String**| 应用标识 |
448
+ **widget** | **Integer**| 组件编号 |
449
+ **logo** | **String**| | [optional]
450
+
451
+ ### Return type
452
+
453
+ [**WidgetLogo**](WidgetLogo.md)
454
+
455
+ ### Authorization
456
+
457
+ [TokenAuth](../README.md#TokenAuth)
458
+
459
+ ### HTTP request headers
460
+
461
+ - **Content-Type**: multipart/form-data
462
+ - **Accept**: application/json
463
+
464
+
465
+
466
+ # **widget_update**
467
+ > WidgetBean widget_update(bodyappwidget)
468
+
469
+ 修改组件
470
+
471
+ ### Example
472
+ ```ruby
473
+ # load the gem
474
+ require 'indexea_client'
475
+ # setup authorization
476
+ IndexeaClient.configure do |config|
477
+ end
478
+
479
+ api_instance = IndexeaClient::WidgetsApi.new
480
+ body = IndexeaClient::WidgetForm.new # WidgetForm |
481
+ app = 'app_example' # String | 应用标识
482
+ widget = 56 # Integer | 组件编号
483
+
484
+
485
+ begin
486
+ #修改组件
487
+ result = api_instance.widget_update(bodyappwidget)
488
+ p result
489
+ rescue IndexeaClient::ApiError => e
490
+ puts "Exception when calling WidgetsApi->widget_update: #{e}"
491
+ end
492
+ ```
493
+
494
+ ### Parameters
495
+
496
+ Name | Type | Description | Notes
497
+ ------------- | ------------- | ------------- | -------------
498
+ **body** | [**WidgetForm**](WidgetForm.md)| |
499
+ **app** | **String**| 应用标识 |
500
+ **widget** | **Integer**| 组件编号 |
501
+
502
+ ### Return type
503
+
504
+ [**WidgetBean**](WidgetBean.md)
505
+
506
+ ### Authorization
507
+
508
+ [TokenAuth](../README.md#TokenAuth)
509
+
510
+ ### HTTP request headers
511
+
512
+ - **Content-Type**: application/json
513
+ - **Accept**: application/json
514
+
515
+
516
+
517
+ # **widget_update_settings**
518
+ > BOOLEAN widget_update_settings(keytypevaluevcodeappwidget)
519
+
520
+ 修改组件设置参数
521
+
522
+ ### Example
523
+ ```ruby
524
+ # load the gem
525
+ require 'indexea_client'
526
+ # setup authorization
527
+ IndexeaClient.configure do |config|
528
+ end
529
+
530
+ api_instance = IndexeaClient::WidgetsApi.new
531
+ key = 'key_example' # String |
532
+ type = 'type_example' # String |
533
+ value = 'value_example' # String |
534
+ vcode = 'vcode_example' # String |
535
+ app = 'app_example' # String | 应用标识
536
+ widget = 56 # Integer | 组件编号
537
+
538
+
539
+ begin
540
+ #修改组件设置参数
541
+ result = api_instance.widget_update_settings(keytypevaluevcodeappwidget)
542
+ p result
543
+ rescue IndexeaClient::ApiError => e
544
+ puts "Exception when calling WidgetsApi->widget_update_settings: #{e}"
545
+ end
546
+ ```
547
+
548
+ ### Parameters
549
+
550
+ Name | Type | Description | Notes
551
+ ------------- | ------------- | ------------- | -------------
552
+ **key** | **String**| |
553
+ **type** | **String**| |
554
+ **value** | **String**| |
555
+ **vcode** | **String**| |
556
+ **app** | **String**| 应用标识 |
557
+ **widget** | **Integer**| 组件编号 |
558
+
559
+ ### Return type
560
+
561
+ **BOOLEAN**
562
+
563
+ ### Authorization
564
+
565
+ [TokenAuth](../README.md#TokenAuth)
566
+
567
+ ### HTTP request headers
568
+
569
+ - **Content-Type**: application/x-www-form-urlencoded
570
+ - **Accept**: application/json
571
+
572
+
573
+
data/git_push.sh ADDED
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,38 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Indexea OpenAPI
5
+
6
+ #OpenAPI of Indexea
7
+
8
+ OpenAPI spec version: 1.0.0
9
+ Contact: indexea.com@gmail.com
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ Swagger Codegen version: 3.0.54
12
+ =end
13
+
14
+ $:.push File.expand_path("../lib", __FILE__)
15
+ require "indexea_client/version"
16
+
17
+ Gem::Specification.new do |s|
18
+ s.name = "indexea_client"
19
+ s.version = IndexeaClient::VERSION
20
+ s.platform = Gem::Platform::RUBY
21
+ s.authors = ["Swagger-Codegen"]
22
+ s.email = ["indexea.com@gmail.com"]
23
+ s.homepage = "https://github.com/swagger-api/swagger-codegen"
24
+ s.summary = "Indexea OpenAPI Ruby Gem"
25
+ s.description = "OpenAPI of Indexea"
26
+ s.license = "Unlicense"
27
+ s.required_ruby_version = ">= 1.9"
28
+
29
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
30
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
31
+
32
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
+
34
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
+ s.test_files = `find spec/*`.split("\n")
36
+ s.executables = []
37
+ s.require_paths = ["lib"]
38
+ end