[Java RESTEasy client] updating test to use the Java RESTEasy echo api client (#17367) (#17470)

* updating test to use the Java RESTEasy echo api client (#17367)

* regenerated samples

* set source and target to 1.8 to fix workflow failure, adapted parser
This commit is contained in:
Milad
2023-12-26 02:32:51 +01:00
committed by GitHub
parent a67e07e132
commit 8c014372aa
275 changed files with 9144 additions and 19842 deletions

View File

@@ -209,6 +209,71 @@ module OpenapiClient
return data, status_code, headers
end
# Test single binary in multipart mime
# Test single binary in multipart mime
# @param [Hash] opts the optional parameters
# @option opts [File] :my_file
# @return [String]
def test_body_multipart_formdata_single_binary(opts = {})
data, _status_code, _headers = test_body_multipart_formdata_single_binary_with_http_info(opts)
data
end
# Test single binary in multipart mime
# Test single binary in multipart mime
# @param [Hash] opts the optional parameters
# @option opts [File] :my_file
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
def test_body_multipart_formdata_single_binary_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: BodyApi.test_body_multipart_formdata_single_binary ...'
end
# resource path
local_var_path = '/body/application/octetstream/single_binary'
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['multipart/form-data'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end
# form parameters
form_params = opts[:form_params] || {}
form_params['my-file'] = opts[:'my_file'] if !opts[:'my_file'].nil?
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'String'
# auth_names
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:operation => :"BodyApi.test_body_multipart_formdata_single_binary",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: BodyApi#test_body_multipart_formdata_single_binary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Test body parameter(s)
# Test body parameter(s)
# @param [Hash] opts the optional parameters