forked from loafle/openapi-generator-original
update user-agent for Ruby
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**photo_urls** | **Array<String>** | | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**tags** | [**Array<Tag>**](Tag.md) | | [optional]
|
||||
**id** | **Integer** | |
|
||||
**category** | **Object** | | [optional]
|
||||
**tags** | [**Array<Tag>**](Tag.md) | | [optional]
|
||||
**status** | **String** | pet status in the store | [optional]
|
||||
**name** | **String** | | [optional]
|
||||
**photo_urls** | **Array<String>** | | [optional]
|
||||
|
||||
|
||||
|
||||
@@ -284,13 +284,13 @@ Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API erro
|
||||
require 'petstore'
|
||||
|
||||
Petstore.configure do |config|
|
||||
# Configure OAuth2 access token for authorization: petstore_auth
|
||||
config.access_token = "YOUR ACCESS TOKEN"
|
||||
|
||||
# Configure API key authorization: api_key
|
||||
config.api_key['api_key'] = "YOUR API KEY"
|
||||
# Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to nil)
|
||||
#config.api_key_prefix['api_key'] = "Token"
|
||||
|
||||
# Configure OAuth2 access token for authorization: petstore_auth
|
||||
config.access_token = "YOUR ACCESS TOKEN"
|
||||
end
|
||||
|
||||
api = Petstore::PetApi.new
|
||||
@@ -318,7 +318,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Authorization
|
||||
|
||||
[petstore_auth](../README.md#petstore_auth), [api_key](../README.md#api_key)
|
||||
[api_key](../README.md#api_key), [petstore_auth](../README.md#petstore_auth)
|
||||
|
||||
### HTTP reuqest headers
|
||||
|
||||
@@ -339,13 +339,13 @@ Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API erro
|
||||
require 'petstore'
|
||||
|
||||
Petstore.configure do |config|
|
||||
# Configure OAuth2 access token for authorization: petstore_auth
|
||||
config.access_token = "YOUR ACCESS TOKEN"
|
||||
|
||||
# Configure API key authorization: api_key
|
||||
config.api_key['api_key'] = "YOUR API KEY"
|
||||
# Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to nil)
|
||||
#config.api_key_prefix['api_key'] = "Token"
|
||||
|
||||
# Configure OAuth2 access token for authorization: petstore_auth
|
||||
config.access_token = "YOUR ACCESS TOKEN"
|
||||
end
|
||||
|
||||
api = Petstore::PetApi.new
|
||||
@@ -373,7 +373,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Authorization
|
||||
|
||||
[petstore_auth](../README.md#petstore_auth), [api_key](../README.md#api_key)
|
||||
[api_key](../README.md#api_key), [petstore_auth](../README.md#petstore_auth)
|
||||
|
||||
### HTTP reuqest headers
|
||||
|
||||
@@ -394,13 +394,13 @@ Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API erro
|
||||
require 'petstore'
|
||||
|
||||
Petstore.configure do |config|
|
||||
# Configure OAuth2 access token for authorization: petstore_auth
|
||||
config.access_token = "YOUR ACCESS TOKEN"
|
||||
|
||||
# Configure API key authorization: api_key
|
||||
config.api_key['api_key'] = "YOUR API KEY"
|
||||
# Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to nil)
|
||||
#config.api_key_prefix['api_key'] = "Token"
|
||||
|
||||
# Configure OAuth2 access token for authorization: petstore_auth
|
||||
config.access_token = "YOUR ACCESS TOKEN"
|
||||
end
|
||||
|
||||
api = Petstore::PetApi.new
|
||||
@@ -428,7 +428,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Authorization
|
||||
|
||||
[petstore_auth](../README.md#petstore_auth), [api_key](../README.md#api_key)
|
||||
[api_key](../README.md#api_key), [petstore_auth](../README.md#petstore_auth)
|
||||
|
||||
### HTTP reuqest headers
|
||||
|
||||
|
||||
@@ -218,15 +218,15 @@ For valid response try integer IDs with value <= 5 or > 10. Other values w
|
||||
require 'petstore'
|
||||
|
||||
Petstore.configure do |config|
|
||||
# Configure API key authorization: test_api_key_query
|
||||
config.api_key['test_api_key_query'] = "YOUR API KEY"
|
||||
# Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to nil)
|
||||
#config.api_key_prefix['test_api_key_query'] = "Token"
|
||||
|
||||
# Configure API key authorization: test_api_key_header
|
||||
config.api_key['test_api_key_header'] = "YOUR API KEY"
|
||||
# Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to nil)
|
||||
#config.api_key_prefix['test_api_key_header'] = "Token"
|
||||
|
||||
# Configure API key authorization: test_api_key_query
|
||||
config.api_key['test_api_key_query'] = "YOUR API KEY"
|
||||
# Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to nil)
|
||||
#config.api_key_prefix['test_api_key_query'] = "Token"
|
||||
end
|
||||
|
||||
api = Petstore::StoreApi.new
|
||||
@@ -254,7 +254,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Authorization
|
||||
|
||||
[test_api_key_query](../README.md#test_api_key_query), [test_api_key_header](../README.md#test_api_key_header)
|
||||
[test_api_key_header](../README.md#test_api_key_header), [test_api_key_query](../README.md#test_api_key_query)
|
||||
|
||||
### HTTP reuqest headers
|
||||
|
||||
|
||||
@@ -23,8 +23,6 @@ This can only be done by the logged in user.
|
||||
|
||||
### Example
|
||||
```ruby
|
||||
require 'petstore'
|
||||
|
||||
api = Petstore::UserApi.new
|
||||
|
||||
opts = {
|
||||
@@ -68,8 +66,6 @@ Creates list of users with given input array
|
||||
|
||||
### Example
|
||||
```ruby
|
||||
require 'petstore'
|
||||
|
||||
api = Petstore::UserApi.new
|
||||
|
||||
opts = {
|
||||
@@ -113,8 +109,6 @@ Creates list of users with given input array
|
||||
|
||||
### Example
|
||||
```ruby
|
||||
require 'petstore'
|
||||
|
||||
api = Petstore::UserApi.new
|
||||
|
||||
opts = {
|
||||
@@ -158,8 +152,6 @@ This can only be done by the logged in user.
|
||||
|
||||
### Example
|
||||
```ruby
|
||||
require 'petstore'
|
||||
|
||||
Petstore.configure do |config|
|
||||
# Configure HTTP basic authorization: test_http_basic
|
||||
config.username = 'YOUR USERNAME'
|
||||
@@ -208,8 +200,6 @@ Get user by user name
|
||||
|
||||
### Example
|
||||
```ruby
|
||||
require 'petstore'
|
||||
|
||||
api = Petstore::UserApi.new
|
||||
|
||||
username = "username_example" # [String] The name that needs to be fetched. Use user1 for testing.
|
||||
@@ -217,7 +207,6 @@ username = "username_example" # [String] The name that needs to be fetched. Use
|
||||
|
||||
begin
|
||||
result = api.get_user_by_name(username)
|
||||
p result
|
||||
rescue Petstore::ApiError => e
|
||||
puts "Exception when calling get_user_by_name: #{e}"
|
||||
end
|
||||
@@ -253,8 +242,6 @@ Logs user into the system
|
||||
|
||||
### Example
|
||||
```ruby
|
||||
require 'petstore'
|
||||
|
||||
api = Petstore::UserApi.new
|
||||
|
||||
opts = {
|
||||
@@ -264,7 +251,6 @@ opts = {
|
||||
|
||||
begin
|
||||
result = api.login_user(opts)
|
||||
p result
|
||||
rescue Petstore::ApiError => e
|
||||
puts "Exception when calling login_user: #{e}"
|
||||
end
|
||||
@@ -301,8 +287,6 @@ Logs out current logged in user session
|
||||
|
||||
### Example
|
||||
```ruby
|
||||
require 'petstore'
|
||||
|
||||
api = Petstore::UserApi.new
|
||||
|
||||
begin
|
||||
@@ -339,8 +323,6 @@ This can only be done by the logged in user.
|
||||
|
||||
### Example
|
||||
```ruby
|
||||
require 'petstore'
|
||||
|
||||
api = Petstore::UserApi.new
|
||||
|
||||
username = "username_example" # [String] name that need to be deleted
|
||||
|
||||
Reference in New Issue
Block a user