samples/client/petstore/ruby/lib/petstore/api/fake_api.rb
# Test serialization of object with outer number type
# @param [Hash] opts the optional parameters
# @option opts [OuterComposite] :body Input composite as post body
# @return [Array<(OuterComposite, Fixnum, Hash)>] OuterComposite data, response status code and response headers
Test serialization of object with outer number type
Test serialization of object with outer number type
def fake_outer_composite_serialize_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: FakeApi.fake_outer_composite_serialize ...'
      end
      local_var_path = '/fake/outer/composite'
      query_params = {}
      header_params = {}
      form_params = {}
      post_body = @api_client.object_to_http_body(opts[:'body'])
      auth_names = []
      data, status_code, headers = @api_client.call_api(:POST, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'OuterComposite')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: FakeApi#fake_outer_composite_serialize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def fake_outer_composite_serialize_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: FakeApi.fake_outer_composite_serialize ...' end local_var_path = '/fake/outer/composite' query_params = { } header_params = { } form_params = { } post_body = @api_client . object_to_http_body ( opts [ :' body ' ] ) auth_names = [ ] data , status_code , headers = @api_client . call_api ( :POST , local_var_path , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => 'OuterComposite' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: FakeApi#fake_outer_composite_serialize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Test serialization of object with outer number type
Test serialization of object with outer number type
# resource path # query parameters # header parameters # form parameters # http body (model)
OuterComposite data, response status code and response headers
OuterComposite data response status code and response headers
Array<(OuterComposite, Fixnum, Hash)>
opts
:body Input composite as post body
: body Input composite as post body
opts the optional parameters
opts the optional parameters