Class: NewStoreApi::ExtensionsController
- Inherits:
-
BaseController
- Object
- BaseController
- NewStoreApi::ExtensionsController
- Defined in:
- lib/new_store_api/controllers/extensions_controller.rb
Overview
ExtensionsController
Constant Summary
Constants inherited from BaseController
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
-
#create_extension ⇒ void
🚧 BETA: This endpoint is in beta and may change.
- #list_extension_types ⇒ void
🚧 BETA: This endpoint is in beta and may change.- #list_extensions ⇒ void
🚧 BETA: This endpoint is in beta and may change.- #show_extension(extension_id) ⇒ void
🚧 BETA: This endpoint is in beta and may change.- #show_extension_type(type_id) ⇒ void
🚧 BETA: This endpoint is in beta and may change.- #update_extension(extension_id) ⇒ void
Updates an extension.
Methods inherited from BaseController
#initialize, #new_parameter, #new_request_builder, #new_response_handler, user_agent
Constructor Details
This class inherits a constructor from NewStoreApi::BaseController
Instance Method Details
#create_extension ⇒ void
This method returns an undefined value.
🚧 BETA: This endpoint is in beta and may change.Create a new extension.
See API Lifecycle Documentation for details.90 91 92 93 94 95 96 97 98 99
# File 'lib/new_store_api/controllers/extensions_controller.rb', line 90 def create_extension @api_call .request(new_request_builder(HttpMethodEnum::POST, '/extensions/extensions', Server::API) .auth(Single.new('oauth'))) .response(new_response_handler .is_response_void(true)) .execute end
#list_extension_types ⇒ void
This method returns an undefined value.
🚧 BETA: This endpoint is in beta and may change.List extension types.
See API Lifecycle Documentation for details.20 21 22 23 24 25 26 27 28 29
# File 'lib/new_store_api/controllers/extensions_controller.rb', line 20 def list_extension_types @api_call .request(new_request_builder(HttpMethodEnum::GET, '/extensions/extension-types', Server::API) .auth(Single.new('oauth'))) .response(new_response_handler .is_response_void(true)) .execute end
#list_extensions ⇒ void
This method returns an undefined value.
🚧 BETA: This endpoint is in beta and may change.List extensions.
See API Lifecycle Documentation for details.68 69 70 71 72 73 74 75 76 77
# File 'lib/new_store_api/controllers/extensions_controller.rb', line 68 def list_extensions @api_call .request(new_request_builder(HttpMethodEnum::GET, '/extensions/extensions', Server::API) .auth(Single.new('oauth'))) .response(new_response_handler .is_response_void(true)) .execute end
#show_extension(extension_id) ⇒ void
This method returns an undefined value.
🚧 BETA: This endpoint is in beta and may change.Get extension. extension.
See API Lifecycle Documentation for details.114 115 116 117 118 119 120 121 122 123 124 125
# File 'lib/new_store_api/controllers/extensions_controller.rb', line 114 def show_extension(extension_id) @api_call .request(new_request_builder(HttpMethodEnum::GET, '/extensions/extensions/{extension_id}', Server::API) .template_param(new_parameter(extension_id, key: 'extension_id') .should_encode(true)) .auth(Single.new('oauth'))) .response(new_response_handler .is_response_void(true)) .execute end
#show_extension_type(type_id) ⇒ void
This method returns an undefined value.
🚧 BETA: This endpoint is in beta and may change.Get extension type. type.
See API Lifecycle Documentation for details.44 45 46 47 48 49 50 51 52 53 54 55
# File 'lib/new_store_api/controllers/extensions_controller.rb', line 44 def show_extension_type(type_id) @api_call .request(new_request_builder(HttpMethodEnum::GET, '/extensions/extension-types/{type_id}', Server::API) .template_param(new_parameter(type_id, key: 'type_id') .should_encode(true)) .auth(Single.new('oauth'))) .response(new_response_handler .is_response_void(true)) .execute end
#update_extension(extension_id) ⇒ void
This method returns an undefined value.
Updates an extension. to update.
131 132 133 134 135 136 137 138 139 140 141 142
# File 'lib/new_store_api/controllers/extensions_controller.rb', line 131 def update_extension(extension_id) @api_call .request(new_request_builder(HttpMethodEnum::PATCH, '/extensions/extensions/{extension_id}', Server::API) .template_param(new_parameter(extension_id, key: 'extension_id') .should_encode(true)) .auth(Single.new('oauth'))) .response(new_response_handler .is_response_void(true)) .execute end
- #list_extension_types ⇒ void