lib/smooch-api/api/app_api.rb in smooch-api-3.0.0 vs lib/smooch-api/api/app_api.rb in smooch-api-3.1.0
- old
+ new
@@ -1,11 +1,11 @@
=begin
#Smooch
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
-OpenAPI spec version: 3.0
+OpenAPI spec version: 3.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -42,11 +42,11 @@
# verify the required parameter 'app_create_body' is set
if @api_client.config.client_side_validation && app_create_body.nil?
fail ArgumentError, "Missing the required parameter 'app_create_body' when calling AppApi.create_app"
end
# resource path
- local_var_path = "/apps"
+ local_var_path = "/v1/apps"
# query parameters
query_params = {}
# header parameters
@@ -103,11 +103,11 @@
# verify the required parameter 'secret_key_create_body' is set
if @api_client.config.client_side_validation && secret_key_create_body.nil?
fail ArgumentError, "Missing the required parameter 'secret_key_create_body' when calling AppApi.create_secret_key"
end
# resource path
- local_var_path = "/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
+ local_var_path = "/v1/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -158,11 +158,11 @@
# verify the required parameter 'app_id' is set
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_app"
end
# resource path
- local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
+ local_var_path = "/v1/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -218,11 +218,11 @@
# verify the required parameter 'key_id' is set
if @api_client.config.client_side_validation && key_id.nil?
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.delete_secret_key"
end
# resource path
- local_var_path = "/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
+ local_var_path = "/v1/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -272,11 +272,11 @@
# verify the required parameter 'app_id' is set
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_app"
end
# resource path
- local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
+ local_var_path = "/v1/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -333,11 +333,11 @@
# verify the required parameter 'key_id' is set
if @api_client.config.client_side_validation && key_id.nil?
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_app_jwt"
end
# resource path
- local_var_path = "/apps/{appId}/keys/{keyId}/jwt".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
+ local_var_path = "/v1/apps/{appId}/keys/{keyId}/jwt".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -394,11 +394,11 @@
# verify the required parameter 'key_id' is set
if @api_client.config.client_side_validation && key_id.nil?
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_secret_key"
end
# resource path
- local_var_path = "/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
+ local_var_path = "/v1/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -449,11 +449,11 @@
def list_apps_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: AppApi.list_apps ..."
end
# resource path
- local_var_path = "/apps"
+ local_var_path = "/v1/apps"
# query parameters
query_params = {}
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
@@ -507,11 +507,11 @@
# verify the required parameter 'app_id' is set
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.list_secret_keys"
end
# resource path
- local_var_path = "/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
+ local_var_path = "/v1/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -568,10 +568,10 @@
# verify the required parameter 'app_update_body' is set
if @api_client.config.client_side_validation && app_update_body.nil?
fail ArgumentError, "Missing the required parameter 'app_update_body' when calling AppApi.update_app"
end
# resource path
- local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
+ local_var_path = "/v1/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
# query parameters
query_params = {}
# header parameters