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,492 @@
|
|
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::AppsApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'AppsApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::AppsApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of AppsApi' do
|
29
|
+
it 'should create an instance of AppsApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::AppsApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for app_add_mentor
|
35
|
+
# 添加应用成员
|
36
|
+
# @param app 应用标识
|
37
|
+
# @param account 成员账号
|
38
|
+
# @param scopes 权限
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :name 备注名称
|
41
|
+
# @return [MentorForm]
|
42
|
+
describe 'app_add_mentor test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for app_blacklist
|
49
|
+
# 获取黑名单信息
|
50
|
+
# @param app 应用标识
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [BlacklistBean]
|
53
|
+
describe 'app_blacklist test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for app_create
|
60
|
+
# 创建应用
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @option opts [String] :name
|
63
|
+
# @option opts [String] :intro
|
64
|
+
# @return [AppBean]
|
65
|
+
describe 'app_create 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 app_create_access_token
|
72
|
+
# 创建 Access Token
|
73
|
+
# @param body
|
74
|
+
# @param app 应用标识
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [TokenBean]
|
77
|
+
describe 'app_create_access_token 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 app_create_oauth_app
|
84
|
+
# 创建第三方应用
|
85
|
+
# @param body
|
86
|
+
# @param app 应用标识
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [OauthAppBean]
|
89
|
+
describe 'app_create_oauth_app test' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# unit tests for app_delete
|
96
|
+
# 删除应用
|
97
|
+
# @param app 应用标识
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [BOOLEAN]
|
100
|
+
describe 'app_delete test' do
|
101
|
+
it 'should work' do
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# unit tests for app_delete_access_token
|
107
|
+
# 删除 Access Token
|
108
|
+
# @param id Access Token 编号
|
109
|
+
# @param app 应用标识
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [String] :vcode
|
112
|
+
# @return [BOOLEAN]
|
113
|
+
describe 'app_delete_access_token test' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# unit tests for app_delete_mentor
|
120
|
+
# 删除应用成员
|
121
|
+
# @param app 应用标识
|
122
|
+
# @param account 成员编号
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @return [BOOLEAN]
|
125
|
+
describe 'app_delete_mentor test' do
|
126
|
+
it 'should work' do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# unit tests for app_delete_oauth_app
|
132
|
+
# 删除第三方应用
|
133
|
+
# @param ident 三方应用编号
|
134
|
+
# @param app 应用标识
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @option opts [String] :vcode
|
137
|
+
# @return [BOOLEAN]
|
138
|
+
describe 'app_delete_oauth_app test' do
|
139
|
+
it 'should work' do
|
140
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# unit tests for app_excel_of_logs
|
145
|
+
# 导出应用日志到 Excel
|
146
|
+
# @param app 应用标识
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @option opts [Integer] :account 账号
|
149
|
+
# @option opts [Array<Integer>] :indices 索引
|
150
|
+
# @option opts [Integer] :widget 组件
|
151
|
+
# @option opts [Integer] :query 查询
|
152
|
+
# @option opts [Integer] :type 类型
|
153
|
+
# @option opts [Date] :start_date 起始日期
|
154
|
+
# @option opts [Date] :end_date 结束日期
|
155
|
+
# @return [String]
|
156
|
+
describe 'app_excel_of_logs test' do
|
157
|
+
it 'should work' do
|
158
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# unit tests for app_get
|
163
|
+
# 获取应用详情
|
164
|
+
# @param app 应用标识
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @return [AppBean]
|
167
|
+
describe 'app_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 app_get_company
|
174
|
+
# 获取应用填写的公司信息
|
175
|
+
# @param app 应用标识
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @return [CompanyBean]
|
178
|
+
describe 'app_get_company 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 app_get_company_pic
|
185
|
+
# 获取公司营业执照或者一般纳税人证明
|
186
|
+
# @param app 应用标识
|
187
|
+
# @param type 获取图片的类型 [license,certificate]
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [String]
|
190
|
+
describe 'app_get_company_pic test' do
|
191
|
+
it 'should work' do
|
192
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# unit tests for app_list
|
197
|
+
# 获取应用列表
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @return [Array<AppBean>]
|
200
|
+
describe 'app_list test' do
|
201
|
+
it 'should work' do
|
202
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# unit tests for app_list_mentors
|
207
|
+
# 获取应用成员列表
|
208
|
+
# @param app 应用标识
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @option opts [Integer] :from 开始位置
|
211
|
+
# @option opts [Integer] :size 获取的数量
|
212
|
+
# @return [MentorForm]
|
213
|
+
describe 'app_list_mentors test' do
|
214
|
+
it 'should work' do
|
215
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
# unit tests for app_list_oauth_apps
|
220
|
+
# 获取第三方应用列表
|
221
|
+
# @param app 应用标识
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @return [Array<OauthAppBean>]
|
224
|
+
describe 'app_list_oauth_apps test' do
|
225
|
+
it 'should work' do
|
226
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
# unit tests for app_logs
|
231
|
+
# 获取应用的日志列表
|
232
|
+
# @param app 应用标识
|
233
|
+
# @param [Hash] opts the optional parameters
|
234
|
+
# @option opts [Integer] :account 账号
|
235
|
+
# @option opts [Array<Integer>] :indices 索引
|
236
|
+
# @option opts [Integer] :widget 组件
|
237
|
+
# @option opts [Integer] :query 查询
|
238
|
+
# @option opts [Integer] :type 类型
|
239
|
+
# @option opts [Date] :start_date 起始日期
|
240
|
+
# @option opts [Date] :end_date 结束日期
|
241
|
+
# @option opts [Integer] :from 起始位置
|
242
|
+
# @option opts [Integer] :size 数量
|
243
|
+
# @return [AppLogsBean]
|
244
|
+
describe 'app_logs test' do
|
245
|
+
it 'should work' do
|
246
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
# unit tests for app_reset_access_token
|
251
|
+
# 重置 Access Token
|
252
|
+
# @param id Access Token 编号
|
253
|
+
# @param app 应用标识
|
254
|
+
# @param [Hash] opts the optional parameters
|
255
|
+
# @option opts [String] :vcode
|
256
|
+
# @return [TokenBean]
|
257
|
+
describe 'app_reset_access_token test' do
|
258
|
+
it 'should work' do
|
259
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# unit tests for app_reset_oauth_app_secret
|
264
|
+
# 重新生成三方应用的密钥
|
265
|
+
# @param ident 三方应用标识
|
266
|
+
# @param app 应用标识
|
267
|
+
# @param [Hash] opts the optional parameters
|
268
|
+
# @option opts [String] :vcode
|
269
|
+
# @return [OauthAppBean]
|
270
|
+
describe 'app_reset_oauth_app_secret test' do
|
271
|
+
it 'should work' do
|
272
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
# unit tests for app_save_blacklist
|
277
|
+
# 修改应用的黑名单信息
|
278
|
+
# @param body
|
279
|
+
# @param app 应用标识
|
280
|
+
# @param [Hash] opts the optional parameters
|
281
|
+
# @return [BOOLEAN]
|
282
|
+
describe 'app_save_blacklist test' do
|
283
|
+
it 'should work' do
|
284
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# unit tests for app_save_company
|
289
|
+
# 修改应用的公司信息
|
290
|
+
# @param app 应用标识
|
291
|
+
# @param [Hash] opts the optional parameters
|
292
|
+
# @option opts [String] :name
|
293
|
+
# @option opts [String] :url
|
294
|
+
# @option opts [String] :nation
|
295
|
+
# @option opts [String] :province
|
296
|
+
# @option opts [String] :city
|
297
|
+
# @option opts [String] :taxpayer
|
298
|
+
# @option opts [String] :bank
|
299
|
+
# @option opts [String] :account
|
300
|
+
# @option opts [String] :address
|
301
|
+
# @option opts [String] :tel
|
302
|
+
# @option opts [String] :license
|
303
|
+
# @option opts [String] :certificate
|
304
|
+
# @option opts [String] :post_addr
|
305
|
+
# @option opts [String] :post_code
|
306
|
+
# @option opts [String] :post_name
|
307
|
+
# @option opts [String] :post_tel
|
308
|
+
# @return [CompanyBean]
|
309
|
+
describe 'app_save_company test' do
|
310
|
+
it 'should work' do
|
311
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
# unit tests for app_searchs_estimate
|
316
|
+
# 获取搜索流量包使用配额信息
|
317
|
+
# @param app 应用标识
|
318
|
+
# @param days 计算平均搜索数的最近天数
|
319
|
+
# @param [Hash] opts the optional parameters
|
320
|
+
# @return [SearchEstimateResult]
|
321
|
+
describe 'app_searchs_estimate 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 app_set_trigger
|
328
|
+
# 修改应用的触发器信息
|
329
|
+
# @param body
|
330
|
+
# @param app 应用标识
|
331
|
+
# @param [Hash] opts the optional parameters
|
332
|
+
# @return [BOOLEAN]
|
333
|
+
describe 'app_set_trigger test' do
|
334
|
+
it 'should work' do
|
335
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
# unit tests for app_tokens
|
340
|
+
# 获取 Access Token 列表
|
341
|
+
# @param app 应用标识
|
342
|
+
# @param [Hash] opts the optional parameters
|
343
|
+
# @return [Array<TokenBean>]
|
344
|
+
describe 'app_tokens test' do
|
345
|
+
it 'should work' do
|
346
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
# unit tests for app_transfer
|
351
|
+
# 转让应用给他人
|
352
|
+
# @param app 应用标识
|
353
|
+
# @param vcode 验证码
|
354
|
+
# @param account 目标账号
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @return [BOOLEAN]
|
357
|
+
describe 'app_transfer test' do
|
358
|
+
it 'should work' do
|
359
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# unit tests for app_trigger
|
364
|
+
# 获取应用触发器详情
|
365
|
+
# @param app 应用标识
|
366
|
+
# @param [Hash] opts the optional parameters
|
367
|
+
# @return [TriggerBean]
|
368
|
+
describe 'app_trigger test' do
|
369
|
+
it 'should work' do
|
370
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
# unit tests for app_trigger_logs
|
375
|
+
# 获取应用触发日志列表
|
376
|
+
# @param app 应用标识
|
377
|
+
# @param id 起始日志编号
|
378
|
+
# @param size 日志数
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @return [Array<TriggerLogBean>]
|
381
|
+
describe 'app_trigger_logs test' do
|
382
|
+
it 'should work' do
|
383
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
387
|
+
# unit tests for app_update
|
388
|
+
# 修改应用的基本信息
|
389
|
+
# @param app 应用标识
|
390
|
+
# @param [Hash] opts the optional parameters
|
391
|
+
# @option opts [String] :name
|
392
|
+
# @option opts [String] :intro
|
393
|
+
# @return [AppBean]
|
394
|
+
describe 'app_update test' do
|
395
|
+
it 'should work' do
|
396
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
400
|
+
# unit tests for app_update_access_token
|
401
|
+
# 修改 Access Token
|
402
|
+
# @param body
|
403
|
+
# @param app 应用标识
|
404
|
+
# @param [Hash] opts the optional parameters
|
405
|
+
# @return [TokenBean]
|
406
|
+
describe 'app_update_access_token test' do
|
407
|
+
it 'should work' do
|
408
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
409
|
+
end
|
410
|
+
end
|
411
|
+
|
412
|
+
# unit tests for app_update_mentor
|
413
|
+
# 修改成员备注和权限
|
414
|
+
# @param app 应用标识
|
415
|
+
# @param account 成员编号
|
416
|
+
# @param name 备注名称
|
417
|
+
# @param scopes 权限
|
418
|
+
# @param [Hash] opts the optional parameters
|
419
|
+
# @return [BOOLEAN]
|
420
|
+
describe 'app_update_mentor test' do
|
421
|
+
it 'should work' do
|
422
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
# unit tests for app_update_mentor_options
|
427
|
+
# 修改应用成员自身的设置(包括应用名备注,是否接收报告等)
|
428
|
+
# @param app 应用标识
|
429
|
+
# @param [Hash] opts the optional parameters
|
430
|
+
# @option opts [String] :name 应用备注名称,如果不填写则使用默认名称
|
431
|
+
# @option opts [BOOLEAN] :report 是否接收使用情况报告
|
432
|
+
# @return [BOOLEAN]
|
433
|
+
describe 'app_update_mentor_options test' do
|
434
|
+
it 'should work' do
|
435
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
# unit tests for app_update_mentor_report_options
|
440
|
+
# 修改应用成员自身的通知设置
|
441
|
+
# @param key
|
442
|
+
# @param type
|
443
|
+
# @param value
|
444
|
+
# @param vcode
|
445
|
+
# @param app 应用标识
|
446
|
+
# @param [Hash] opts the optional parameters
|
447
|
+
# @return [BOOLEAN]
|
448
|
+
describe 'app_update_mentor_report_options test' do
|
449
|
+
it 'should work' do
|
450
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
454
|
+
# unit tests for app_update_oauth_app
|
455
|
+
# 修改第三方应用信息
|
456
|
+
# @param body
|
457
|
+
# @param app 应用标识
|
458
|
+
# @param [Hash] opts the optional parameters
|
459
|
+
# @return [OauthAppBean]
|
460
|
+
describe 'app_update_oauth_app test' do
|
461
|
+
it 'should work' do
|
462
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
# unit tests for app_update_oauth_app_logo
|
467
|
+
# 修改三方应用图标
|
468
|
+
# @param ident 三方应用标识
|
469
|
+
# @param app 应用标识
|
470
|
+
# @param [Hash] opts the optional parameters
|
471
|
+
# @option opts [String] :logo
|
472
|
+
# @return [OauthAppBean]
|
473
|
+
describe 'app_update_oauth_app_logo test' do
|
474
|
+
it 'should work' do
|
475
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
476
|
+
end
|
477
|
+
end
|
478
|
+
|
479
|
+
# unit tests for app_update_status
|
480
|
+
# 修改应用的状态
|
481
|
+
# @param app 应用标识
|
482
|
+
# @param vcode 验证码
|
483
|
+
# @param status 新状态
|
484
|
+
# @param [Hash] opts the optional parameters
|
485
|
+
# @return [BOOLEAN]
|
486
|
+
describe 'app_update_status test' do
|
487
|
+
it 'should work' do
|
488
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
492
|
+
end
|
@@ -0,0 +1,86 @@
|
|
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::FieldsApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'FieldsApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::FieldsApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of FieldsApi' do
|
29
|
+
it 'should create an instance of FieldsApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::FieldsApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for index_fields
|
35
|
+
# 获取索引字段映射详情
|
36
|
+
# @param app 应用标识
|
37
|
+
# @param index 索引编号
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Object]
|
40
|
+
describe 'index_fields 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 index_update_fields
|
47
|
+
# 更新索引的字段映射
|
48
|
+
# @param body
|
49
|
+
# @param app 应用标识
|
50
|
+
# @param index 索引编号
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [Object]
|
53
|
+
describe 'index_update_fields test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for index_update_html_strip_fields
|
60
|
+
# 更新索引的HTML过滤字段列表
|
61
|
+
# @param body
|
62
|
+
# @param app 应用标识
|
63
|
+
# @param index 索引编号
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @return [Object]
|
66
|
+
describe 'index_update_html_strip_fields test' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for index_values_of_field
|
73
|
+
# 获取索引字段的所有值列表
|
74
|
+
# @param app 应用标识
|
75
|
+
# @param index 索引编号
|
76
|
+
# @param field 字段名称
|
77
|
+
# @param size values count
|
78
|
+
# @param [Hash] opts the optional parameters
|
79
|
+
# @return [Array<ValueOfField>]
|
80
|
+
describe 'index_values_of_field 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
|
+
end
|
@@ -0,0 +1,98 @@
|
|
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::GlobalApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'GlobalApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = IndexeaClient::GlobalApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of GlobalApi' do
|
29
|
+
it 'should create an instance of GlobalApi' do
|
30
|
+
expect(@instance).to be_instance_of(IndexeaClient::GlobalApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for json
|
35
|
+
# 接口定义(JSON)
|
36
|
+
# 获取 OpenAPI 接口定义(JSON)
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Object]
|
39
|
+
describe 'json 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 options_get
|
46
|
+
# 系统全局配置接口
|
47
|
+
# @param name
|
48
|
+
# @param keys 配置项名,多个配置项请使用逗号隔开
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [Object]
|
51
|
+
describe 'options_get 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 status_database
|
58
|
+
# 数据库服务状态测试
|
59
|
+
# @param [Hash] opts the optional parameters
|
60
|
+
# @return [String]
|
61
|
+
describe 'status_database test' do
|
62
|
+
it 'should work' do
|
63
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# unit tests for status_engine
|
68
|
+
# 搜索引擎状态测试
|
69
|
+
# @param [Hash] opts the optional parameters
|
70
|
+
# @return [String]
|
71
|
+
describe 'status_engine test' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# unit tests for welcome
|
78
|
+
# 接口欢迎信息
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [String]
|
81
|
+
describe 'welcome 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 yaml
|
88
|
+
# 接口定义(YAML)
|
89
|
+
# 获取 OpenAPI 接口定义(YAML)
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [String]
|
92
|
+
describe 'yaml test' do
|
93
|
+
it 'should work' do
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|