forked from loafle/openapi-generator-original
update ruby accept header
This commit is contained in:
@@ -32,8 +32,17 @@ class UserApi
|
||||
query_param_keys.include? key
|
||||
end
|
||||
|
||||
# header parameters, if any
|
||||
# header parameters
|
||||
headers = {}
|
||||
|
||||
_header_accept = 'application/json, application/xml';
|
||||
if (_header_accept != '') {
|
||||
headerParams['Accept'] = _header_accept;
|
||||
}
|
||||
_header_content_type = [();
|
||||
headerParams['Content-Type'] = _header_content_type.length > 0 ? _header_content_type[0] : 'application/json';
|
||||
|
||||
|
||||
|
||||
|
||||
# http body (model)
|
||||
@@ -92,8 +101,17 @@ class UserApi
|
||||
query_param_keys.include? key
|
||||
end
|
||||
|
||||
# header parameters, if any
|
||||
# header parameters
|
||||
headers = {}
|
||||
|
||||
_header_accept = 'application/json, application/xml';
|
||||
if (_header_accept != '') {
|
||||
headerParams['Accept'] = _header_accept;
|
||||
}
|
||||
_header_content_type = [();
|
||||
headerParams['Content-Type'] = _header_content_type.length > 0 ? _header_content_type[0] : 'application/json';
|
||||
|
||||
|
||||
|
||||
|
||||
# http body (model)
|
||||
@@ -152,8 +170,17 @@ class UserApi
|
||||
query_param_keys.include? key
|
||||
end
|
||||
|
||||
# header parameters, if any
|
||||
# header parameters
|
||||
headers = {}
|
||||
|
||||
_header_accept = 'application/json, application/xml';
|
||||
if (_header_accept != '') {
|
||||
headerParams['Accept'] = _header_accept;
|
||||
}
|
||||
_header_content_type = [();
|
||||
headerParams['Content-Type'] = _header_content_type.length > 0 ? _header_content_type[0] : 'application/json';
|
||||
|
||||
|
||||
|
||||
|
||||
# http body (model)
|
||||
@@ -214,8 +241,17 @@ class UserApi
|
||||
query_param_keys.include? key
|
||||
end
|
||||
|
||||
# header parameters, if any
|
||||
# header parameters
|
||||
headers = {}
|
||||
|
||||
_header_accept = 'application/json, application/xml';
|
||||
if (_header_accept != '') {
|
||||
headerParams['Accept'] = _header_accept;
|
||||
}
|
||||
_header_content_type = [();
|
||||
headerParams['Content-Type'] = _header_content_type.length > 0 ? _header_content_type[0] : 'application/json';
|
||||
|
||||
|
||||
|
||||
|
||||
# http body (model)
|
||||
@@ -253,8 +289,17 @@ class UserApi
|
||||
query_param_keys.include? key
|
||||
end
|
||||
|
||||
# header parameters, if any
|
||||
# header parameters
|
||||
headers = {}
|
||||
|
||||
_header_accept = 'application/json, application/xml';
|
||||
if (_header_accept != '') {
|
||||
headerParams['Accept'] = _header_accept;
|
||||
}
|
||||
_header_content_type = [();
|
||||
headerParams['Content-Type'] = _header_content_type.length > 0 ? _header_content_type[0] : 'application/json';
|
||||
|
||||
|
||||
|
||||
|
||||
# http body (model)
|
||||
@@ -294,8 +339,17 @@ class UserApi
|
||||
query_param_keys.include? key
|
||||
end
|
||||
|
||||
# header parameters, if any
|
||||
# header parameters
|
||||
headers = {}
|
||||
|
||||
_header_accept = 'application/json, application/xml';
|
||||
if (_header_accept != '') {
|
||||
headerParams['Accept'] = _header_accept;
|
||||
}
|
||||
_header_content_type = [();
|
||||
headerParams['Content-Type'] = _header_content_type.length > 0 ? _header_content_type[0] : 'application/json';
|
||||
|
||||
|
||||
|
||||
|
||||
# http body (model)
|
||||
@@ -338,8 +392,17 @@ class UserApi
|
||||
query_param_keys.include? key
|
||||
end
|
||||
|
||||
# header parameters, if any
|
||||
# header parameters
|
||||
headers = {}
|
||||
|
||||
_header_accept = 'application/json, application/xml';
|
||||
if (_header_accept != '') {
|
||||
headerParams['Accept'] = _header_accept;
|
||||
}
|
||||
_header_content_type = [();
|
||||
headerParams['Content-Type'] = _header_content_type.length > 0 ? _header_content_type[0] : 'application/json';
|
||||
|
||||
|
||||
|
||||
|
||||
# http body (model)
|
||||
@@ -399,8 +462,17 @@ class UserApi
|
||||
query_param_keys.include? key
|
||||
end
|
||||
|
||||
# header parameters, if any
|
||||
# header parameters
|
||||
headers = {}
|
||||
|
||||
_header_accept = 'application/json, application/xml';
|
||||
if (_header_accept != '') {
|
||||
headerParams['Accept'] = _header_accept;
|
||||
}
|
||||
_header_content_type = [();
|
||||
headerParams['Content-Type'] = _header_content_type.length > 0 ? _header_content_type[0] : 'application/json';
|
||||
|
||||
|
||||
|
||||
|
||||
# http body (model)
|
||||
|
||||
Reference in New Issue
Block a user