Akihito Nakano 8bddf12e05 [Ruby] Make rake tasks required to publish gem available (#424)
* Make tasks reuired to publish gem available

https://github.com/OpenAPITools/openapi-generator/issues/423

* Update samples

- bin/ruby-petstore.sh
- bin/security/ruby-petstore.sh
2018-07-01 14:36:48 +08:00

1.3 KiB

Petstore::FakeApi

All URIs are relative to *petstore.swagger.io */ ' " =_end -- \r\n \n \r/v2 / ' " =_end -- \r\n \n \r

Method HTTP request Description
test_code_inject____end__rn_n_r PUT /fake To test code injection */ ' " =_end -- \r\n \n \r

test_code_inject____end__rn_n_r

test_code_inject____end__rn_n_r(opts)

To test code injection */ ' " =_end -- \r\n \n \r

Example

# load the gem
require 'petstore'

api_instance = Petstore::FakeApi.new
opts = {
  unknown_base_type: Petstore::UNKNOWN_BASE_TYPE.new # Object | 
}

begin
  #To test code injection */ ' \" =_end -- \\r\\n \\n \\r
  api_instance.test_code_inject____end__rn_n_r(opts)
rescue Petstore::ApiError => e
  puts "Exception when calling FakeApi->test_code_inject____end__rn_n_r: #{e}"
end

Parameters

Name Type Description Notes
unknown_base_type Object [optional]

Return type

nil (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, */ " =_end --
  • Accept: Not defined