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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +3413 -0
- data/Rakefile +8 -0
- data/docs/AccountApi.md +685 -0
- data/docs/AccountBean.md +27 -0
- data/docs/AccountPasswdBody.md +8 -0
- data/docs/AccountPortraitBody.md +7 -0
- data/docs/AccountProfileBody.md +8 -0
- data/docs/AccountResetpwdBody.md +9 -0
- data/docs/AccountSigninBody.md +9 -0
- data/docs/AccountSignupBody.md +10 -0
- data/docs/AccountsFeedbackBody.md +8 -0
- data/docs/AccountsMessageBody.md +8 -0
- data/docs/AnalyzeObject.md +8 -0
- data/docs/AnalyzeToken.md +11 -0
- data/docs/AppBean.md +23 -0
- data/docs/AppCompanyBody.md +22 -0
- data/docs/AppIndexBody.md +7 -0
- data/docs/AppLogAccount.md +9 -0
- data/docs/AppLogBean.md +19 -0
- data/docs/AppLogsBean.md +9 -0
- data/docs/AppMentorBean.md +14 -0
- data/docs/AppOauthBody.md +7 -0
- data/docs/AppOauthBody1.md +7 -0
- data/docs/AppOauthresetsecretBody.md +7 -0
- data/docs/AppTokensBody.md +7 -0
- data/docs/AppTokensBody1.md +7 -0
- data/docs/AppWidgetBody.md +7 -0
- data/docs/AppsApi.md +1843 -0
- data/docs/AppsAppBody.md +8 -0
- data/docs/AppsBody.md +8 -0
- data/docs/AutoCompleteItem.md +9 -0
- data/docs/BlacklistBean.md +12 -0
- data/docs/Bulletin.md +15 -0
- data/docs/CompanyBean.md +24 -0
- data/docs/ContactForm.md +11 -0
- data/docs/CrawlerLog.md +14 -0
- data/docs/CrawlerLogs.md +8 -0
- data/docs/CrawlerTask.md +16 -0
- data/docs/FieldsApi.md +215 -0
- data/docs/GlobalApi.md +258 -0
- data/docs/GlobalOptionForm.md +8 -0
- data/docs/IndexBean.md +26 -0
- data/docs/IndexFieldBean.md +8 -0
- data/docs/IndexForm.md +15 -0
- data/docs/IndexRebuildForm.md +12 -0
- data/docs/IndexSettings.md +10 -0
- data/docs/IndexSettingsBody.md +7 -0
- data/docs/IndexStatBean.md +14 -0
- data/docs/IndexSynonymsflushBody.md +7 -0
- data/docs/IndexTask.md +13 -0
- data/docs/IndexTemplate.md +17 -0
- data/docs/IndexTemplates.md +8 -0
- data/docs/IndexUploadBody.md +7 -0
- data/docs/IndicesApi.md +1620 -0
- data/docs/IntelligentMapping.md +8 -0
- data/docs/KeywordBindingBean.md +14 -0
- data/docs/MentorForm.md +8 -0
- data/docs/Message.md +18 -0
- data/docs/MessageApi.md +262 -0
- data/docs/Messages.md +8 -0
- data/docs/OauthAppBean.md +20 -0
- data/docs/OpenidBean.md +10 -0
- data/docs/OptionForm.md +10 -0
- data/docs/OrdersIdentBody.md +7 -0
- data/docs/PayResult.md +9 -0
- data/docs/PaymentApi.md +788 -0
- data/docs/PaymentInvoice.md +15 -0
- data/docs/PaymentOrder.md +25 -0
- data/docs/PaymentRecord.md +13 -0
- data/docs/PaymentService.md +12 -0
- data/docs/QueriesApi.md +1821 -0
- data/docs/QueryActionBean.md +27 -0
- data/docs/QueryBean.md +22 -0
- data/docs/QueryForm.md +15 -0
- data/docs/QueryNode.md +10 -0
- data/docs/QuerySortField.md +9 -0
- data/docs/QueryVariableBean.md +17 -0
- data/docs/RecommendApi.md +365 -0
- data/docs/RecommendBean.md +18 -0
- data/docs/RecordFilter.md +10 -0
- data/docs/RecordsApi.md +286 -0
- data/docs/SearchApi.md +646 -0
- data/docs/SearchEstimateResult.md +11 -0
- data/docs/SearchWord.md +8 -0
- data/docs/StatIndexBean.md +14 -0
- data/docs/StatsApi.md +245 -0
- data/docs/SynonymsBean.md +14 -0
- data/docs/TokenBean.md +12 -0
- data/docs/TriggerBean.md +13 -0
- data/docs/TriggerLogBean.md +15 -0
- data/docs/ValueOfField.md +8 -0
- data/docs/WidgetBean.md +21 -0
- data/docs/WidgetForm.md +13 -0
- data/docs/WidgetLogo.md +7 -0
- data/docs/WidgetLogoBody.md +7 -0
- data/docs/WidgetStatusForm.md +8 -0
- data/docs/WidgetsApi.md +573 -0
- data/git_push.sh +55 -0
- data/indexea_client.gemspec +38 -0
- data/lib/indexea_client/api/account_api.rb +846 -0
- data/lib/indexea_client/api/apps_api.rb +2271 -0
- data/lib/indexea_client/api/fields_api.rb +289 -0
- data/lib/indexea_client/api/global_api.rb +326 -0
- data/lib/indexea_client/api/indices_api.rb +2076 -0
- data/lib/indexea_client/api/message_api.rb +337 -0
- data/lib/indexea_client/api/payment_api.rb +975 -0
- data/lib/indexea_client/api/queries_api.rb +2320 -0
- data/lib/indexea_client/api/recommend_api.rb +461 -0
- data/lib/indexea_client/api/records_api.rb +375 -0
- data/lib/indexea_client/api/search_api.rb +892 -0
- data/lib/indexea_client/api/stats_api.rb +312 -0
- data/lib/indexea_client/api/widgets_api.rb +741 -0
- data/lib/indexea_client/api_client.rb +391 -0
- data/lib/indexea_client/api_error.rb +57 -0
- data/lib/indexea_client/configuration.rb +205 -0
- data/lib/indexea_client/models/account_bean.rb +396 -0
- data/lib/indexea_client/models/account_passwd_body.rb +227 -0
- data/lib/indexea_client/models/account_portrait_body.rb +206 -0
- data/lib/indexea_client/models/account_profile_body.rb +228 -0
- data/lib/indexea_client/models/account_resetpwd_body.rb +240 -0
- data/lib/indexea_client/models/account_signin_body.rb +237 -0
- data/lib/indexea_client/models/account_signup_body.rb +254 -0
- data/lib/indexea_client/models/accounts_feedback_body.rb +262 -0
- data/lib/indexea_client/models/accounts_message_body.rb +226 -0
- data/lib/indexea_client/models/analyze_object.rb +216 -0
- data/lib/indexea_client/models/analyze_token.rb +243 -0
- data/lib/indexea_client/models/app_bean.rb +360 -0
- data/lib/indexea_client/models/app_company_body.rb +357 -0
- data/lib/indexea_client/models/app_index_body.rb +212 -0
- data/lib/indexea_client/models/app_log_account.rb +224 -0
- data/lib/indexea_client/models/app_log_bean.rb +318 -0
- data/lib/indexea_client/models/app_logs_bean.rb +229 -0
- data/lib/indexea_client/models/app_mentor_bean.rb +277 -0
- data/lib/indexea_client/models/app_oauth_body.rb +206 -0
- data/lib/indexea_client/models/app_oauth_body_1.rb +212 -0
- data/lib/indexea_client/models/app_oauthresetsecret_body.rb +212 -0
- data/lib/indexea_client/models/app_tokens_body.rb +212 -0
- data/lib/indexea_client/models/app_tokens_body_1.rb +212 -0
- data/lib/indexea_client/models/app_widget_body.rb +212 -0
- data/lib/indexea_client/models/apps_app_body.rb +216 -0
- data/lib/indexea_client/models/apps_body.rb +221 -0
- data/lib/indexea_client/models/auto_complete_item.rb +224 -0
- data/lib/indexea_client/models/blacklist_bean.rb +258 -0
- data/lib/indexea_client/models/bulletin.rb +312 -0
- data/lib/indexea_client/models/company_bean.rb +378 -0
- data/lib/indexea_client/models/contact_form.rb +258 -0
- data/lib/indexea_client/models/crawler_log.rb +270 -0
- data/lib/indexea_client/models/crawler_logs.rb +217 -0
- data/lib/indexea_client/models/crawler_task.rb +288 -0
- data/lib/indexea_client/models/global_option_form.rb +218 -0
- data/lib/indexea_client/models/index_bean.rb +390 -0
- data/lib/indexea_client/models/index_field_bean.rb +217 -0
- data/lib/indexea_client/models/index_form.rb +283 -0
- data/lib/indexea_client/models/index_rebuild_form.rb +254 -0
- data/lib/indexea_client/models/index_settings.rb +234 -0
- data/lib/indexea_client/models/index_settings_body.rb +212 -0
- data/lib/indexea_client/models/index_stat_bean.rb +270 -0
- data/lib/indexea_client/models/index_synonymsflush_body.rb +212 -0
- data/lib/indexea_client/models/index_task.rb +261 -0
- data/lib/indexea_client/models/index_template.rb +299 -0
- data/lib/indexea_client/models/index_templates.rb +219 -0
- data/lib/indexea_client/models/index_upload_body.rb +208 -0
- data/lib/indexea_client/models/intelligent_mapping.rb +217 -0
- data/lib/indexea_client/models/keyword_binding_bean.rb +274 -0
- data/lib/indexea_client/models/mentor_form.rb +220 -0
- data/lib/indexea_client/models/message.rb +306 -0
- data/lib/indexea_client/models/messages.rb +217 -0
- data/lib/indexea_client/models/oauth_app_bean.rb +329 -0
- data/lib/indexea_client/models/openid_bean.rb +238 -0
- data/lib/indexea_client/models/option_form.rb +287 -0
- data/lib/indexea_client/models/orders_ident_body.rb +206 -0
- data/lib/indexea_client/models/pay_result.rb +258 -0
- data/lib/indexea_client/models/payment_invoice.rb +283 -0
- data/lib/indexea_client/models/payment_order.rb +412 -0
- data/lib/indexea_client/models/payment_record.rb +261 -0
- data/lib/indexea_client/models/payment_service.rb +258 -0
- data/lib/indexea_client/models/query_action_bean.rb +391 -0
- data/lib/indexea_client/models/query_bean.rb +348 -0
- data/lib/indexea_client/models/query_form.rb +285 -0
- data/lib/indexea_client/models/query_node.rb +234 -0
- data/lib/indexea_client/models/query_sort_field.rb +264 -0
- data/lib/indexea_client/models/query_variable_bean.rb +335 -0
- data/lib/indexea_client/models/recommend_bean.rb +318 -0
- data/lib/indexea_client/models/record_filter.rb +242 -0
- data/lib/indexea_client/models/search_estimate_result.rb +242 -0
- data/lib/indexea_client/models/search_word.rb +218 -0
- data/lib/indexea_client/models/stat_index_bean.rb +270 -0
- data/lib/indexea_client/models/synonyms_bean.rb +274 -0
- data/lib/indexea_client/models/token_bean.rb +252 -0
- data/lib/indexea_client/models/trigger_bean.rb +263 -0
- data/lib/indexea_client/models/trigger_log_bean.rb +279 -0
- data/lib/indexea_client/models/value_of_field.rb +217 -0
- data/lib/indexea_client/models/widget_bean.rb +387 -0
- data/lib/indexea_client/models/widget_form.rb +328 -0
- data/lib/indexea_client/models/widget_logo.rb +206 -0
- data/lib/indexea_client/models/widget_logo_body.rb +206 -0
- data/lib/indexea_client/models/widget_status_form.rb +223 -0
- data/lib/indexea_client/version.rb +14 -0
- data/lib/indexea_client.rb +133 -0
- data/spec/api/account_api_spec.rb +200 -0
- data/spec/api/apps_api_spec.rb +492 -0
- data/spec/api/fields_api_spec.rb +86 -0
- data/spec/api/global_api_spec.rb +98 -0
- data/spec/api/indices_api_spec.rb +434 -0
- data/spec/api/message_api_spec.rb +96 -0
- data/spec/api/payment_api_spec.rb +227 -0
- data/spec/api/queries_api_spec.rb +482 -0
- data/spec/api/recommend_api_spec.rb +125 -0
- data/spec/api/records_api_spec.rb +107 -0
- data/spec/api/search_api_spec.rb +220 -0
- data/spec/api/stats_api_spec.rb +99 -0
- data/spec/api/widgets_api_spec.rb +174 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/account_bean_spec.rb +160 -0
- data/spec/models/account_passwd_body_spec.rb +46 -0
- data/spec/models/account_portrait_body_spec.rb +40 -0
- data/spec/models/account_profile_body_spec.rb +46 -0
- data/spec/models/account_resetpwd_body_spec.rb +52 -0
- data/spec/models/account_signin_body_spec.rb +52 -0
- data/spec/models/account_signup_body_spec.rb +58 -0
- data/spec/models/accounts_feedback_body_spec.rb +50 -0
- data/spec/models/accounts_message_body_spec.rb +46 -0
- data/spec/models/analyze_object_spec.rb +46 -0
- data/spec/models/analyze_token_spec.rb +64 -0
- data/spec/models/app_bean_spec.rb +136 -0
- data/spec/models/app_company_body_spec.rb +130 -0
- data/spec/models/app_index_body_spec.rb +40 -0
- data/spec/models/app_log_account_spec.rb +52 -0
- data/spec/models/app_log_bean_spec.rb +112 -0
- data/spec/models/app_logs_bean_spec.rb +52 -0
- data/spec/models/app_mentor_bean_spec.rb +82 -0
- data/spec/models/app_oauth_body_1_spec.rb +40 -0
- data/spec/models/app_oauth_body_spec.rb +40 -0
- data/spec/models/app_oauthresetsecret_body_spec.rb +40 -0
- data/spec/models/app_tokens_body_1_spec.rb +40 -0
- data/spec/models/app_tokens_body_spec.rb +40 -0
- data/spec/models/app_widget_body_spec.rb +40 -0
- data/spec/models/apps_app_body_spec.rb +46 -0
- data/spec/models/apps_body_spec.rb +46 -0
- data/spec/models/auto_complete_item_spec.rb +52 -0
- data/spec/models/blacklist_bean_spec.rb +70 -0
- data/spec/models/bulletin_spec.rb +92 -0
- data/spec/models/company_bean_spec.rb +142 -0
- data/spec/models/contact_form_spec.rb +64 -0
- data/spec/models/crawler_log_spec.rb +82 -0
- data/spec/models/crawler_logs_spec.rb +46 -0
- data/spec/models/crawler_task_spec.rb +94 -0
- data/spec/models/global_option_form_spec.rb +46 -0
- data/spec/models/index_bean_spec.rb +154 -0
- data/spec/models/index_field_bean_spec.rb +46 -0
- data/spec/models/index_form_spec.rb +88 -0
- data/spec/models/index_rebuild_form_spec.rb +70 -0
- data/spec/models/index_settings_body_spec.rb +40 -0
- data/spec/models/index_settings_spec.rb +58 -0
- data/spec/models/index_stat_bean_spec.rb +82 -0
- data/spec/models/index_synonymsflush_body_spec.rb +40 -0
- data/spec/models/index_task_spec.rb +76 -0
- data/spec/models/index_template_spec.rb +100 -0
- data/spec/models/index_templates_spec.rb +46 -0
- data/spec/models/index_upload_body_spec.rb +40 -0
- data/spec/models/intelligent_mapping_spec.rb +46 -0
- data/spec/models/keyword_binding_bean_spec.rb +82 -0
- data/spec/models/mentor_form_spec.rb +46 -0
- data/spec/models/message_spec.rb +106 -0
- data/spec/models/messages_spec.rb +46 -0
- data/spec/models/oauth_app_bean_spec.rb +118 -0
- data/spec/models/openid_bean_spec.rb +58 -0
- data/spec/models/option_form_spec.rb +62 -0
- data/spec/models/orders_ident_body_spec.rb +40 -0
- data/spec/models/pay_result_spec.rb +56 -0
- data/spec/models/payment_invoice_spec.rb +88 -0
- data/spec/models/payment_order_spec.rb +152 -0
- data/spec/models/payment_record_spec.rb +76 -0
- data/spec/models/payment_service_spec.rb +70 -0
- data/spec/models/query_action_bean_spec.rb +160 -0
- data/spec/models/query_bean_spec.rb +130 -0
- data/spec/models/query_form_spec.rb +88 -0
- data/spec/models/query_node_spec.rb +58 -0
- data/spec/models/query_sort_field_spec.rb +56 -0
- data/spec/models/query_variable_bean_spec.rb +104 -0
- data/spec/models/recommend_bean_spec.rb +106 -0
- data/spec/models/record_filter_spec.rb +58 -0
- data/spec/models/search_estimate_result_spec.rb +64 -0
- data/spec/models/search_word_spec.rb +46 -0
- data/spec/models/stat_index_bean_spec.rb +82 -0
- data/spec/models/synonyms_bean_spec.rb +82 -0
- data/spec/models/token_bean_spec.rb +70 -0
- data/spec/models/trigger_bean_spec.rb +76 -0
- data/spec/models/trigger_log_bean_spec.rb +88 -0
- data/spec/models/value_of_field_spec.rb +46 -0
- data/spec/models/widget_bean_spec.rb +132 -0
- data/spec/models/widget_form_spec.rb +84 -0
- data/spec/models/widget_logo_body_spec.rb +40 -0
- data/spec/models/widget_logo_spec.rb +40 -0
- data/spec/models/widget_status_form_spec.rb +46 -0
- data/spec/spec_helper.rb +110 -0
- metadata +501 -0
@@ -0,0 +1,434 @@
|
|
1
|
+
=begin
|
2
|
+
#Indexea OpenAPI
|
3
|
+
|
4
|
+
#OpenAPI of Indexea
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
Contact: indexea.com@gmail.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.54
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
|
15
|
+
# Unit tests for IndexeaClient::IndicesApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'IndicesApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::IndicesApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of IndicesApi' do
|
29
|
+
it 'should create an instance of IndicesApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::IndicesApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for index_cleanup
|
35
|
+
# 清空索引记录
|
36
|
+
# @param app 应用标识
|
37
|
+
# @param index 索引编号
|
38
|
+
# @param vcode 验证码
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Object]
|
41
|
+
describe 'index_cleanup test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for index_copy_to
|
48
|
+
# 导出索引数据
|
49
|
+
# @param app 应用标识
|
50
|
+
# @param index 索引编号
|
51
|
+
# @param name 新索引的名称
|
52
|
+
# @param fields 是否复制字段定义
|
53
|
+
# @param queries 是否复制所有查询
|
54
|
+
# @param records 是否复制所有文档
|
55
|
+
# @param [Hash] opts the optional parameters
|
56
|
+
# @return [IndexBean]
|
57
|
+
describe 'index_copy_to test' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# unit tests for index_create
|
64
|
+
# 创建索引
|
65
|
+
# @param body
|
66
|
+
# @param app 应用标识
|
67
|
+
# @param [Hash] opts the optional parameters
|
68
|
+
# @return [IndexBean]
|
69
|
+
describe 'index_create test' do
|
70
|
+
it 'should work' do
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# unit tests for index_create_template
|
76
|
+
# 创建索引模板
|
77
|
+
# @param body
|
78
|
+
# @param [Hash] opts the optional parameters
|
79
|
+
# @return [IndexTemplate]
|
80
|
+
describe 'index_create_template test' do
|
81
|
+
it 'should work' do
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# unit tests for index_delete
|
87
|
+
# 删除索引
|
88
|
+
# @param app 应用标识
|
89
|
+
# @param index 索引编号
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [String] :vcode
|
92
|
+
# @return [BOOLEAN]
|
93
|
+
describe 'index_delete test' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# unit tests for index_delete_crawler_task
|
100
|
+
# 删除索引的数据爬取任务
|
101
|
+
# @param app 应用标识
|
102
|
+
# @param index 索引编号
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [BOOLEAN]
|
105
|
+
describe 'index_delete_crawler_task test' do
|
106
|
+
it 'should work' do
|
107
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# unit tests for index_delete_template
|
112
|
+
# 删除索引模板
|
113
|
+
# @param id
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @return [BOOLEAN]
|
116
|
+
describe 'index_delete_template test' do
|
117
|
+
it 'should work' do
|
118
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# unit tests for index_export
|
123
|
+
# 导出索引数据
|
124
|
+
# @param app 应用标识
|
125
|
+
# @param index 索引编号
|
126
|
+
# @param format 导出数据的格式
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @return [BOOLEAN]
|
129
|
+
describe 'index_export test' do
|
130
|
+
it 'should work' do
|
131
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# unit tests for index_flush
|
136
|
+
# 刷新索引数据,主要用于将内存中的索引数据写入磁盘
|
137
|
+
# @param app 应用标识
|
138
|
+
# @param index 索引编号
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @return [BOOLEAN]
|
141
|
+
describe 'index_flush test' do
|
142
|
+
it 'should work' do
|
143
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# unit tests for index_flush_settings
|
148
|
+
# 写入设置信息到索引
|
149
|
+
# @param type 设置类型
|
150
|
+
# @param app 应用标识
|
151
|
+
# @param index 索引编号
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @option opts [String] :password
|
154
|
+
# @return [Object]
|
155
|
+
describe 'index_flush_settings test' do
|
156
|
+
it 'should work' do
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# unit tests for index_get
|
162
|
+
# 获取单个索引详情
|
163
|
+
# @param app 应用标识
|
164
|
+
# @param index 索引编号
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @return [IndexBean]
|
167
|
+
describe 'index_get test' do
|
168
|
+
it 'should work' do
|
169
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# unit tests for index_get_crawler_logs
|
174
|
+
# 获取索引的爬虫任务的爬取日志
|
175
|
+
# @param app 应用标识
|
176
|
+
# @param index 索引编号
|
177
|
+
# @param from
|
178
|
+
# @param size
|
179
|
+
# @param [Hash] opts the optional parameters
|
180
|
+
# @return [CrawlerLogs]
|
181
|
+
describe 'index_get_crawler_logs test' do
|
182
|
+
it 'should work' do
|
183
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# unit tests for index_get_crawler_task
|
188
|
+
# 获取索引的爬虫任务设定
|
189
|
+
# @param app 应用标识
|
190
|
+
# @param index 索引编号
|
191
|
+
# @param [Hash] opts the optional parameters
|
192
|
+
# @return [CrawlerTask]
|
193
|
+
describe 'index_get_crawler_task test' do
|
194
|
+
it 'should work' do
|
195
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
# unit tests for index_get_filter_settings
|
200
|
+
# 获取索引设置信息
|
201
|
+
# @param app 应用标识
|
202
|
+
# @param index 索引编号
|
203
|
+
# @param type 设置类型
|
204
|
+
# @param [Hash] opts the optional parameters
|
205
|
+
# @return [Array<String>]
|
206
|
+
describe 'index_get_filter_settings test' do
|
207
|
+
it 'should work' do
|
208
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# unit tests for index_get_settings
|
213
|
+
# 获取索引设置信息
|
214
|
+
# @param app 应用标识
|
215
|
+
# @param index 索引编号
|
216
|
+
# @param type 设置类型
|
217
|
+
# @param [Hash] opts the optional parameters
|
218
|
+
# @return [IndexSettings]
|
219
|
+
describe 'index_get_settings test' do
|
220
|
+
it 'should work' do
|
221
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
# unit tests for index_list
|
226
|
+
# 获取应用的索引列表
|
227
|
+
# @param app 应用标识
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @option opts [BOOLEAN] :stat 是否包含索引的统计信息
|
230
|
+
# @return [Array<IndexBean>]
|
231
|
+
describe 'index_list test' do
|
232
|
+
it 'should work' do
|
233
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
# unit tests for index_list_templates
|
238
|
+
# 获取所有可用的索引模板
|
239
|
+
# @param from
|
240
|
+
# @param size
|
241
|
+
# @param [Hash] opts the optional parameters
|
242
|
+
# @return [IndexTemplates]
|
243
|
+
describe 'index_list_templates test' do
|
244
|
+
it 'should work' do
|
245
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
# unit tests for index_prefetch
|
250
|
+
# 获取目标网站内容预览
|
251
|
+
# @param type
|
252
|
+
# @param url
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [Array<Object>]
|
255
|
+
describe 'index_prefetch test' do
|
256
|
+
it 'should work' do
|
257
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# unit tests for index_rebuild
|
262
|
+
# 重建索引数据
|
263
|
+
# @param body
|
264
|
+
# @param app 应用标识
|
265
|
+
# @param index 索引编号
|
266
|
+
# @param [Hash] opts the optional parameters
|
267
|
+
# @return [IndexTask]
|
268
|
+
describe 'index_rebuild test' do
|
269
|
+
it 'should work' do
|
270
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# unit tests for index_rebuild_task
|
275
|
+
# 获取重建索引任务的详情
|
276
|
+
# @param app 应用标识
|
277
|
+
# @param index 索引编号
|
278
|
+
# @param task_id 任务编号,传0则获取最新的任务信息
|
279
|
+
# @param [Hash] opts the optional parameters
|
280
|
+
# @return [IndexTask]
|
281
|
+
describe 'index_rebuild_task test' do
|
282
|
+
it 'should work' do
|
283
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
# unit tests for index_submit_crawler_task
|
288
|
+
# 提交或者更新索引的数据爬取任务
|
289
|
+
# @param body
|
290
|
+
# @param app 应用标识
|
291
|
+
# @param index 索引编号
|
292
|
+
# @param [Hash] opts the optional parameters
|
293
|
+
# @return [CrawlerTask]
|
294
|
+
describe 'index_submit_crawler_task test' do
|
295
|
+
it 'should work' do
|
296
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
# unit tests for index_update
|
301
|
+
# 修改索引
|
302
|
+
# @param body
|
303
|
+
# @param app 应用标识
|
304
|
+
# @param index 索引编号
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @return [IndexBean]
|
307
|
+
describe 'index_update test' do
|
308
|
+
it 'should work' do
|
309
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
# unit tests for index_update_settings
|
314
|
+
# 更新索引设置信息
|
315
|
+
# @param type 设置类型
|
316
|
+
# @param app 应用标识
|
317
|
+
# @param index 索引编号
|
318
|
+
# @param [Hash] opts the optional parameters
|
319
|
+
# @option opts [String] :body
|
320
|
+
# @return [BOOLEAN]
|
321
|
+
describe 'index_update_settings test' do
|
322
|
+
it 'should work' do
|
323
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# unit tests for index_update_template
|
328
|
+
# 修改索引模板
|
329
|
+
# @param body
|
330
|
+
# @param [Hash] opts the optional parameters
|
331
|
+
# @return [IndexTemplate]
|
332
|
+
describe 'index_update_template test' do
|
333
|
+
it 'should work' do
|
334
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
338
|
+
# unit tests for synonyms_add
|
339
|
+
# 添加同义词
|
340
|
+
# @param body
|
341
|
+
# @param app 应用标识
|
342
|
+
# @param index 索引编号
|
343
|
+
# @param [Hash] opts the optional parameters
|
344
|
+
# @return [SynonymsBean]
|
345
|
+
describe 'synonyms_add test' do
|
346
|
+
it 'should work' do
|
347
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
351
|
+
# unit tests for synonyms_delete
|
352
|
+
# 删除同义词
|
353
|
+
# @param app 应用标识
|
354
|
+
# @param index 索引编号
|
355
|
+
# @param id 同义词编号
|
356
|
+
# @param [Hash] opts the optional parameters
|
357
|
+
# @return [BOOLEAN]
|
358
|
+
describe 'synonyms_delete test' do
|
359
|
+
it 'should work' do
|
360
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
361
|
+
end
|
362
|
+
end
|
363
|
+
|
364
|
+
# unit tests for synonyms_enable
|
365
|
+
# 启用禁用同义词
|
366
|
+
# @param app 应用标识
|
367
|
+
# @param index 索引编号
|
368
|
+
# @param id 同义词编号
|
369
|
+
# @param [Hash] opts the optional parameters
|
370
|
+
# @option opts [BOOLEAN] :enable 是否启用
|
371
|
+
# @option opts [BOOLEAN] :all 是否对所有索引起作用
|
372
|
+
# @return [BOOLEAN]
|
373
|
+
describe 'synonyms_enable test' do
|
374
|
+
it 'should work' do
|
375
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
# unit tests for synonyms_flush
|
380
|
+
# 将同义词更新到搜索引擎的同义词表
|
381
|
+
# @param app 应用标识
|
382
|
+
# @param index 索引编号
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @option opts [String] :password
|
385
|
+
# @return [Object]
|
386
|
+
describe 'synonyms_flush test' do
|
387
|
+
it 'should work' do
|
388
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
# unit tests for synonyms_import
|
393
|
+
# 导入同义词
|
394
|
+
# @param body
|
395
|
+
# @param action 覆盖方式
|
396
|
+
# @param app 应用标识
|
397
|
+
# @param index 索引编号
|
398
|
+
# @param [Hash] opts the optional parameters
|
399
|
+
# @return [Array<SynonymsBean>]
|
400
|
+
describe 'synonyms_import test' do
|
401
|
+
it 'should work' do
|
402
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
# unit tests for synonyms_list
|
407
|
+
# 获取索引的所有同义词
|
408
|
+
# @param app 应用标识
|
409
|
+
# @param index 索引编号
|
410
|
+
# @param size
|
411
|
+
# @param [Hash] opts the optional parameters
|
412
|
+
# @option opts [Integer] :type 类型
|
413
|
+
# @option opts [Integer] :from
|
414
|
+
# @return [Array<SynonymsBean>]
|
415
|
+
describe 'synonyms_list test' do
|
416
|
+
it 'should work' do
|
417
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
421
|
+
# unit tests for synonyms_update
|
422
|
+
# 修改同义词
|
423
|
+
# @param body
|
424
|
+
# @param app 应用标识
|
425
|
+
# @param index 索引编号
|
426
|
+
# @param [Hash] opts the optional parameters
|
427
|
+
# @return [SynonymsBean]
|
428
|
+
describe 'synonyms_update test' do
|
429
|
+
it 'should work' do
|
430
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
434
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
=begin
|
2
|
+
#Indexea OpenAPI
|
3
|
+
|
4
|
+
#OpenAPI of Indexea
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
Contact: indexea.com@gmail.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.54
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
|
15
|
+
# Unit tests for IndexeaClient::MessageApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'MessageApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::MessageApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of MessageApi' do
|
29
|
+
it 'should create an instance of MessageApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::MessageApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for message_delete
|
35
|
+
# 删除消息
|
36
|
+
# 删除消息
|
37
|
+
# @param id 消息编号
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [BOOLEAN]
|
40
|
+
describe 'message_delete test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for message_feedback
|
47
|
+
# 反馈意见
|
48
|
+
# @param content
|
49
|
+
# @param type
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [BOOLEAN]
|
52
|
+
describe 'message_feedback test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for message_list
|
59
|
+
# 获取我相关的消息信息,包括未读消息数量、最新消息等
|
60
|
+
# @param scope
|
61
|
+
# @param size 消息数量
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [Integer] :from 用于翻页的起始位置
|
64
|
+
# @return [Messages]
|
65
|
+
describe 'message_list test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for message_read
|
72
|
+
# 标识消息为已读
|
73
|
+
# 标识消息为已读
|
74
|
+
# @param id 消息编号,多个消息使用逗号隔开
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [Messages]
|
77
|
+
describe 'message_read test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# unit tests for message_send
|
84
|
+
# 发送消息
|
85
|
+
# 发送站内消息给某人
|
86
|
+
# @param receiver
|
87
|
+
# @param msg
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [Message]
|
90
|
+
describe 'message_send test' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|