lib/cloudsmith-api/api/user_api.rb in cloudsmith-api-1.142.3 vs lib/cloudsmith-api/api/user_api.rb in cloudsmith-api-2.0.0
- old
+ new
@@ -1,7 +1,7 @@
=begin
-#Cloudsmith API
+#Cloudsmith API (v1)
#The API to the Cloudsmith Service
OpenAPI spec version: v1
Contact: support@cloudsmith.io
@@ -42,10 +42,14 @@
# query parameters
query_params = {}
# header parameters
header_params = {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ # HTTP header 'Content-Type'
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
@@ -64,21 +68,21 @@
return data, status_code, headers
end
# Retrieve the API key/token for the authenticated user.
# Retrieve the API key/token for the authenticated user.
# @param [Hash] opts the optional parameters
- # @option opts [UserTokenCreate] :data
+ # @option opts [UserAuthTokenRequest] :data
# @return [UserAuthToken]
def user_token_create(opts = {})
data, _status_code, _headers = user_token_create_with_http_info(opts)
data
end
# Retrieve the API key/token for the authenticated user.
# Retrieve the API key/token for the authenticated user.
# @param [Hash] opts the optional parameters
- # @option opts [UserTokenCreate] :data
+ # @option opts [UserAuthTokenRequest] :data
# @return [Array<(UserAuthToken, Fixnum, Hash)>] UserAuthToken data, response status code and response headers
def user_token_create_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: UserApi.user_token_create ...'
end
@@ -88,9 +92,11 @@
# query parameters
query_params = {}
# header parameters
header_params = {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}