fix defeault rspec test for ruby, update security petstore

This commit is contained in:
wing328
2016-07-14 18:22:01 +08:00
parent 748f4b21f4
commit 069a6b2917
18 changed files with 167 additions and 295 deletions

View File

@@ -1,16 +1,16 @@
# Petstore::FakeApi
All URIs are relative to *https://petstore.swagger.io */ ' " =end/v2 */ ' " =end*
All URIs are relative to *https://petstore.swagger.io */ ' \" =_end -- \\r\\n \\n \\r/v2 */ ' \" =_end -- \\r\\n \\n \\r*
Method | HTTP request | Description
------------- | ------------- | -------------
[**test_code_inject____end**](FakeApi.md#test_code_inject____end) | **PUT** /fake | To test code injection */ ' \"
[**test_code_inject____end__rn_n_r**](FakeApi.md#test_code_inject____end__rn_n_r) | **PUT** /fake | To test code injection */ ' \" =_end -- \\r\\n \\n \\r
# **test_code_inject____end**
> test_code_inject____end(opts)
# **test_code_inject____end__rn_n_r**
> test_code_inject____end__rn_n_r(opts)
To test code injection */ ' \"
To test code injection */ ' \" =_end -- \\r\\n \\n \\r
### Example
```ruby
@@ -20,14 +20,14 @@ require 'petstore'
api_instance = Petstore::FakeApi.new
opts = {
test_code_inject____end: "test_code_inject____end_example" # String | To test code injection */ ' \"
test_code_inject____end____rn_n_r: "test_code_inject____end____rn_n_r_example" # String | To test code injection */ ' \" =_end -- \\r\\n \\n \\r
}
begin
#To test code injection */ ' \"
api_instance.test_code_inject____end(opts)
#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: #{e}"
puts "Exception when calling FakeApi->test_code_inject____end__rn_n_r: #{e}"
end
```
@@ -35,7 +35,7 @@ end
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**test_code_inject____end** | **String**| To test code injection */ ' \" | [optional]
**test_code_inject____end____rn_n_r** | **String**| To test code injection */ ' \" =_end -- \\r\\n \\n \\r | [optional]
### Return type
@@ -47,8 +47,8 @@ No authorization required
### HTTP request headers
- **Content-Type**: application/json, */ " =end
- **Accept**: application/json, */ " =end
- **Content-Type**: application/json, */ \" =_end --
- **Accept**: application/json, */ \" =_end --