You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/README.md
+13-27Lines changed: 13 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
3
3
Petstore - the Ruby gem for the Swagger Petstore
4
4
5
-
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \"\\
5
+
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \"\\
6
6
7
7
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
9
9
- API version: 1.0.0
10
10
- Package version: 1.0.0
11
-
- Build date: 2016-06-28T15:19:55.521+10:00
11
+
- Build date: 2016-06-28T17:36:56.204+08:00
12
12
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
*Petstore::FakeApi* | [**test_code_inject__end**](docs/FakeApi.md#test_code_inject__end) | **PUT** /fake | To test code injection */
94
80
*Petstore::FakeApi* | [**test_endpoint_parameters**](docs/FakeApi.md#test_endpoint_parameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
95
81
*Petstore::FakeApi* | [**test_enum_query_parameters**](docs/FakeApi.md#test_enum_query_parameters) | **GET** /fake | To test enum query parameters
96
82
*Petstore::PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/docs/FakeApi.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,56 @@ All URIs are relative to *http://petstore.swagger.io/v2*
4
4
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
+
[**test_code_inject__end**](FakeApi.md#test_code_inject__end) | **PUT** /fake | To test code injection */
7
8
[**test_endpoint_parameters**](FakeApi.md#test_endpoint_parameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
8
9
[**test_enum_query_parameters**](FakeApi.md#test_enum_query_parameters) | **GET** /fake | To test enum query parameters
9
10
10
11
12
+
# **test_code_inject__end**
13
+
> test_code_inject__end(opts)
14
+
15
+
To test code injection */
16
+
17
+
### Example
18
+
```ruby
19
+
# load the gem
20
+
require'petstore'
21
+
22
+
api_instance =Petstore::FakeApi.new
23
+
24
+
opts = {
25
+
test_code_inject__end:"test_code_inject__end_example"# String | To test code injection */
26
+
}
27
+
28
+
begin
29
+
#To test code injection */
30
+
api_instance.test_code_inject__end(opts)
31
+
rescuePetstore::ApiError => e
32
+
puts"Exception when calling FakeApi->test_code_inject__end: #{e}"
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/lib/petstore.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
=begin
2
2
#Swagger Petstore
3
3
4
-
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
4
+
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/lib/petstore/api/fake_api.rb
+56-1Lines changed: 56 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
=begin
2
2
#Swagger Petstore
3
3
4
-
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
4
+
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
=begin
2
2
#Swagger Petstore
3
3
4
-
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
4
+
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/lib/petstore/api/store_api.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
=begin
2
2
#Swagger Petstore
3
3
4
-
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
4
+
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/lib/petstore/api/user_api.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
=begin
2
2
#Swagger Petstore
3
3
4
-
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
4
+
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/lib/petstore/api_client.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
=begin
2
2
#Swagger Petstore
3
3
4
-
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
4
+
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/lib/petstore/api_error.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
=begin
2
2
#Swagger Petstore
3
3
4
-
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
4
+
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
Copy file name to clipboardExpand all lines: samples/client/petstore/ruby/lib/petstore/configuration.rb
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
=begin
2
2
#Swagger Petstore
3
3
4
-
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
4
+
#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
0 commit comments