lib/moonlogs-ruby/api/default_api.rb in moonlogs-ruby-0.6.0 vs lib/moonlogs-ruby/api/default_api.rb in moonlogs-ruby-0.6.1
- old
+ new
@@ -1,11 +1,11 @@
=begin
#Moonlogs
#Moonlogs API
-OpenAPI spec version: 0.6.0
+OpenAPI spec version: 0.6.1
Contact: shalpack@gmail.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.52
=end
@@ -696,20 +696,20 @@
end
return data, status_code, headers
end
# @param id
# @param [Hash] opts the optional parameters
- # @option opts [Schema] :body
+ # @option opts [SchemaRequest] :body
# @return [InlineResponse2001]
def api_schemas_id_put(id, opts = {})
data, _status_code, _headers = api_schemas_id_put_with_http_info(id, opts)
data
end
# @param id
# @param [Hash] opts the optional parameters
- # @option opts [Schema] :body
+ # @option opts [SchemaRequest] :body
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
def api_schemas_id_put_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: DefaultApi.api_schemas_id_put ...'
end
@@ -751,19 +751,19 @@
@api_client.config.logger.debug "API called: DefaultApi#api_schemas_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# @param [Hash] opts the optional parameters
- # @option opts [Schema] :body
+ # @option opts [SchemaRequest] :body
# @return [InlineResponse2001]
def api_schemas_post(opts = {})
data, _status_code, _headers = api_schemas_post_with_http_info(opts)
data
end
# @param [Hash] opts the optional parameters
- # @option opts [Schema] :body
+ # @option opts [SchemaRequest] :body
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
def api_schemas_post_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: DefaultApi.api_schemas_post ...'
end
@@ -897,20 +897,20 @@
@api_client.config.logger.debug "API called: DefaultApi#api_session_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# @param [Hash] opts the optional parameters
- # @option opts [User] :body
- # @return [User]
+ # @option opts [UserResponse] :body
+ # @return [UserResponse]
def api_setup_register_admin_post(opts = {})
data, _status_code, _headers = api_setup_register_admin_post_with_http_info(opts)
data
end
# @param [Hash] opts the optional parameters
- # @option opts [User] :body
- # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
+ # @option opts [UserResponse] :body
+ # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
def api_setup_register_admin_post_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: DefaultApi.api_setup_register_admin_post ...'
end
# resource path
@@ -930,11 +930,11 @@
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
- return_type = opts[:return_type] || 'User'
+ return_type = opts[:return_type] || 'UserResponse'
auth_names = opts[:auth_names] || []
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
@@ -1354,20 +1354,20 @@
end
return data, status_code, headers
end
# @param id
# @param [Hash] opts the optional parameters
- # @option opts [User] :body
+ # @option opts [UserRequest] :body
# @return [InlineResponse2006]
def api_users_id_put(id, opts = {})
data, _status_code, _headers = api_users_id_put_with_http_info(id, opts)
data
end
# @param id
# @param [Hash] opts the optional parameters
- # @option opts [User] :body
+ # @option opts [UserRequest] :body
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
def api_users_id_put_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: DefaultApi.api_users_id_put ...'
end
@@ -1409,18 +1409,18 @@
@api_client.config.logger.debug "API called: DefaultApi#api_users_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# @param [Hash] opts the optional parameters
- # @option opts [User] :body
+ # @option opts [UserRequest] :body
# @return [InlineResponse2006]
def api_users_post(opts = {})
data, _status_code, _headers = api_users_post_with_http_info(opts)
data
end
# @param [Hash] opts the optional parameters
- # @option opts [User] :body
+ # @option opts [UserRequest] :body
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
def api_users_post_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: DefaultApi.api_users_post ...'
end