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,133 @@
|
|
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
|
+
# Common files
|
13
|
+
require 'indexea_client/api_client'
|
14
|
+
require 'indexea_client/api_error'
|
15
|
+
require 'indexea_client/version'
|
16
|
+
require 'indexea_client/configuration'
|
17
|
+
|
18
|
+
# Models
|
19
|
+
require 'indexea_client/models/account_bean'
|
20
|
+
require 'indexea_client/models/account_passwd_body'
|
21
|
+
require 'indexea_client/models/account_portrait_body'
|
22
|
+
require 'indexea_client/models/account_profile_body'
|
23
|
+
require 'indexea_client/models/account_resetpwd_body'
|
24
|
+
require 'indexea_client/models/account_signin_body'
|
25
|
+
require 'indexea_client/models/account_signup_body'
|
26
|
+
require 'indexea_client/models/accounts_feedback_body'
|
27
|
+
require 'indexea_client/models/accounts_message_body'
|
28
|
+
require 'indexea_client/models/analyze_object'
|
29
|
+
require 'indexea_client/models/analyze_token'
|
30
|
+
require 'indexea_client/models/app_bean'
|
31
|
+
require 'indexea_client/models/app_company_body'
|
32
|
+
require 'indexea_client/models/app_index_body'
|
33
|
+
require 'indexea_client/models/app_log_account'
|
34
|
+
require 'indexea_client/models/app_log_bean'
|
35
|
+
require 'indexea_client/models/app_logs_bean'
|
36
|
+
require 'indexea_client/models/app_mentor_bean'
|
37
|
+
require 'indexea_client/models/app_oauth_body'
|
38
|
+
require 'indexea_client/models/app_oauth_body_1'
|
39
|
+
require 'indexea_client/models/app_oauthresetsecret_body'
|
40
|
+
require 'indexea_client/models/app_tokens_body'
|
41
|
+
require 'indexea_client/models/app_tokens_body_1'
|
42
|
+
require 'indexea_client/models/app_widget_body'
|
43
|
+
require 'indexea_client/models/apps_app_body'
|
44
|
+
require 'indexea_client/models/apps_body'
|
45
|
+
require 'indexea_client/models/auto_complete_item'
|
46
|
+
require 'indexea_client/models/blacklist_bean'
|
47
|
+
require 'indexea_client/models/bulletin'
|
48
|
+
require 'indexea_client/models/company_bean'
|
49
|
+
require 'indexea_client/models/contact_form'
|
50
|
+
require 'indexea_client/models/crawler_log'
|
51
|
+
require 'indexea_client/models/crawler_logs'
|
52
|
+
require 'indexea_client/models/crawler_task'
|
53
|
+
require 'indexea_client/models/global_option_form'
|
54
|
+
require 'indexea_client/models/index_bean'
|
55
|
+
require 'indexea_client/models/index_field_bean'
|
56
|
+
require 'indexea_client/models/index_form'
|
57
|
+
require 'indexea_client/models/index_rebuild_form'
|
58
|
+
require 'indexea_client/models/index_settings'
|
59
|
+
require 'indexea_client/models/index_settings_body'
|
60
|
+
require 'indexea_client/models/index_stat_bean'
|
61
|
+
require 'indexea_client/models/index_synonymsflush_body'
|
62
|
+
require 'indexea_client/models/index_task'
|
63
|
+
require 'indexea_client/models/index_template'
|
64
|
+
require 'indexea_client/models/index_templates'
|
65
|
+
require 'indexea_client/models/index_upload_body'
|
66
|
+
require 'indexea_client/models/intelligent_mapping'
|
67
|
+
require 'indexea_client/models/keyword_binding_bean'
|
68
|
+
require 'indexea_client/models/mentor_form'
|
69
|
+
require 'indexea_client/models/message'
|
70
|
+
require 'indexea_client/models/messages'
|
71
|
+
require 'indexea_client/models/oauth_app_bean'
|
72
|
+
require 'indexea_client/models/openid_bean'
|
73
|
+
require 'indexea_client/models/option_form'
|
74
|
+
require 'indexea_client/models/orders_ident_body'
|
75
|
+
require 'indexea_client/models/pay_result'
|
76
|
+
require 'indexea_client/models/payment_invoice'
|
77
|
+
require 'indexea_client/models/payment_order'
|
78
|
+
require 'indexea_client/models/payment_record'
|
79
|
+
require 'indexea_client/models/payment_service'
|
80
|
+
require 'indexea_client/models/query_action_bean'
|
81
|
+
require 'indexea_client/models/query_bean'
|
82
|
+
require 'indexea_client/models/query_form'
|
83
|
+
require 'indexea_client/models/query_node'
|
84
|
+
require 'indexea_client/models/query_sort_field'
|
85
|
+
require 'indexea_client/models/query_variable_bean'
|
86
|
+
require 'indexea_client/models/recommend_bean'
|
87
|
+
require 'indexea_client/models/record_filter'
|
88
|
+
require 'indexea_client/models/search_estimate_result'
|
89
|
+
require 'indexea_client/models/search_word'
|
90
|
+
require 'indexea_client/models/stat_index_bean'
|
91
|
+
require 'indexea_client/models/synonyms_bean'
|
92
|
+
require 'indexea_client/models/token_bean'
|
93
|
+
require 'indexea_client/models/trigger_bean'
|
94
|
+
require 'indexea_client/models/trigger_log_bean'
|
95
|
+
require 'indexea_client/models/value_of_field'
|
96
|
+
require 'indexea_client/models/widget_bean'
|
97
|
+
require 'indexea_client/models/widget_form'
|
98
|
+
require 'indexea_client/models/widget_logo'
|
99
|
+
require 'indexea_client/models/widget_logo_body'
|
100
|
+
require 'indexea_client/models/widget_status_form'
|
101
|
+
|
102
|
+
# APIs
|
103
|
+
require 'indexea_client/api/account_api'
|
104
|
+
require 'indexea_client/api/apps_api'
|
105
|
+
require 'indexea_client/api/fields_api'
|
106
|
+
require 'indexea_client/api/global_api'
|
107
|
+
require 'indexea_client/api/indices_api'
|
108
|
+
require 'indexea_client/api/message_api'
|
109
|
+
require 'indexea_client/api/payment_api'
|
110
|
+
require 'indexea_client/api/queries_api'
|
111
|
+
require 'indexea_client/api/recommend_api'
|
112
|
+
require 'indexea_client/api/records_api'
|
113
|
+
require 'indexea_client/api/search_api'
|
114
|
+
require 'indexea_client/api/stats_api'
|
115
|
+
require 'indexea_client/api/widgets_api'
|
116
|
+
|
117
|
+
module IndexeaClient
|
118
|
+
class << self
|
119
|
+
# Customize default settings for the SDK using block.
|
120
|
+
# IndexeaClient.configure do |config|
|
121
|
+
# config.username = "xxx"
|
122
|
+
# config.password = "xxx"
|
123
|
+
# end
|
124
|
+
# If no block given, return the default Configuration object.
|
125
|
+
def configure
|
126
|
+
if block_given?
|
127
|
+
yield(Configuration.default)
|
128
|
+
else
|
129
|
+
Configuration.default
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,200 @@
|
|
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::AccountApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'AccountApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::AccountApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of AccountApi' do
|
29
|
+
it 'should create an instance of AccountApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::AccountApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for account_bulletin
|
35
|
+
# 获取系统公告
|
36
|
+
# 获取系统公告
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Bulletin]
|
39
|
+
describe 'account_bulletin test' do
|
40
|
+
it 'should work' do
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# unit tests for account_delete
|
46
|
+
# 注销账号
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @option opts [String] :pwd
|
49
|
+
# @option opts [String] :vcode
|
50
|
+
# @return [BOOLEAN]
|
51
|
+
describe 'account_delete test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for account_delete_openid
|
58
|
+
# 解绑三方账号
|
59
|
+
# @param type 三方账号类型
|
60
|
+
# @param openid 三方账号唯一标识
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @return [BOOLEAN]
|
63
|
+
describe 'account_delete_openid test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for account_openid
|
70
|
+
# 获取绑定的所有三方账号
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @return [Array<OpenidBean>]
|
73
|
+
describe 'account_openid test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# unit tests for account_passwd
|
80
|
+
# 修改账号密码
|
81
|
+
# @param password
|
82
|
+
# @param new_password
|
83
|
+
# @param [Hash] opts the optional parameters
|
84
|
+
# @return [BOOLEAN]
|
85
|
+
describe 'account_passwd test' do
|
86
|
+
it 'should work' do
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# unit tests for account_portrait
|
92
|
+
# 修改账号头像
|
93
|
+
# @param portrait
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [AccountBean]
|
96
|
+
describe 'account_portrait 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 account_profile
|
103
|
+
# 获取登录账号信息
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [String] :account 获取指定账号信息,如果不指定,则返回当前登录账号
|
106
|
+
# @return [AccountBean]
|
107
|
+
describe 'account_profile 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 account_reset_pwd
|
114
|
+
# 重置账号密码
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @option opts [String] :account
|
117
|
+
# @option opts [String] :verify_code
|
118
|
+
# @option opts [String] :pwd
|
119
|
+
# @return [BOOLEAN]
|
120
|
+
describe 'account_reset_pwd test' do
|
121
|
+
it 'should work' do
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# unit tests for account_send_verify_code
|
127
|
+
# 发送账号验证码
|
128
|
+
# @param account 账号
|
129
|
+
# @param purpose 验证码的用途
|
130
|
+
# @param [Hash] opts the optional parameters
|
131
|
+
# @return [BOOLEAN]
|
132
|
+
describe 'account_send_verify_code test' do
|
133
|
+
it 'should work' do
|
134
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
# unit tests for account_signin
|
139
|
+
# 登录系统
|
140
|
+
# @param account
|
141
|
+
# @param pwd
|
142
|
+
# @param keep_login
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @return [AccountBean]
|
145
|
+
describe 'account_signin test' do
|
146
|
+
it 'should work' do
|
147
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# unit tests for account_signout
|
152
|
+
# 退出登录状态
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @return [nil]
|
155
|
+
describe 'account_signout 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 account_signup
|
162
|
+
# 注册新账号
|
163
|
+
# @param [Hash] opts the optional parameters
|
164
|
+
# @option opts [String] :account
|
165
|
+
# @option opts [String] :pwd
|
166
|
+
# @option opts [String] :name
|
167
|
+
# @option opts [String] :activate_code
|
168
|
+
# @return [AccountBean]
|
169
|
+
describe 'account_signup test' do
|
170
|
+
it 'should work' do
|
171
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# unit tests for account_update
|
176
|
+
# 修改账号资料
|
177
|
+
# @param body
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [AccountBean]
|
180
|
+
describe 'account_update test' do
|
181
|
+
it 'should work' do
|
182
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# unit tests for account_update_settings
|
187
|
+
# 修改账号设置
|
188
|
+
# @param key
|
189
|
+
# @param type
|
190
|
+
# @param value
|
191
|
+
# @param vcode
|
192
|
+
# @param [Hash] opts the optional parameters
|
193
|
+
# @return [BOOLEAN]
|
194
|
+
describe 'account_update_settings 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
|
+
end
|