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,125 @@
|
|
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::RecommendApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'RecommendApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::RecommendApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of RecommendApi' do
|
29
|
+
it 'should create an instance of RecommendApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::RecommendApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for recommend_click
|
35
|
+
# 推荐结果点击行为收集
|
36
|
+
# 该接口主要用于记录用户对推荐结果的点击行为
|
37
|
+
# @param ident 推荐的唯一标识
|
38
|
+
# @param action_id 对应推荐行为编号
|
39
|
+
# @param doc_id 对应索引中的内部记录编号
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
42
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
43
|
+
# @return [BOOLEAN]
|
44
|
+
describe 'recommend_click test' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for recommend_create
|
51
|
+
# 创建新的推荐
|
52
|
+
# @param body 推荐信息
|
53
|
+
# @param app 应用标识
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @return [RecommendBean]
|
56
|
+
describe 'recommend_create test' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# unit tests for recommend_delete
|
63
|
+
# 删除推荐
|
64
|
+
# @param app 应用标识
|
65
|
+
# @param id 推荐编号
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @return [BOOLEAN]
|
68
|
+
describe 'recommend_delete test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# unit tests for recommend_detail
|
75
|
+
# 获取推荐的记录列表
|
76
|
+
# @param ident 推荐定义的标识
|
77
|
+
# @param [Hash] opts the optional parameters
|
78
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
79
|
+
# @return [RecommendBean]
|
80
|
+
describe 'recommend_detail 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 recommend_fetch
|
87
|
+
# 获取推荐的记录列表
|
88
|
+
# @param ident 推荐定义的标识
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
91
|
+
# @option opts [String] :userid 访客的唯一标识,该标识由搜索前端生成,长度不超过64
|
92
|
+
# @option opts [Hash<String, String>] :condition 获取某个记录的参数,例如 id=11223(后端将使用 term query 进行匹配)
|
93
|
+
# @option opts [Integer] :from 起始值
|
94
|
+
# @option opts [Integer] :count 推荐的记录数
|
95
|
+
# @return [Object]
|
96
|
+
describe 'recommend_fetch test' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# unit tests for recommend_list
|
103
|
+
# 获取已定义的推荐列表
|
104
|
+
# @param app 应用标识
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<RecommendBean>]
|
107
|
+
describe 'recommend_list test' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
# unit tests for recommend_update
|
114
|
+
# 更新推荐信息
|
115
|
+
# @param body 推荐信息
|
116
|
+
# @param app 应用标识
|
117
|
+
# @param [Hash] opts the optional parameters
|
118
|
+
# @return [BOOLEAN]
|
119
|
+
describe 'recommend_update test' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
@@ -0,0 +1,107 @@
|
|
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::RecordsApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'RecordsApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::RecordsApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of RecordsApi' do
|
29
|
+
it 'should create an instance of RecordsApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::RecordsApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for record_delete
|
35
|
+
# 删除记录数据
|
36
|
+
# @param app 应用标识
|
37
|
+
# @param index 索引编号
|
38
|
+
# @param _id 主键字段值
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [BOOLEAN]
|
41
|
+
describe 'record_delete 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 record_get
|
48
|
+
# 获取单条记录详情
|
49
|
+
# @param app 应用标识
|
50
|
+
# @param index 索引编号
|
51
|
+
# @param _id 记录 _id 值
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [Object]
|
54
|
+
describe 'record_get test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for record_list
|
61
|
+
# 获取索引记录列表
|
62
|
+
# @param app 应用标识
|
63
|
+
# @param index 索引编号
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [RecordFilter] :body
|
66
|
+
# @option opts [String] :q 搜索关键字
|
67
|
+
# @option opts [String] :field 搜索字段
|
68
|
+
# @option opts [Integer] :from 起始记录
|
69
|
+
# @option opts [Integer] :size 获取记录数
|
70
|
+
# @option opts [BOOLEAN] :save_filter 是否保存过滤器信息
|
71
|
+
# @return [Array<Object>]
|
72
|
+
describe 'record_list test' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# unit tests for record_push
|
79
|
+
# 插入或者更新索引数据
|
80
|
+
# @param body
|
81
|
+
# @param app 应用标识
|
82
|
+
# @param index 索引编号
|
83
|
+
# @param [Hash] opts the optional parameters
|
84
|
+
# @option opts [BOOLEAN] :combine 更新策略:合并还是替换,combine=true 为合并模式
|
85
|
+
# @return [BOOLEAN]
|
86
|
+
describe 'record_push test' do
|
87
|
+
it 'should work' do
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# unit tests for record_upload
|
93
|
+
# 上传记录
|
94
|
+
# @param app 应用标识
|
95
|
+
# @param index 索引编号
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [Array<String>] :files
|
98
|
+
# @option opts [BOOLEAN] :combine 更新策略:合并还是替换,combine=true 为合并模式
|
99
|
+
# @option opts [BOOLEAN] :use_id_as_id_value 使用数据中的 id 值作为记录 _id, 如果没有 id 字段则自动生成
|
100
|
+
# @return [Object]
|
101
|
+
describe 'record_upload test' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
@@ -0,0 +1,220 @@
|
|
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::SearchApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'SearchApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::SearchApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of SearchApi' do
|
29
|
+
it 'should create an instance of SearchApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::SearchApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for search_click
|
35
|
+
# 搜索结果点击行为收集
|
36
|
+
# 该接口主要用于记录用户对搜索结果的点击行为
|
37
|
+
# @param widget 组件唯一标识
|
38
|
+
# @param action_id 对应搜索行为编号
|
39
|
+
# @param doc_id 对应索引中的内部记录编号
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
42
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
43
|
+
# @return [BOOLEAN]
|
44
|
+
describe 'search_click test' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for search_histories
|
51
|
+
# 获取当前搜索用户的最新搜索记录
|
52
|
+
# @param widget 组件唯一标识
|
53
|
+
# @param strategy 搜索记录策略
|
54
|
+
# @param query 指定关联查询的编号
|
55
|
+
# @param size 数量
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
58
|
+
# @option opts [String] :x_token 如果要使用非公开的组件,需要组件作者授权
|
59
|
+
# @return [Array<String>]
|
60
|
+
describe 'search_histories test' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# unit tests for search_logs
|
67
|
+
# 获取搜索日志
|
68
|
+
# 该接口主要用于获取搜索明细
|
69
|
+
# @param app 应用标识
|
70
|
+
# @param [Hash] opts the optional parameters
|
71
|
+
# @option opts [Array<Integer>] :indices 只看指定索引
|
72
|
+
# @option opts [String] :scope 搜索范围
|
73
|
+
# @option opts [Integer] :widget 搜索组件
|
74
|
+
# @option opts [Integer] :query 指定查询
|
75
|
+
# @option opts [Integer] :recomm 推荐组件
|
76
|
+
# @option opts [Date] :start_date 统计起始日期
|
77
|
+
# @option opts [Date] :end_date 统计结束日期
|
78
|
+
# @option opts [Integer] :from 起始位置
|
79
|
+
# @option opts [Integer] :size 每页记录数量
|
80
|
+
# @return [Array<QueryActionBean>]
|
81
|
+
describe 'search_logs test' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# unit tests for search_query_histories
|
88
|
+
# 获取当前搜索用户的最新搜索记录
|
89
|
+
# @param query 查询唯一标识
|
90
|
+
# @param strategy 搜索记录策略
|
91
|
+
# @param size 数量
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
94
|
+
# @option opts [String] :x_token 如果要使用非公开查询,需要组件作者授权
|
95
|
+
# @return [Array<String>]
|
96
|
+
describe 'search_query_histories test' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# unit tests for search_query_hot_words
|
103
|
+
# 获取查询相关热词
|
104
|
+
# @param query 查询标识
|
105
|
+
# @param scope 时间范围
|
106
|
+
# @param count 获取热词数量
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
109
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
110
|
+
# @return [Array<SearchWord>]
|
111
|
+
describe 'search_query_hot_words test' do
|
112
|
+
it 'should work' do
|
113
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# unit tests for search_query_repeat_scroll
|
118
|
+
# 读取滚动搜索结果
|
119
|
+
# 先调用 search.queryScroll 获取 scroll_id 值以及第一批结果记录,然后使用 scroll_id 值调用该接口获取下一批结果记录,请注意该值的有效期是 1 分钟
|
120
|
+
# @param query 查询标识
|
121
|
+
# @param id scroll_id 值,该值的有效期是 1 分钟
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
124
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
125
|
+
# @return [Object]
|
126
|
+
describe 'search_query_repeat_scroll test' do
|
127
|
+
it 'should work' do
|
128
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# unit tests for search_query_scroll
|
133
|
+
# 基于查询的滚动搜索
|
134
|
+
# 用于读取超过 10000 条记录的搜索结果,当需要读取大批量查询结果时请采用此接口获得 scroll_id 值,然后再用 POST 方法 queryRepeatScroll 读取剩余的其他结果,每批次的读取间隔不能超过 1 分钟
|
135
|
+
# @param query 查询标识
|
136
|
+
# @param [Hash] opts the optional parameters
|
137
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
138
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
139
|
+
# @option opts [Integer] :size 单次滚动的记录数
|
140
|
+
# @option opts [String] :q 搜索关键字
|
141
|
+
# @option opts [Hash<String, String>] :params 聚合参数
|
142
|
+
# @return [Object]
|
143
|
+
describe 'search_query_scroll test' do
|
144
|
+
it 'should work' do
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# unit tests for search_query_search
|
150
|
+
# 基于查询的公开搜索
|
151
|
+
# 该接口主要用于公开搜索,如果查询是公开的就不需要授权
|
152
|
+
# @param query 查询标识
|
153
|
+
# @param from 起始记录
|
154
|
+
# @param size 每页记录数量
|
155
|
+
# @param [Hash] opts the optional parameters
|
156
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
157
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
158
|
+
# @option opts [String] :q 搜索关键字
|
159
|
+
# @option opts [Hash<String, String>] :params 聚合参数
|
160
|
+
# @return [Object]
|
161
|
+
describe 'search_query_search test' do
|
162
|
+
it 'should work' do
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# unit tests for search_widget_auto_complete
|
168
|
+
# 基于组件的搜索词自动完成
|
169
|
+
# 该接口主要为搜索输入框提供自动完成的功能
|
170
|
+
# @param widget 组件唯一标识
|
171
|
+
# @param query 查询编号
|
172
|
+
# @param q 搜索关键字
|
173
|
+
# @param size 数量
|
174
|
+
# @param [Hash] opts the optional parameters
|
175
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
176
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
177
|
+
# @return [Array<AutoCompleteItem>]
|
178
|
+
describe 'search_widget_auto_complete test' do
|
179
|
+
it 'should work' do
|
180
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
# unit tests for search_widget_hot_words
|
185
|
+
# 获取组件搜索的相关热词
|
186
|
+
# @param widget 组件唯一标识
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
189
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
190
|
+
# @option opts [Integer] :query 查询编号
|
191
|
+
# @option opts [String] :scope 时间范围
|
192
|
+
# @option opts [Integer] :count 获取热词数量
|
193
|
+
# @return [Array<SearchWord>]
|
194
|
+
describe 'search_widget_hot_words test' do
|
195
|
+
it 'should work' do
|
196
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# unit tests for search_widget_search
|
201
|
+
# 基于组件的公开搜索
|
202
|
+
# 该接口主要为UI组件提供公开搜索
|
203
|
+
# @param widget 组件唯一标识
|
204
|
+
# @param query 查询编号
|
205
|
+
# @param from 起始记录
|
206
|
+
# @param size 每页记录数量, 如果值小于0则使用预设值的记录数
|
207
|
+
# @param [Hash] opts the optional parameters
|
208
|
+
# @option opts [String] :userid 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
|
209
|
+
# @option opts [String] :x_token 如果要使用非发布的组件,需要组件作者授权
|
210
|
+
# @option opts [String] :original 搜索动作的延续,在 Web 组件中一边输入即时搜索时,使用的是同一个 original,original 值等于第一个搜索动作产生结果中的 action 值
|
211
|
+
# @option opts [String] :q 搜索关键字
|
212
|
+
# @option opts [Hash<String, String>] :params 聚合参数
|
213
|
+
# @return [Object]
|
214
|
+
describe 'search_widget_search test' do
|
215
|
+
it 'should work' do
|
216
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|
@@ -0,0 +1,99 @@
|
|
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::StatsApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'StatsApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::StatsApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of StatsApi' do
|
29
|
+
it 'should create an instance of StatsApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::StatsApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for stats_recomms
|
35
|
+
# 获取推荐日志的汇总信息
|
36
|
+
# @param app 应用标识
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [Integer] :recomm 统计指定推荐
|
39
|
+
# @option opts [Date] :start_date 统计起始日期
|
40
|
+
# @option opts [Date] :end_date 统计结束日期
|
41
|
+
# @option opts [String] :interval 统计间隔 - 日、周、月、季度、年
|
42
|
+
# @return [Object]
|
43
|
+
describe 'stats_recomms test' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# unit tests for stats_searchs
|
50
|
+
# 获取搜索日志的汇总信息
|
51
|
+
# @param app 应用标识
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [Integer] :index 统计指定索引
|
54
|
+
# @option opts [Integer] :query 统计指定查询
|
55
|
+
# @option opts [Integer] :widget 统计指定组件
|
56
|
+
# @option opts [Date] :start_date 统计起始日期
|
57
|
+
# @option opts [Date] :end_date 统计结束日期
|
58
|
+
# @option opts [String] :interval 统计间隔 - 日、周、月、季度、年
|
59
|
+
# @return [Object]
|
60
|
+
describe 'stats_searchs test' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# unit tests for stats_top_clicks
|
67
|
+
# 获取点击排行榜
|
68
|
+
# @param app 应用标识
|
69
|
+
# @param size 排行榜大小
|
70
|
+
# @param [Hash] opts the optional parameters
|
71
|
+
# @option opts [Integer] :index 统计指定索引
|
72
|
+
# @option opts [Integer] :query 统计指定查询
|
73
|
+
# @option opts [Integer] :recomm 统计指定推荐组件
|
74
|
+
# @option opts [Integer] :widget 统计指定组件
|
75
|
+
# @option opts [Date] :start_date 统计起始日期
|
76
|
+
# @option opts [Date] :end_date 统计结束日期
|
77
|
+
# @return [Array<Object>]
|
78
|
+
describe 'stats_top_clicks test' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# unit tests for stats_widgets
|
85
|
+
# 获取模板与组件的统计信息
|
86
|
+
# @param app 应用标识
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @option opts [Integer] :widget 统计指定模板或组件
|
89
|
+
# @option opts [Date] :start_date 统计起始日期
|
90
|
+
# @option opts [Date] :end_date 统计结束日期
|
91
|
+
# @option opts [String] :interval 统计间隔 - 日、周、月、季度、年
|
92
|
+
# @return [Object]
|
93
|
+
describe 'stats_widgets 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
|
+
end
|