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,289 @@
|
|
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
|
+
module IndexeaClient
|
13
|
+
class FieldsApi
|
14
|
+
attr_accessor :api_client
|
15
|
+
|
16
|
+
def initialize(api_client = ApiClient.default)
|
17
|
+
@api_client = api_client
|
18
|
+
end
|
19
|
+
# 获取索引字段映射详情
|
20
|
+
# @param app 应用标识
|
21
|
+
# @param index 索引编号
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @return [Object]
|
24
|
+
def index_fields(app, index, opts = {})
|
25
|
+
data, _status_code, _headers = index_fields_with_http_info(app, index, opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# 获取索引字段映射详情
|
30
|
+
# @param app 应用标识
|
31
|
+
# @param index 索引编号
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
34
|
+
def index_fields_with_http_info(app, index, opts = {})
|
35
|
+
if @api_client.config.debugging
|
36
|
+
@api_client.config.logger.debug 'Calling API: FieldsApi.index_fields ...'
|
37
|
+
end
|
38
|
+
# verify the required parameter 'app' is set
|
39
|
+
if @api_client.config.client_side_validation && app.nil?
|
40
|
+
fail ArgumentError, "Missing the required parameter 'app' when calling FieldsApi.index_fields"
|
41
|
+
end
|
42
|
+
# verify the required parameter 'index' is set
|
43
|
+
if @api_client.config.client_side_validation && index.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'index' when calling FieldsApi.index_fields"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = '/indices/{app}/{index}/fields'.sub('{' + 'app' + '}', app.to_s).sub('{' + 'index' + '}', index.to_s)
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = opts[:query_params] || {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = opts[:header_params] || {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:body]
|
62
|
+
|
63
|
+
return_type = opts[:return_type] || 'Object'
|
64
|
+
|
65
|
+
auth_names = opts[:auth_names] || ['TokenAuth']
|
66
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
67
|
+
:header_params => header_params,
|
68
|
+
:query_params => query_params,
|
69
|
+
:form_params => form_params,
|
70
|
+
:body => post_body,
|
71
|
+
:auth_names => auth_names,
|
72
|
+
:return_type => return_type)
|
73
|
+
|
74
|
+
if @api_client.config.debugging
|
75
|
+
@api_client.config.logger.debug "API called: FieldsApi#index_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
76
|
+
end
|
77
|
+
return data, status_code, headers
|
78
|
+
end
|
79
|
+
# 更新索引的字段映射
|
80
|
+
# @param body
|
81
|
+
# @param app 应用标识
|
82
|
+
# @param index 索引编号
|
83
|
+
# @param [Hash] opts the optional parameters
|
84
|
+
# @return [Object]
|
85
|
+
def index_update_fields(body, app, index, opts = {})
|
86
|
+
data, _status_code, _headers = index_update_fields_with_http_info(body, app, index, opts)
|
87
|
+
data
|
88
|
+
end
|
89
|
+
|
90
|
+
# 更新索引的字段映射
|
91
|
+
# @param body
|
92
|
+
# @param app 应用标识
|
93
|
+
# @param index 索引编号
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
96
|
+
def index_update_fields_with_http_info(body, app, index, opts = {})
|
97
|
+
if @api_client.config.debugging
|
98
|
+
@api_client.config.logger.debug 'Calling API: FieldsApi.index_update_fields ...'
|
99
|
+
end
|
100
|
+
# verify the required parameter 'body' is set
|
101
|
+
if @api_client.config.client_side_validation && body.nil?
|
102
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FieldsApi.index_update_fields"
|
103
|
+
end
|
104
|
+
# verify the required parameter 'app' is set
|
105
|
+
if @api_client.config.client_side_validation && app.nil?
|
106
|
+
fail ArgumentError, "Missing the required parameter 'app' when calling FieldsApi.index_update_fields"
|
107
|
+
end
|
108
|
+
# verify the required parameter 'index' is set
|
109
|
+
if @api_client.config.client_side_validation && index.nil?
|
110
|
+
fail ArgumentError, "Missing the required parameter 'index' when calling FieldsApi.index_update_fields"
|
111
|
+
end
|
112
|
+
# resource path
|
113
|
+
local_var_path = '/indices/{app}/{index}/fields'.sub('{' + 'app' + '}', app.to_s).sub('{' + 'index' + '}', index.to_s)
|
114
|
+
|
115
|
+
# query parameters
|
116
|
+
query_params = opts[:query_params] || {}
|
117
|
+
|
118
|
+
# header parameters
|
119
|
+
header_params = opts[:header_params] || {}
|
120
|
+
# HTTP header 'Accept' (if needed)
|
121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
122
|
+
# HTTP header 'Content-Type'
|
123
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
124
|
+
|
125
|
+
# form parameters
|
126
|
+
form_params = opts[:form_params] || {}
|
127
|
+
|
128
|
+
# http body (model)
|
129
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
130
|
+
|
131
|
+
return_type = opts[:return_type] || 'Object'
|
132
|
+
|
133
|
+
auth_names = opts[:auth_names] || ['TokenAuth']
|
134
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
135
|
+
:header_params => header_params,
|
136
|
+
:query_params => query_params,
|
137
|
+
:form_params => form_params,
|
138
|
+
:body => post_body,
|
139
|
+
:auth_names => auth_names,
|
140
|
+
:return_type => return_type)
|
141
|
+
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: FieldsApi#index_update_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
# 更新索引的HTML过滤字段列表
|
148
|
+
# @param body
|
149
|
+
# @param app 应用标识
|
150
|
+
# @param index 索引编号
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @return [Object]
|
153
|
+
def index_update_html_strip_fields(body, app, index, opts = {})
|
154
|
+
data, _status_code, _headers = index_update_html_strip_fields_with_http_info(body, app, index, opts)
|
155
|
+
data
|
156
|
+
end
|
157
|
+
|
158
|
+
# 更新索引的HTML过滤字段列表
|
159
|
+
# @param body
|
160
|
+
# @param app 应用标识
|
161
|
+
# @param index 索引编号
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
164
|
+
def index_update_html_strip_fields_with_http_info(body, app, index, opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug 'Calling API: FieldsApi.index_update_html_strip_fields ...'
|
167
|
+
end
|
168
|
+
# verify the required parameter 'body' is set
|
169
|
+
if @api_client.config.client_side_validation && body.nil?
|
170
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FieldsApi.index_update_html_strip_fields"
|
171
|
+
end
|
172
|
+
# verify the required parameter 'app' is set
|
173
|
+
if @api_client.config.client_side_validation && app.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'app' when calling FieldsApi.index_update_html_strip_fields"
|
175
|
+
end
|
176
|
+
# verify the required parameter 'index' is set
|
177
|
+
if @api_client.config.client_side_validation && index.nil?
|
178
|
+
fail ArgumentError, "Missing the required parameter 'index' when calling FieldsApi.index_update_html_strip_fields"
|
179
|
+
end
|
180
|
+
# resource path
|
181
|
+
local_var_path = '/indices/{app}/{index}/fields'.sub('{' + 'app' + '}', app.to_s).sub('{' + 'index' + '}', index.to_s)
|
182
|
+
|
183
|
+
# query parameters
|
184
|
+
query_params = opts[:query_params] || {}
|
185
|
+
|
186
|
+
# header parameters
|
187
|
+
header_params = opts[:header_params] || {}
|
188
|
+
# HTTP header 'Accept' (if needed)
|
189
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
190
|
+
# HTTP header 'Content-Type'
|
191
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
192
|
+
|
193
|
+
# form parameters
|
194
|
+
form_params = opts[:form_params] || {}
|
195
|
+
|
196
|
+
# http body (model)
|
197
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
198
|
+
|
199
|
+
return_type = opts[:return_type] || 'Object'
|
200
|
+
|
201
|
+
auth_names = opts[:auth_names] || ['TokenAuth']
|
202
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
203
|
+
:header_params => header_params,
|
204
|
+
:query_params => query_params,
|
205
|
+
:form_params => form_params,
|
206
|
+
:body => post_body,
|
207
|
+
:auth_names => auth_names,
|
208
|
+
:return_type => return_type)
|
209
|
+
|
210
|
+
if @api_client.config.debugging
|
211
|
+
@api_client.config.logger.debug "API called: FieldsApi#index_update_html_strip_fields\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
212
|
+
end
|
213
|
+
return data, status_code, headers
|
214
|
+
end
|
215
|
+
# 获取索引字段的所有值列表
|
216
|
+
# @param app 应用标识
|
217
|
+
# @param index 索引编号
|
218
|
+
# @param field 字段名称
|
219
|
+
# @param size values count
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @return [Array<ValueOfField>]
|
222
|
+
def index_values_of_field(app, index, field, size, opts = {})
|
223
|
+
data, _status_code, _headers = index_values_of_field_with_http_info(app, index, field, size, opts)
|
224
|
+
data
|
225
|
+
end
|
226
|
+
|
227
|
+
# 获取索引字段的所有值列表
|
228
|
+
# @param app 应用标识
|
229
|
+
# @param index 索引编号
|
230
|
+
# @param field 字段名称
|
231
|
+
# @param size values count
|
232
|
+
# @param [Hash] opts the optional parameters
|
233
|
+
# @return [Array<(Array<ValueOfField>, Integer, Hash)>] Array<ValueOfField> data, response status code and response headers
|
234
|
+
def index_values_of_field_with_http_info(app, index, field, size, opts = {})
|
235
|
+
if @api_client.config.debugging
|
236
|
+
@api_client.config.logger.debug 'Calling API: FieldsApi.index_values_of_field ...'
|
237
|
+
end
|
238
|
+
# verify the required parameter 'app' is set
|
239
|
+
if @api_client.config.client_side_validation && app.nil?
|
240
|
+
fail ArgumentError, "Missing the required parameter 'app' when calling FieldsApi.index_values_of_field"
|
241
|
+
end
|
242
|
+
# verify the required parameter 'index' is set
|
243
|
+
if @api_client.config.client_side_validation && index.nil?
|
244
|
+
fail ArgumentError, "Missing the required parameter 'index' when calling FieldsApi.index_values_of_field"
|
245
|
+
end
|
246
|
+
# verify the required parameter 'field' is set
|
247
|
+
if @api_client.config.client_side_validation && field.nil?
|
248
|
+
fail ArgumentError, "Missing the required parameter 'field' when calling FieldsApi.index_values_of_field"
|
249
|
+
end
|
250
|
+
# verify the required parameter 'size' is set
|
251
|
+
if @api_client.config.client_side_validation && size.nil?
|
252
|
+
fail ArgumentError, "Missing the required parameter 'size' when calling FieldsApi.index_values_of_field"
|
253
|
+
end
|
254
|
+
# resource path
|
255
|
+
local_var_path = '/indices/{app}/{index}/fields/{field}'.sub('{' + 'app' + '}', app.to_s).sub('{' + 'index' + '}', index.to_s).sub('{' + 'field' + '}', field.to_s)
|
256
|
+
|
257
|
+
# query parameters
|
258
|
+
query_params = opts[:query_params] || {}
|
259
|
+
query_params[:'size'] = size
|
260
|
+
|
261
|
+
# header parameters
|
262
|
+
header_params = opts[:header_params] || {}
|
263
|
+
# HTTP header 'Accept' (if needed)
|
264
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
265
|
+
|
266
|
+
# form parameters
|
267
|
+
form_params = opts[:form_params] || {}
|
268
|
+
|
269
|
+
# http body (model)
|
270
|
+
post_body = opts[:body]
|
271
|
+
|
272
|
+
return_type = opts[:return_type] || 'Array<ValueOfField>'
|
273
|
+
|
274
|
+
auth_names = opts[:auth_names] || ['TokenAuth']
|
275
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
276
|
+
:header_params => header_params,
|
277
|
+
:query_params => query_params,
|
278
|
+
:form_params => form_params,
|
279
|
+
:body => post_body,
|
280
|
+
:auth_names => auth_names,
|
281
|
+
:return_type => return_type)
|
282
|
+
|
283
|
+
if @api_client.config.debugging
|
284
|
+
@api_client.config.logger.debug "API called: FieldsApi#index_values_of_field\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
285
|
+
end
|
286
|
+
return data, status_code, headers
|
287
|
+
end
|
288
|
+
end
|
289
|
+
end
|
@@ -0,0 +1,326 @@
|
|
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
|
+
module IndexeaClient
|
13
|
+
class GlobalApi
|
14
|
+
attr_accessor :api_client
|
15
|
+
|
16
|
+
def initialize(api_client = ApiClient.default)
|
17
|
+
@api_client = api_client
|
18
|
+
end
|
19
|
+
# 接口定义(JSON)
|
20
|
+
# 获取 OpenAPI 接口定义(JSON)
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [Object]
|
23
|
+
def json(opts = {})
|
24
|
+
data, _status_code, _headers = json_with_http_info(opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# 接口定义(JSON)
|
29
|
+
# 获取 OpenAPI 接口定义(JSON)
|
30
|
+
# @param [Hash] opts the optional parameters
|
31
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
32
|
+
def json_with_http_info(opts = {})
|
33
|
+
if @api_client.config.debugging
|
34
|
+
@api_client.config.logger.debug 'Calling API: GlobalApi.json ...'
|
35
|
+
end
|
36
|
+
# resource path
|
37
|
+
local_var_path = '/json'
|
38
|
+
|
39
|
+
# query parameters
|
40
|
+
query_params = opts[:query_params] || {}
|
41
|
+
|
42
|
+
# header parameters
|
43
|
+
header_params = opts[:header_params] || {}
|
44
|
+
# HTTP header 'Accept' (if needed)
|
45
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
46
|
+
|
47
|
+
# form parameters
|
48
|
+
form_params = opts[:form_params] || {}
|
49
|
+
|
50
|
+
# http body (model)
|
51
|
+
post_body = opts[:body]
|
52
|
+
|
53
|
+
return_type = opts[:return_type] || 'Object'
|
54
|
+
|
55
|
+
auth_names = opts[:auth_names] || []
|
56
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
57
|
+
:header_params => header_params,
|
58
|
+
:query_params => query_params,
|
59
|
+
:form_params => form_params,
|
60
|
+
:body => post_body,
|
61
|
+
:auth_names => auth_names,
|
62
|
+
:return_type => return_type)
|
63
|
+
|
64
|
+
if @api_client.config.debugging
|
65
|
+
@api_client.config.logger.debug "API called: GlobalApi#json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
66
|
+
end
|
67
|
+
return data, status_code, headers
|
68
|
+
end
|
69
|
+
# 系统全局配置接口
|
70
|
+
# @param name
|
71
|
+
# @param keys 配置项名,多个配置项请使用逗号隔开
|
72
|
+
# @param [Hash] opts the optional parameters
|
73
|
+
# @return [Object]
|
74
|
+
def options_get(name, keys, opts = {})
|
75
|
+
data, _status_code, _headers = options_get_with_http_info(name, keys, opts)
|
76
|
+
data
|
77
|
+
end
|
78
|
+
|
79
|
+
# 系统全局配置接口
|
80
|
+
# @param name
|
81
|
+
# @param keys 配置项名,多个配置项请使用逗号隔开
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
84
|
+
def options_get_with_http_info(name, keys, opts = {})
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug 'Calling API: GlobalApi.options_get ...'
|
87
|
+
end
|
88
|
+
# verify the required parameter 'name' is set
|
89
|
+
if @api_client.config.client_side_validation && name.nil?
|
90
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling GlobalApi.options_get"
|
91
|
+
end
|
92
|
+
# verify the required parameter 'keys' is set
|
93
|
+
if @api_client.config.client_side_validation && keys.nil?
|
94
|
+
fail ArgumentError, "Missing the required parameter 'keys' when calling GlobalApi.options_get"
|
95
|
+
end
|
96
|
+
# resource path
|
97
|
+
local_var_path = '/options'
|
98
|
+
|
99
|
+
# query parameters
|
100
|
+
query_params = opts[:query_params] || {}
|
101
|
+
query_params[:'name'] = name
|
102
|
+
query_params[:'keys'] = keys
|
103
|
+
|
104
|
+
# header parameters
|
105
|
+
header_params = opts[:header_params] || {}
|
106
|
+
# HTTP header 'Accept' (if needed)
|
107
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
108
|
+
|
109
|
+
# form parameters
|
110
|
+
form_params = opts[:form_params] || {}
|
111
|
+
|
112
|
+
# http body (model)
|
113
|
+
post_body = opts[:body]
|
114
|
+
|
115
|
+
return_type = opts[:return_type] || 'Object'
|
116
|
+
|
117
|
+
auth_names = opts[:auth_names] || []
|
118
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
119
|
+
:header_params => header_params,
|
120
|
+
:query_params => query_params,
|
121
|
+
:form_params => form_params,
|
122
|
+
:body => post_body,
|
123
|
+
:auth_names => auth_names,
|
124
|
+
:return_type => return_type)
|
125
|
+
|
126
|
+
if @api_client.config.debugging
|
127
|
+
@api_client.config.logger.debug "API called: GlobalApi#options_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
128
|
+
end
|
129
|
+
return data, status_code, headers
|
130
|
+
end
|
131
|
+
# 数据库服务状态测试
|
132
|
+
# @param [Hash] opts the optional parameters
|
133
|
+
# @return [String]
|
134
|
+
def status_database(opts = {})
|
135
|
+
data, _status_code, _headers = status_database_with_http_info(opts)
|
136
|
+
data
|
137
|
+
end
|
138
|
+
|
139
|
+
# 数据库服务状态测试
|
140
|
+
# @param [Hash] opts the optional parameters
|
141
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
142
|
+
def status_database_with_http_info(opts = {})
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug 'Calling API: GlobalApi.status_database ...'
|
145
|
+
end
|
146
|
+
# resource path
|
147
|
+
local_var_path = '/status/database'
|
148
|
+
|
149
|
+
# query parameters
|
150
|
+
query_params = opts[:query_params] || {}
|
151
|
+
|
152
|
+
# header parameters
|
153
|
+
header_params = opts[:header_params] || {}
|
154
|
+
# HTTP header 'Accept' (if needed)
|
155
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
|
156
|
+
|
157
|
+
# form parameters
|
158
|
+
form_params = opts[:form_params] || {}
|
159
|
+
|
160
|
+
# http body (model)
|
161
|
+
post_body = opts[:body]
|
162
|
+
|
163
|
+
return_type = opts[:return_type] || 'String'
|
164
|
+
|
165
|
+
auth_names = opts[:auth_names] || []
|
166
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
167
|
+
:header_params => header_params,
|
168
|
+
:query_params => query_params,
|
169
|
+
:form_params => form_params,
|
170
|
+
:body => post_body,
|
171
|
+
:auth_names => auth_names,
|
172
|
+
:return_type => return_type)
|
173
|
+
|
174
|
+
if @api_client.config.debugging
|
175
|
+
@api_client.config.logger.debug "API called: GlobalApi#status_database\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
176
|
+
end
|
177
|
+
return data, status_code, headers
|
178
|
+
end
|
179
|
+
# 搜索引擎状态测试
|
180
|
+
# @param [Hash] opts the optional parameters
|
181
|
+
# @return [String]
|
182
|
+
def status_engine(opts = {})
|
183
|
+
data, _status_code, _headers = status_engine_with_http_info(opts)
|
184
|
+
data
|
185
|
+
end
|
186
|
+
|
187
|
+
# 搜索引擎状态测试
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
190
|
+
def status_engine_with_http_info(opts = {})
|
191
|
+
if @api_client.config.debugging
|
192
|
+
@api_client.config.logger.debug 'Calling API: GlobalApi.status_engine ...'
|
193
|
+
end
|
194
|
+
# resource path
|
195
|
+
local_var_path = '/status/engine'
|
196
|
+
|
197
|
+
# query parameters
|
198
|
+
query_params = opts[:query_params] || {}
|
199
|
+
|
200
|
+
# header parameters
|
201
|
+
header_params = opts[:header_params] || {}
|
202
|
+
# HTTP header 'Accept' (if needed)
|
203
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
|
204
|
+
|
205
|
+
# form parameters
|
206
|
+
form_params = opts[:form_params] || {}
|
207
|
+
|
208
|
+
# http body (model)
|
209
|
+
post_body = opts[:body]
|
210
|
+
|
211
|
+
return_type = opts[:return_type] || 'String'
|
212
|
+
|
213
|
+
auth_names = opts[:auth_names] || []
|
214
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
215
|
+
:header_params => header_params,
|
216
|
+
:query_params => query_params,
|
217
|
+
:form_params => form_params,
|
218
|
+
:body => post_body,
|
219
|
+
:auth_names => auth_names,
|
220
|
+
:return_type => return_type)
|
221
|
+
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug "API called: GlobalApi#status_engine\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
224
|
+
end
|
225
|
+
return data, status_code, headers
|
226
|
+
end
|
227
|
+
# 接口欢迎信息
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @return [String]
|
230
|
+
def welcome(opts = {})
|
231
|
+
data, _status_code, _headers = welcome_with_http_info(opts)
|
232
|
+
data
|
233
|
+
end
|
234
|
+
|
235
|
+
# 接口欢迎信息
|
236
|
+
# @param [Hash] opts the optional parameters
|
237
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
238
|
+
def welcome_with_http_info(opts = {})
|
239
|
+
if @api_client.config.debugging
|
240
|
+
@api_client.config.logger.debug 'Calling API: GlobalApi.welcome ...'
|
241
|
+
end
|
242
|
+
# resource path
|
243
|
+
local_var_path = '/'
|
244
|
+
|
245
|
+
# query parameters
|
246
|
+
query_params = opts[:query_params] || {}
|
247
|
+
|
248
|
+
# header parameters
|
249
|
+
header_params = opts[:header_params] || {}
|
250
|
+
# HTTP header 'Accept' (if needed)
|
251
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'text/html', 'application/json', 'application/x-yaml'])
|
252
|
+
|
253
|
+
# form parameters
|
254
|
+
form_params = opts[:form_params] || {}
|
255
|
+
|
256
|
+
# http body (model)
|
257
|
+
post_body = opts[:body]
|
258
|
+
|
259
|
+
return_type = opts[:return_type] || 'String'
|
260
|
+
|
261
|
+
auth_names = opts[:auth_names] || []
|
262
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
263
|
+
:header_params => header_params,
|
264
|
+
:query_params => query_params,
|
265
|
+
:form_params => form_params,
|
266
|
+
:body => post_body,
|
267
|
+
:auth_names => auth_names,
|
268
|
+
:return_type => return_type)
|
269
|
+
|
270
|
+
if @api_client.config.debugging
|
271
|
+
@api_client.config.logger.debug "API called: GlobalApi#welcome\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
272
|
+
end
|
273
|
+
return data, status_code, headers
|
274
|
+
end
|
275
|
+
# 接口定义(YAML)
|
276
|
+
# 获取 OpenAPI 接口定义(YAML)
|
277
|
+
# @param [Hash] opts the optional parameters
|
278
|
+
# @return [String]
|
279
|
+
def yaml(opts = {})
|
280
|
+
data, _status_code, _headers = yaml_with_http_info(opts)
|
281
|
+
data
|
282
|
+
end
|
283
|
+
|
284
|
+
# 接口定义(YAML)
|
285
|
+
# 获取 OpenAPI 接口定义(YAML)
|
286
|
+
# @param [Hash] opts the optional parameters
|
287
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
288
|
+
def yaml_with_http_info(opts = {})
|
289
|
+
if @api_client.config.debugging
|
290
|
+
@api_client.config.logger.debug 'Calling API: GlobalApi.yaml ...'
|
291
|
+
end
|
292
|
+
# resource path
|
293
|
+
local_var_path = '/yaml'
|
294
|
+
|
295
|
+
# query parameters
|
296
|
+
query_params = opts[:query_params] || {}
|
297
|
+
|
298
|
+
# header parameters
|
299
|
+
header_params = opts[:header_params] || {}
|
300
|
+
# HTTP header 'Accept' (if needed)
|
301
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/x-yaml'])
|
302
|
+
|
303
|
+
# form parameters
|
304
|
+
form_params = opts[:form_params] || {}
|
305
|
+
|
306
|
+
# http body (model)
|
307
|
+
post_body = opts[:body]
|
308
|
+
|
309
|
+
return_type = opts[:return_type] || 'String'
|
310
|
+
|
311
|
+
auth_names = opts[:auth_names] || []
|
312
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
313
|
+
:header_params => header_params,
|
314
|
+
:query_params => query_params,
|
315
|
+
:form_params => form_params,
|
316
|
+
:body => post_body,
|
317
|
+
:auth_names => auth_names,
|
318
|
+
:return_type => return_type)
|
319
|
+
|
320
|
+
if @api_client.config.debugging
|
321
|
+
@api_client.config.logger.debug "API called: GlobalApi#yaml\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
322
|
+
end
|
323
|
+
return data, status_code, headers
|
324
|
+
end
|
325
|
+
end
|
326
|
+
end
|