another rollback option

This commit is contained in:
William Cheng
2024-03-24 19:03:00 +08:00
parent 0596817264
commit 2cacac8aea
67 changed files with 1518 additions and 1507 deletions

View File

@@ -100,7 +100,7 @@ Class | Method | HTTP request | Description
*OpenapiClient::FormApi* | [**test_form_object_multipart**](docs/FormApi.md#test_form_object_multipart) | **POST** /form/object/multipart | Test form parameter(s) for multipart schema
*OpenapiClient::FormApi* | [**test_form_oneof**](docs/FormApi.md#test_form_oneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
*OpenapiClient::HeaderApi* | [**test_header_integer_boolean_string_enums**](docs/HeaderApi.md#test_header_integer_boolean_string_enums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
*OpenapiClient::PathApi* | [**tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](docs/PathApi.md#tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
*OpenapiClient::PathApi* | [**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](docs/PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
*OpenapiClient::QueryApi* | [**test_enum_ref_string**](docs/QueryApi.md#test_enum_ref_string) | **GET** /query/enum_ref_string | Test query parameter(s)
*OpenapiClient::QueryApi* | [**test_query_datetime_date_string**](docs/QueryApi.md#test_query_datetime_date_string) | **GET** /query/datetime/date/string | Test query parameter(s)
*OpenapiClient::QueryApi* | [**test_query_integer_boolean_string**](docs/QueryApi.md#test_query_integer_boolean_string) | **GET** /query/integer/boolean/string | Test query parameter(s)

View File

@@ -4,12 +4,12 @@ All URIs are relative to *http://localhost:3000*
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](PathApi.md#tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
| [**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
## tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path
## tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path
> String tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
> String tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
Test path parameter(s)
@@ -29,28 +29,28 @@ enum_ref_string_path = OpenapiClient::StringEnumRef::SUCCESS # StringEnumRef |
begin
# Test path parameter(s)
result = api_instance.tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
result = api_instance.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
p result
rescue OpenapiClient::ApiError => e
puts "Error when calling PathApi->tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path: #{e}"
puts "Error when calling PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path: #{e}"
end
```
#### Using the tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info variant
#### Using the tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info variant
This returns an Array which contains the response data, status code and headers.
> <Array(String, Integer, Hash)> tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
> <Array(String, Integer, Hash)> tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
```ruby
begin
# Test path parameter(s)
data, status_code, headers = api_instance.tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
data, status_code, headers = api_instance.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
p status_code # => 2xx
p headers # => { ... }
p data # => String
rescue OpenapiClient::ApiError => e
puts "Error when calling PathApi->tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info: #{e}"
puts "Error when calling PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info: #{e}"
end
```

View File

@@ -27,8 +27,8 @@ module OpenapiClient
# @param enum_ref_string_path [StringEnumRef]
# @param [Hash] opts the optional parameters
# @return [String]
def tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, opts = {})
data, _status_code, _headers = tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, opts)
def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, opts = {})
data, _status_code, _headers = tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, opts)
data
end
@@ -40,21 +40,21 @@ module OpenapiClient
# @param enum_ref_string_path [StringEnumRef]
# @param [Hash] opts the optional parameters
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
def tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, opts = {})
def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PathApi.tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path ...'
@api_client.config.logger.debug 'Calling API: PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path ...'
end
# verify the required parameter 'path_string' is set
if @api_client.config.client_side_validation && path_string.nil?
fail ArgumentError, "Missing the required parameter 'path_string' when calling PathApi.tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
fail ArgumentError, "Missing the required parameter 'path_string' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
end
# verify the required parameter 'path_integer' is set
if @api_client.config.client_side_validation && path_integer.nil?
fail ArgumentError, "Missing the required parameter 'path_integer' when calling PathApi.tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
fail ArgumentError, "Missing the required parameter 'path_integer' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
end
# verify the required parameter 'enum_nonref_string_path' is set
if @api_client.config.client_side_validation && enum_nonref_string_path.nil?
fail ArgumentError, "Missing the required parameter 'enum_nonref_string_path' when calling PathApi.tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
fail ArgumentError, "Missing the required parameter 'enum_nonref_string_path' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
end
# verify enum value
allowable_values = ["success", "failure", "unclassified"]
@@ -63,7 +63,7 @@ module OpenapiClient
end
# verify the required parameter 'enum_ref_string_path' is set
if @api_client.config.client_side_validation && enum_ref_string_path.nil?
fail ArgumentError, "Missing the required parameter 'enum_ref_string_path' when calling PathApi.tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
fail ArgumentError, "Missing the required parameter 'enum_ref_string_path' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
end
# resource path
local_var_path = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}'.sub('{' + 'path_string' + '}', CGI.escape(path_string.to_s)).sub('{' + 'path_integer' + '}', CGI.escape(path_integer.to_s)).sub('{' + 'enum_nonref_string_path' + '}', CGI.escape(enum_nonref_string_path.to_s)).sub('{' + 'enum_ref_string_path' + '}', CGI.escape(enum_ref_string_path.to_s))
@@ -89,7 +89,7 @@ module OpenapiClient
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
:operation => :"PathApi.tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path",
:operation => :"PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -100,7 +100,7 @@ module OpenapiClient
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PathApi#tests_path_stringpath_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
@api_client.config.logger.debug "API called: PathApi#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end