spree_api 4.3.0.rc1 → 4.3.0.rc2
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 +33 -0
- data/app/controllers/spree/api/v2/platform/products_controller.rb +12 -0
- data/app/controllers/spree/api/v2/resource_controller.rb +6 -1
- data/app/controllers/spree/api/v2/storefront/account/orders_controller.rb +4 -0
- data/app/controllers/spree/api/v2/storefront/products_controller.rb +4 -0
- data/app/models/spree/api_configuration.rb +4 -2
- data/app/models/spree/api_dependencies.rb +2 -1
- data/app/serializers/spree/api/v2/base_serializer.rb +1 -1
- data/app/serializers/spree/api/v2/platform/menu_item_serializer.rb +7 -2
- data/app/serializers/spree/api/v2/platform/product_serializer.rb +11 -11
- data/app/serializers/spree/api/v2/platform/user_serializer.rb +16 -0
- data/app/serializers/spree/v2/storefront/menu_item_serializer.rb +8 -2
- data/app/serializers/spree/v2/storefront/product_serializer.rb +17 -11
- data/config/locales/en.yml +1 -1
- data/docs/oauth/index.yml +2 -2
- data/docs/v2/platform/index.yaml +1318 -314
- data/docs/v2/storefront/index.yaml +3390 -1282
- data/lib/spree/api/testing_support/v2/platform_contexts.rb +3 -3
- data/spree_api.gemspec +1 -1
- metadata +8 -7
@@ -50,12 +50,12 @@ JSON_API_FILTER_DESCRIPTION = ''
|
|
50
50
|
|
51
51
|
def json_api_include_parameter(example = '')
|
52
52
|
let(:include) { nil }
|
53
|
-
parameter name: :include, in: :query, type: :string,
|
53
|
+
parameter name: :include, in: :query, type: :string, description: JSON_API_INCLUDES_DESCRIPTION, example: example
|
54
54
|
end
|
55
55
|
|
56
56
|
def json_api_filter_parameter(example = '')
|
57
57
|
let(:filter) { nil }
|
58
|
-
parameter name: :filter, in: :query, type: :string,
|
58
|
+
parameter name: :filter, in: :query, type: :string, description: JSON_API_FILTER_DESCRIPTION, example: example
|
59
59
|
end
|
60
60
|
|
61
61
|
shared_examples 'authentication failed' do
|
@@ -199,7 +199,7 @@ shared_examples 'DELETE record' do |resource_name|
|
|
199
199
|
end
|
200
200
|
|
201
201
|
shared_examples 'CRUD examples' do |resource_name, include_example, filter_example|
|
202
|
-
resource_path = resource_name.pluralize
|
202
|
+
resource_path = resource_name.tableize.pluralize
|
203
203
|
|
204
204
|
path "/api/v2/platform/#{resource_path}" do
|
205
205
|
include_examples 'GET records list', resource_name, include_example, filter_example
|
data/spree_api.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.metadata = {
|
15
15
|
"bug_tracker_uri" => "https://github.com/spree/spree/issues",
|
16
16
|
"changelog_uri" => "https://github.com/spree/spree/releases/tag/v#{s.version}",
|
17
|
-
"documentation_uri" => "https://
|
17
|
+
"documentation_uri" => "https://dev-docs.spreecommerce.org/",
|
18
18
|
"source_code_uri" => "https://github.com/spree/spree/tree/v#{s.version}",
|
19
19
|
}
|
20
20
|
|
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.rc2
|
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-23 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.rc2
|
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.rc2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rabl
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- Gemfile
|
146
146
|
- LICENSE
|
147
147
|
- Rakefile
|
148
|
+
- app/controllers/concerns/spree/api/v2/caching.rb
|
148
149
|
- app/controllers/concerns/spree/api/v2/product_list_includes.rb
|
149
150
|
- app/controllers/concerns/spree/api/v2/storefront/order_concern.rb
|
150
151
|
- app/controllers/spree/api/base_controller.rb
|
@@ -406,9 +407,9 @@ licenses:
|
|
406
407
|
- BSD-3-Clause
|
407
408
|
metadata:
|
408
409
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
409
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0.
|
410
|
-
documentation_uri: https://
|
411
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.3.0.
|
410
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0.rc2
|
411
|
+
documentation_uri: https://dev-docs.spreecommerce.org/
|
412
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.3.0.rc2
|
412
413
|
post_install_message:
|
413
414
|
rdoc_options: []
|
414
415
|
require_paths:
|