spree_api 4.3.0.rc2 → 4.3.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/spree/api/v2/caching.rb +2 -2
- data/app/controllers/spree/api/v2/base_controller.rb +3 -1
- data/app/controllers/spree/api/v2/platform/menu_items_controller.rb +2 -2
- data/app/controllers/spree/api/v2/platform/menus_controller.rb +4 -0
- data/app/controllers/spree/api/v2/platform/resource_controller.rb +3 -0
- data/app/controllers/spree/api/v2/storefront/countries_controller.rb +7 -0
- data/app/serializers/concerns/spree/api/v2/image_transformation_concern.rb +15 -0
- data/app/serializers/concerns/spree/api/v2/taxon_image_transformation_concern.rb +15 -0
- data/app/serializers/spree/api/v2/platform/icon_serializer.rb +16 -0
- data/app/serializers/spree/api/v2/platform/image_serializer.rb +3 -1
- data/app/serializers/spree/api/v2/platform/menu_item_serializer.rb +21 -3
- data/app/serializers/spree/api/v2/platform/taxon_image_serializer.rb +3 -1
- data/app/serializers/spree/v2/storefront/icon_serializer.rb +14 -0
- data/app/serializers/spree/v2/storefront/image_serializer.rb +3 -1
- data/app/serializers/spree/v2/storefront/menu_item_serializer.rb +4 -4
- data/app/serializers/spree/v2/storefront/payment_method_serializer.rb +4 -0
- data/app/serializers/spree/v2/storefront/product_serializer.rb +1 -1
- data/app/serializers/spree/v2/storefront/taxon_image_serializer.rb +3 -1
- data/config/routes.rb +1 -1
- data/docs/v2/platform/index.yaml +1360 -268
- data/docs/v2/storefront/index.yaml +8290 -71
- data/lib/spree/api/testing_support/v2/platform_contexts.rb +2 -2
- metadata +10 -6
@@ -148,7 +148,7 @@ end
|
|
148
148
|
|
149
149
|
# create
|
150
150
|
shared_examples 'POST create record' do |resource_name, include_example|
|
151
|
-
param_name = resource_name.
|
151
|
+
param_name = resource_name.tableize.to_sym
|
152
152
|
|
153
153
|
post "Creates #{resource_name.articleize}" do
|
154
154
|
tags resource_name.pluralize
|
@@ -166,7 +166,7 @@ end
|
|
166
166
|
|
167
167
|
# update
|
168
168
|
shared_examples 'PUT update record' do |resource_name, include_example|
|
169
|
-
param_name = resource_name.
|
169
|
+
param_name = resource_name.tableize.to_sym
|
170
170
|
|
171
171
|
put "Updates #{resource_name.articleize}" do
|
172
172
|
tags resource_name.pluralize
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.0.
|
4
|
+
version: 4.3.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bigg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-rspec
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.3.0.
|
61
|
+
version: 4.3.0.rc3
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.3.0.
|
68
|
+
version: 4.3.0.rc3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rabl
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -215,7 +215,9 @@ files:
|
|
215
215
|
- app/models/concerns/spree/user_api_methods.rb
|
216
216
|
- app/models/spree/api_configuration.rb
|
217
217
|
- app/models/spree/api_dependencies.rb
|
218
|
+
- app/serializers/concerns/spree/api/v2/image_transformation_concern.rb
|
218
219
|
- app/serializers/concerns/spree/api/v2/resource_serializer_concern.rb
|
220
|
+
- app/serializers/concerns/spree/api/v2/taxon_image_transformation_concern.rb
|
219
221
|
- app/serializers/spree/api/v2/base_serializer.rb
|
220
222
|
- app/serializers/spree/api/v2/platform/address_serializer.rb
|
221
223
|
- app/serializers/spree/api/v2/platform/base_serializer.rb
|
@@ -223,6 +225,7 @@ files:
|
|
223
225
|
- app/serializers/spree/api/v2/platform/cms_page_serializer.rb
|
224
226
|
- app/serializers/spree/api/v2/platform/cms_section_serializer.rb
|
225
227
|
- app/serializers/spree/api/v2/platform/country_serializer.rb
|
228
|
+
- app/serializers/spree/api/v2/platform/icon_serializer.rb
|
226
229
|
- app/serializers/spree/api/v2/platform/image_serializer.rb
|
227
230
|
- app/serializers/spree/api/v2/platform/menu_item_serializer.rb
|
228
231
|
- app/serializers/spree/api/v2/platform/menu_serializer.rb
|
@@ -248,6 +251,7 @@ files:
|
|
248
251
|
- app/serializers/spree/v2/storefront/country_serializer.rb
|
249
252
|
- app/serializers/spree/v2/storefront/credit_card_serializer.rb
|
250
253
|
- app/serializers/spree/v2/storefront/estimated_shipping_rate_serializer.rb
|
254
|
+
- app/serializers/spree/v2/storefront/icon_serializer.rb
|
251
255
|
- app/serializers/spree/v2/storefront/image_serializer.rb
|
252
256
|
- app/serializers/spree/v2/storefront/line_item_serializer.rb
|
253
257
|
- app/serializers/spree/v2/storefront/menu_item_serializer.rb
|
@@ -407,9 +411,9 @@ licenses:
|
|
407
411
|
- BSD-3-Clause
|
408
412
|
metadata:
|
409
413
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
410
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0.
|
414
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0.rc3
|
411
415
|
documentation_uri: https://dev-docs.spreecommerce.org/
|
412
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.3.0.
|
416
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.3.0.rc3
|
413
417
|
post_install_message:
|
414
418
|
rdoc_options: []
|
415
419
|
require_paths:
|