spree_api 3.7.13 → 4.0.0.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/app/controllers/spree/api/base_controller.rb +3 -3
- data/app/controllers/spree/api/v1/addresses_controller.rb +2 -2
- data/app/controllers/spree/api/v1/countries_controller.rb +2 -2
- data/app/controllers/spree/api/v1/credit_cards_controller.rb +2 -2
- data/app/controllers/spree/api/v1/images_controller.rb +3 -3
- data/app/controllers/spree/api/v1/inventory_units_controller.rb +2 -2
- data/app/controllers/spree/api/v1/option_types_controller.rb +4 -4
- data/app/controllers/spree/api/v1/option_values_controller.rb +3 -3
- data/app/controllers/spree/api/v1/payments_controller.rb +2 -2
- data/app/controllers/spree/api/v1/product_properties_controller.rb +4 -4
- data/app/controllers/spree/api/v1/properties_controller.rb +4 -4
- data/app/controllers/spree/api/v1/return_authorizations_controller.rb +4 -4
- data/app/controllers/spree/api/v1/shipments_controller.rb +3 -3
- data/app/controllers/spree/api/v1/states_controller.rb +3 -3
- data/app/controllers/spree/api/v1/stock_items_controller.rb +2 -2
- data/app/controllers/spree/api/v1/stock_locations_controller.rb +5 -4
- data/app/controllers/spree/api/v1/stock_movements_controller.rb +3 -3
- data/app/controllers/spree/api/v1/stores_controller.rb +4 -4
- data/app/controllers/spree/api/v1/taxonomies_controller.rb +3 -3
- data/app/controllers/spree/api/v1/taxons_controller.rb +5 -5
- data/app/controllers/spree/api/v1/users_controller.rb +3 -3
- data/app/controllers/spree/api/v1/variants_controller.rb +3 -3
- data/app/controllers/spree/api/v1/zones_controller.rb +3 -3
- data/app/controllers/spree/api/v2/base_controller.rb +1 -6
- data/app/controllers/spree/api/v2/storefront/account/credit_cards_controller.rb +1 -1
- data/app/controllers/spree/api/v2/storefront/countries_controller.rb +2 -1
- data/app/controllers/spree/api/v2/storefront/order_status_controller.rb +0 -6
- data/app/controllers/spree/api/v2/storefront/products_controller.rb +1 -1
- data/app/controllers/spree/api/v2/storefront/taxons_controller.rb +1 -1
- data/app/views/spree/api/errors/{gateway_error.v1.rabl → gateway_error.rabl} +0 -0
- data/app/views/spree/api/errors/{invalid_api_key.v1.rabl → invalid_api_key.rabl} +0 -0
- data/app/views/spree/api/errors/{invalid_resource.v1.rabl → invalid_resource.rabl} +0 -0
- data/app/views/spree/api/errors/{must_specify_api_key.v1.rabl → must_specify_api_key.rabl} +0 -0
- data/app/views/spree/api/errors/{not_found.v1.rabl → not_found.rabl} +0 -0
- data/app/views/spree/api/errors/{unauthorized.v1.rabl → unauthorized.rabl} +0 -0
- data/app/views/spree/api/v1/addresses/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/adjustments/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/countries/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/countries/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/credit_cards/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/credit_cards/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/customer_returns/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/images/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/images/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/images/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/line_items/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/line_items/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/option_types/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/option_types/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/option_types/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/option_values/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/option_values/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/option_values/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{address.v1.rabl → address.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{canceled.v1.rabl → canceled.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{cart.v1.rabl → cart.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{complete.v1.rabl → complete.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{could_not_apply_coupon.v1.rabl → could_not_apply_coupon.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{could_not_transition.v1.rabl → could_not_transition.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{insufficient_quantity.v1.rabl → insufficient_quantity.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{invalid_shipping_method.v1.rabl → invalid_shipping_method.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{mine.v1.rabl → mine.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{order.v1.rabl → order.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{payment.v1.rabl → payment.rabl} +0 -0
- data/app/views/spree/api/v1/orders/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{credit_over_limit.v1.rabl → credit_over_limit.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/payments/{update_forbidden.v1.rabl → update_forbidden.rabl} +0 -0
- data/app/views/spree/api/v1/product_properties/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/product_properties/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/product_properties/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/products/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/products/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/products/{product.v1.rabl → product.rabl} +0 -0
- data/app/views/spree/api/v1/products/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/promotions/{handler.v1.rabl → handler.rabl} +0 -0
- data/app/views/spree/api/v1/promotions/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/properties/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/properties/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/properties/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/reimbursements/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/return_authorizations/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/return_authorizations/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/return_authorizations/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/shared/{stock_location_required.v1.rabl → stock_location_required.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{big.v1.rabl → big.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{cannot_ready_shipment.v1.rabl → cannot_ready_shipment.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{mine.v1.rabl → mine.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/shipments/{small.v1.rabl → small.rabl} +0 -0
- data/app/views/spree/api/v1/shipping_rates/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/states/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/states/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/stock_items/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/stock_items/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/stock_locations/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/stock_locations/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/stock_movements/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/stock_movements/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/stores/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/stores/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/tags/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/taxonomies/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/taxonomies/{nested.v1.rabl → nested.rabl} +0 -0
- data/app/views/spree/api/v1/taxonomies/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/taxonomies/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/taxons/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/taxons/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/taxons/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/taxons/{taxons.v1.rabl → taxons.rabl} +0 -0
- data/app/views/spree/api/v1/users/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/users/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/users/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{big.v1.rabl → big.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{new.v1.rabl → new.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{show.v1.rabl → show.rabl} +0 -0
- data/app/views/spree/api/v1/variants/{small.v1.rabl → small.rabl} +0 -0
- data/app/views/spree/api/v1/zones/{index.v1.rabl → index.rabl} +0 -0
- data/app/views/spree/api/v1/zones/{show.v1.rabl → show.rabl} +0 -0
- data/config/initializers/doorkeeper.rb +12 -0
- data/config/initializers/rabl_rails6_fix.rb +16 -0
- data/config/routes.rb +0 -2
- data/docs/v2/storefront/index.yaml +36 -31
- data/lib/spree/api/engine.rb +0 -19
- data/lib/spree/api/testing_support/v2/base.rb +1 -1
- data/lib/spree_api.rb +0 -1
- data/spree_api.gemspec +2 -3
- metadata +108 -126
- data/app/controllers/spree/api/v1/tags_controller.rb +0 -28
- data/app/models/doorkeeper/access_grant_decorator.rb +0 -3
- data/app/models/doorkeeper/access_token_decorator.rb +0 -3
- data/app/models/doorkeeper/application_decorator.rb +0 -3
- data/config/initializers/metal_load_paths.rb +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -18,3 +18,15 @@ Doorkeeper.configure do
|
|
|
18
18
|
|
|
19
19
|
access_token_methods :from_bearer_authorization, :from_access_token_param
|
|
20
20
|
end
|
|
21
|
+
|
|
22
|
+
Doorkeeper::AccessGrant.class_eval do
|
|
23
|
+
self.table_name = 'spree_oauth_access_grants'
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
Doorkeeper::AccessToken.class_eval do
|
|
27
|
+
self.table_name = 'spree_oauth_access_tokens'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
Doorkeeper::Application.class_eval do
|
|
31
|
+
self.table_name = 'spree_oauth_applications'
|
|
32
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# https://github.com/nesquena/rabl/pull/723
|
|
2
|
+
module ActionView
|
|
3
|
+
module Template::Handlers
|
|
4
|
+
class Rabl
|
|
5
|
+
class_attribute :default_format, default: :json
|
|
6
|
+
|
|
7
|
+
def self.call(_template, source)
|
|
8
|
+
%{ ::Rabl::Engine.new(#{source.inspect}).
|
|
9
|
+
apply(self, assigns.merge(local_assigns)).
|
|
10
|
+
render }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
ActionView::Template.register_template_handler :rabl, ActionView::Template::Handlers::Rabl
|
data/config/routes.rb
CHANGED
|
@@ -122,8 +122,6 @@ Spree::Core::Engine.add_routes do
|
|
|
122
122
|
resources :stock_items, only: [:index, :update, :destroy]
|
|
123
123
|
resources :stores
|
|
124
124
|
|
|
125
|
-
resources :tags, only: :index
|
|
126
|
-
|
|
127
125
|
put '/classifications', to: 'classifications#update', as: :classifications
|
|
128
126
|
get '/taxons/products', to: 'taxons#products', as: :taxon_products
|
|
129
127
|
end
|
|
@@ -12,7 +12,15 @@ info:
|
|
|
12
12
|
intefaces either in JavaScript frameworks or native mobile libraries.
|
|
13
13
|
</p>
|
|
14
14
|
<p>
|
|
15
|
-
Please read our
|
|
15
|
+
Please read our <a href="https://guides.spreecommerce.org/api/v2/">
|
|
16
|
+
introduction to the API v2
|
|
17
|
+
</a>
|
|
18
|
+
</p>
|
|
19
|
+
<p>
|
|
20
|
+
Download our
|
|
21
|
+
<a href="https://github.com/spree/spree-storefront-api-v2-js-sdk">
|
|
22
|
+
official JavaScript & TypeScript SDK
|
|
23
|
+
</a>
|
|
16
24
|
</p>
|
|
17
25
|
<p>
|
|
18
26
|
<a href="https://raw.githubusercontent.com/spree/spree/master/api/docs/v2/storefront/index.yaml" target="_blank" rel="noopener">
|
|
@@ -154,8 +162,6 @@ paths:
|
|
|
154
162
|
- $ref: '#/components/parameters/OrderParam'
|
|
155
163
|
- $ref: '#/components/parameters/CartIncludeParam'
|
|
156
164
|
- $ref: '#/components/parameters/SparseFieldsParam'
|
|
157
|
-
security:
|
|
158
|
-
- orderToken: []
|
|
159
165
|
'/cart':
|
|
160
166
|
post:
|
|
161
167
|
description: >-
|
|
@@ -345,7 +351,7 @@ paths:
|
|
|
345
351
|
operationId: 'Apply Coupon Code'
|
|
346
352
|
responses:
|
|
347
353
|
'200':
|
|
348
|
-
description:
|
|
354
|
+
description: Coupon code was applied successfully
|
|
349
355
|
content:
|
|
350
356
|
application/vnd.api+json:
|
|
351
357
|
schema:
|
|
@@ -375,15 +381,15 @@ paths:
|
|
|
375
381
|
|
|
376
382
|
'/cart/remove_coupon_code/{coupon_code}':
|
|
377
383
|
delete:
|
|
378
|
-
description: Removes a coupon code from the Cart
|
|
384
|
+
description: Removes a coupon code from the Cart. If no `coupon_code` parameter is passed will remove all applied coupon codes.
|
|
379
385
|
tags:
|
|
380
386
|
- Cart
|
|
381
387
|
operationId: 'Remove Coupon Code'
|
|
382
388
|
parameters:
|
|
383
389
|
- name: coupon_code
|
|
384
390
|
in: path
|
|
385
|
-
required:
|
|
386
|
-
description: Coupon code
|
|
391
|
+
required: false
|
|
392
|
+
description: Selected Coupon code for removal
|
|
387
393
|
schema:
|
|
388
394
|
type: string
|
|
389
395
|
example: 'DISCOUNT10'
|
|
@@ -450,28 +456,24 @@ paths:
|
|
|
450
456
|
order: {
|
|
451
457
|
email: 'john@snow.org',
|
|
452
458
|
bill_address_attributes: {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
country_iso: 'US'
|
|
462
|
-
}
|
|
459
|
+
firstname: 'John',
|
|
460
|
+
lastname: 'Snow',
|
|
461
|
+
address1: '7735 Old Georgetown Road',
|
|
462
|
+
city: 'Bethesda',
|
|
463
|
+
phone: '3014445002',
|
|
464
|
+
zipcode: '20814',
|
|
465
|
+
state_name: 'MD',
|
|
466
|
+
country_iso: 'US'
|
|
463
467
|
},
|
|
464
468
|
ship_address_attributes: {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
country_iso: 'US'
|
|
474
|
-
}
|
|
469
|
+
firstname: 'John',
|
|
470
|
+
lastname: 'Snow',
|
|
471
|
+
address1: '7735 Old Georgetown Road',
|
|
472
|
+
city: 'Bethesda',
|
|
473
|
+
phone: '3014445002',
|
|
474
|
+
zipcode: '20814',
|
|
475
|
+
state_name: 'MD',
|
|
476
|
+
country_iso: 'US'
|
|
475
477
|
}
|
|
476
478
|
}
|
|
477
479
|
</pre>
|
|
@@ -493,9 +495,12 @@ paths:
|
|
|
493
495
|
<br />
|
|
494
496
|
<pre>
|
|
495
497
|
order: {
|
|
496
|
-
shipments_attributes:
|
|
497
|
-
|
|
498
|
-
|
|
498
|
+
shipments_attributes: [
|
|
499
|
+
{
|
|
500
|
+
id: 1,
|
|
501
|
+
selected_shipping_rate_id: 1
|
|
502
|
+
}
|
|
503
|
+
]
|
|
499
504
|
}
|
|
500
505
|
</pre>
|
|
501
506
|
<br />
|
|
@@ -517,7 +522,7 @@ paths:
|
|
|
517
522
|
]
|
|
518
523
|
},
|
|
519
524
|
payment_source: {
|
|
520
|
-
|
|
525
|
+
1: {
|
|
521
526
|
number: '4111111111111111',
|
|
522
527
|
month: '01',
|
|
523
528
|
year: '2022',
|
data/lib/spree/api/engine.rb
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
require 'rails/engine'
|
|
2
|
-
require 'versioncake'
|
|
3
2
|
|
|
4
3
|
module Spree
|
|
5
4
|
module Api
|
|
@@ -17,17 +16,6 @@ module Spree
|
|
|
17
16
|
config.json_engine = ActiveSupport::JSON
|
|
18
17
|
end
|
|
19
18
|
|
|
20
|
-
initializer 'spree.api.versioncake' do |_app|
|
|
21
|
-
VersionCake.setup do |config|
|
|
22
|
-
config.resources do |r|
|
|
23
|
-
r.resource %r{.*}, [], [], [1, 2]
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
config.missing_version = 1
|
|
27
|
-
config.extraction_strategy = :http_header
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
|
|
31
19
|
# sets the manifests / assets to be precompiled, even when initialize_on_precompile is false
|
|
32
20
|
initializer 'spree.assets.precompile', group: :all do |app|
|
|
33
21
|
app.config.assets.precompile += %w[
|
|
@@ -44,13 +32,6 @@ module Spree
|
|
|
44
32
|
Migrations.new(config, engine_name).check
|
|
45
33
|
end
|
|
46
34
|
|
|
47
|
-
def self.activate
|
|
48
|
-
Dir.glob(File.join(File.dirname(__FILE__), '../../../app/**/*_decorator*.rb')) do |c|
|
|
49
|
-
Rails.configuration.cache_classes ? require(c) : load(c)
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
config.to_prepare &method(:activate).to_proc
|
|
53
|
-
|
|
54
35
|
def self.root
|
|
55
36
|
@root ||= Pathname.new(File.expand_path('../../..', __dir__))
|
|
56
37
|
end
|
|
@@ -4,7 +4,7 @@ shared_context 'API v2 tokens' do
|
|
|
4
4
|
let(:headers_order_token) { { 'X-Spree-Order-Token' => order.token } }
|
|
5
5
|
end
|
|
6
6
|
|
|
7
|
-
[200, 201, 400,
|
|
7
|
+
[200, 201, 400, 404, 403, 422].each do |status_code|
|
|
8
8
|
shared_examples "returns #{status_code} HTTP status" do
|
|
9
9
|
it "returns #{status_code}" do
|
|
10
10
|
expect(response.status).to eq(status_code)
|
data/lib/spree_api.rb
CHANGED
data/spree_api.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
|
9
9
|
s.homepage = 'http://spreecommerce.org'
|
|
10
10
|
s.license = 'BSD-3-Clause'
|
|
11
11
|
|
|
12
|
-
s.required_ruby_version = '>= 2.
|
|
12
|
+
s.required_ruby_version = '>= 2.5.0'
|
|
13
13
|
|
|
14
14
|
s.files = `git ls-files`.split($\).reject { |f| f.match(/^spec/) && !f.match(/^spec\/fixtures/) }
|
|
15
15
|
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
@@ -20,8 +20,7 @@ Gem::Specification.new do |s|
|
|
|
20
20
|
s.add_development_dependency 'jsonapi-rspec'
|
|
21
21
|
|
|
22
22
|
s.add_dependency 'spree_core', s.version
|
|
23
|
-
s.add_dependency 'rabl', '~> 0.
|
|
24
|
-
s.add_dependency 'versioncake', '~> 3.4.0'
|
|
23
|
+
s.add_dependency 'rabl', '~> 0.14.1'
|
|
25
24
|
s.add_dependency 'fast_jsonapi', '~> 1.5'
|
|
26
25
|
s.add_dependency 'doorkeeper', '~> 5.0'
|
|
27
26
|
end
|
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
|
+
version: 4.0.0.beta
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Bigg
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jsonapi-rspec
|
|
@@ -30,42 +30,28 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 4.0.0.beta
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 4.0.0.beta
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rabl
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.
|
|
47
|
+
version: 0.14.1
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: versioncake
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 3.4.0
|
|
62
|
-
type: :runtime
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 3.4.0
|
|
54
|
+
version: 0.14.1
|
|
69
55
|
- !ruby/object:Gem::Dependency
|
|
70
56
|
name: fast_jsonapi
|
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -135,7 +121,6 @@ files:
|
|
|
135
121
|
- app/controllers/spree/api/v1/stock_locations_controller.rb
|
|
136
122
|
- app/controllers/spree/api/v1/stock_movements_controller.rb
|
|
137
123
|
- app/controllers/spree/api/v1/stores_controller.rb
|
|
138
|
-
- app/controllers/spree/api/v1/tags_controller.rb
|
|
139
124
|
- app/controllers/spree/api/v1/taxonomies_controller.rb
|
|
140
125
|
- app/controllers/spree/api/v1/taxons_controller.rb
|
|
141
126
|
- app/controllers/spree/api/v1/users_controller.rb
|
|
@@ -155,9 +140,6 @@ files:
|
|
|
155
140
|
- app/helpers/spree/api/v2/collection_options_helpers.rb
|
|
156
141
|
- app/models/concerns/spree/user_api_authentication.rb
|
|
157
142
|
- app/models/concerns/spree/user_api_methods.rb
|
|
158
|
-
- app/models/doorkeeper/access_grant_decorator.rb
|
|
159
|
-
- app/models/doorkeeper/access_token_decorator.rb
|
|
160
|
-
- app/models/doorkeeper/application_decorator.rb
|
|
161
143
|
- app/models/spree/api_configuration.rb
|
|
162
144
|
- app/models/spree/api_dependencies.rb
|
|
163
145
|
- app/serializers/spree/v2/storefront/address_serializer.rb
|
|
@@ -186,106 +168,106 @@ files:
|
|
|
186
168
|
- app/serializers/spree/v2/storefront/taxonomy_serializer.rb
|
|
187
169
|
- app/serializers/spree/v2/storefront/user_serializer.rb
|
|
188
170
|
- app/serializers/spree/v2/storefront/variant_serializer.rb
|
|
189
|
-
- app/views/spree/api/errors/gateway_error.
|
|
190
|
-
- app/views/spree/api/errors/invalid_api_key.
|
|
191
|
-
- app/views/spree/api/errors/invalid_resource.
|
|
192
|
-
- app/views/spree/api/errors/must_specify_api_key.
|
|
193
|
-
- app/views/spree/api/errors/not_found.
|
|
194
|
-
- app/views/spree/api/errors/unauthorized.
|
|
195
|
-
- app/views/spree/api/v1/addresses/show.
|
|
196
|
-
- app/views/spree/api/v1/adjustments/show.
|
|
197
|
-
- app/views/spree/api/v1/countries/index.
|
|
198
|
-
- app/views/spree/api/v1/countries/show.
|
|
199
|
-
- app/views/spree/api/v1/credit_cards/index.
|
|
200
|
-
- app/views/spree/api/v1/credit_cards/show.
|
|
201
|
-
- app/views/spree/api/v1/customer_returns/index.
|
|
202
|
-
- app/views/spree/api/v1/images/index.
|
|
203
|
-
- app/views/spree/api/v1/images/new.
|
|
204
|
-
- app/views/spree/api/v1/images/show.
|
|
171
|
+
- app/views/spree/api/errors/gateway_error.rabl
|
|
172
|
+
- app/views/spree/api/errors/invalid_api_key.rabl
|
|
173
|
+
- app/views/spree/api/errors/invalid_resource.rabl
|
|
174
|
+
- app/views/spree/api/errors/must_specify_api_key.rabl
|
|
175
|
+
- app/views/spree/api/errors/not_found.rabl
|
|
176
|
+
- app/views/spree/api/errors/unauthorized.rabl
|
|
177
|
+
- app/views/spree/api/v1/addresses/show.rabl
|
|
178
|
+
- app/views/spree/api/v1/adjustments/show.rabl
|
|
179
|
+
- app/views/spree/api/v1/countries/index.rabl
|
|
180
|
+
- app/views/spree/api/v1/countries/show.rabl
|
|
181
|
+
- app/views/spree/api/v1/credit_cards/index.rabl
|
|
182
|
+
- app/views/spree/api/v1/credit_cards/show.rabl
|
|
183
|
+
- app/views/spree/api/v1/customer_returns/index.rabl
|
|
184
|
+
- app/views/spree/api/v1/images/index.rabl
|
|
185
|
+
- app/views/spree/api/v1/images/new.rabl
|
|
186
|
+
- app/views/spree/api/v1/images/show.rabl
|
|
205
187
|
- app/views/spree/api/v1/inventory_units/show.rabl
|
|
206
|
-
- app/views/spree/api/v1/line_items/new.
|
|
207
|
-
- app/views/spree/api/v1/line_items/show.
|
|
208
|
-
- app/views/spree/api/v1/option_types/index.
|
|
209
|
-
- app/views/spree/api/v1/option_types/new.
|
|
210
|
-
- app/views/spree/api/v1/option_types/show.
|
|
211
|
-
- app/views/spree/api/v1/option_values/index.
|
|
212
|
-
- app/views/spree/api/v1/option_values/new.
|
|
213
|
-
- app/views/spree/api/v1/option_values/show.
|
|
214
|
-
- app/views/spree/api/v1/orders/address.
|
|
215
|
-
- app/views/spree/api/v1/orders/canceled.
|
|
216
|
-
- app/views/spree/api/v1/orders/cart.
|
|
217
|
-
- app/views/spree/api/v1/orders/complete.
|
|
218
|
-
- app/views/spree/api/v1/orders/could_not_apply_coupon.
|
|
219
|
-
- app/views/spree/api/v1/orders/could_not_transition.
|
|
220
|
-
- app/views/spree/api/v1/orders/index.
|
|
221
|
-
- app/views/spree/api/v1/orders/insufficient_quantity.
|
|
222
|
-
- app/views/spree/api/v1/orders/invalid_shipping_method.
|
|
223
|
-
- app/views/spree/api/v1/orders/mine.
|
|
224
|
-
- app/views/spree/api/v1/orders/order.
|
|
225
|
-
- app/views/spree/api/v1/orders/payment.
|
|
226
|
-
- app/views/spree/api/v1/orders/show.
|
|
227
|
-
- app/views/spree/api/v1/payments/credit_over_limit.
|
|
228
|
-
- app/views/spree/api/v1/payments/index.
|
|
229
|
-
- app/views/spree/api/v1/payments/new.
|
|
230
|
-
- app/views/spree/api/v1/payments/show.
|
|
231
|
-
- app/views/spree/api/v1/payments/update_forbidden.
|
|
232
|
-
- app/views/spree/api/v1/product_properties/index.
|
|
233
|
-
- app/views/spree/api/v1/product_properties/new.
|
|
234
|
-
- app/views/spree/api/v1/product_properties/show.
|
|
235
|
-
- app/views/spree/api/v1/products/index.
|
|
236
|
-
- app/views/spree/api/v1/products/new.
|
|
237
|
-
- app/views/spree/api/v1/products/product.
|
|
238
|
-
- app/views/spree/api/v1/products/show.
|
|
239
|
-
- app/views/spree/api/v1/promotions/handler.
|
|
240
|
-
- app/views/spree/api/v1/promotions/show.
|
|
241
|
-
- app/views/spree/api/v1/properties/index.
|
|
242
|
-
- app/views/spree/api/v1/properties/new.
|
|
243
|
-
- app/views/spree/api/v1/properties/show.
|
|
244
|
-
- app/views/spree/api/v1/reimbursements/index.
|
|
245
|
-
- app/views/spree/api/v1/return_authorizations/index.
|
|
246
|
-
- app/views/spree/api/v1/return_authorizations/new.
|
|
247
|
-
- app/views/spree/api/v1/return_authorizations/show.
|
|
248
|
-
- app/views/spree/api/v1/shared/stock_location_required.
|
|
249
|
-
- app/views/spree/api/v1/shipments/big.
|
|
250
|
-
- app/views/spree/api/v1/shipments/cannot_ready_shipment.
|
|
251
|
-
- app/views/spree/api/v1/shipments/mine.
|
|
252
|
-
- app/views/spree/api/v1/shipments/show.
|
|
253
|
-
- app/views/spree/api/v1/shipments/small.
|
|
254
|
-
- app/views/spree/api/v1/shipping_rates/show.
|
|
255
|
-
- app/views/spree/api/v1/states/index.
|
|
256
|
-
- app/views/spree/api/v1/states/show.
|
|
257
|
-
- app/views/spree/api/v1/stock_items/index.
|
|
258
|
-
- app/views/spree/api/v1/stock_items/show.
|
|
259
|
-
- app/views/spree/api/v1/stock_locations/index.
|
|
260
|
-
- app/views/spree/api/v1/stock_locations/show.
|
|
261
|
-
- app/views/spree/api/v1/stock_movements/index.
|
|
262
|
-
- app/views/spree/api/v1/stock_movements/show.
|
|
263
|
-
- app/views/spree/api/v1/stores/index.
|
|
264
|
-
- app/views/spree/api/v1/stores/show.
|
|
265
|
-
- app/views/spree/api/v1/tags/index.
|
|
266
|
-
- app/views/spree/api/v1/taxonomies/index.
|
|
188
|
+
- app/views/spree/api/v1/line_items/new.rabl
|
|
189
|
+
- app/views/spree/api/v1/line_items/show.rabl
|
|
190
|
+
- app/views/spree/api/v1/option_types/index.rabl
|
|
191
|
+
- app/views/spree/api/v1/option_types/new.rabl
|
|
192
|
+
- app/views/spree/api/v1/option_types/show.rabl
|
|
193
|
+
- app/views/spree/api/v1/option_values/index.rabl
|
|
194
|
+
- app/views/spree/api/v1/option_values/new.rabl
|
|
195
|
+
- app/views/spree/api/v1/option_values/show.rabl
|
|
196
|
+
- app/views/spree/api/v1/orders/address.rabl
|
|
197
|
+
- app/views/spree/api/v1/orders/canceled.rabl
|
|
198
|
+
- app/views/spree/api/v1/orders/cart.rabl
|
|
199
|
+
- app/views/spree/api/v1/orders/complete.rabl
|
|
200
|
+
- app/views/spree/api/v1/orders/could_not_apply_coupon.rabl
|
|
201
|
+
- app/views/spree/api/v1/orders/could_not_transition.rabl
|
|
202
|
+
- app/views/spree/api/v1/orders/index.rabl
|
|
203
|
+
- app/views/spree/api/v1/orders/insufficient_quantity.rabl
|
|
204
|
+
- app/views/spree/api/v1/orders/invalid_shipping_method.rabl
|
|
205
|
+
- app/views/spree/api/v1/orders/mine.rabl
|
|
206
|
+
- app/views/spree/api/v1/orders/order.rabl
|
|
207
|
+
- app/views/spree/api/v1/orders/payment.rabl
|
|
208
|
+
- app/views/spree/api/v1/orders/show.rabl
|
|
209
|
+
- app/views/spree/api/v1/payments/credit_over_limit.rabl
|
|
210
|
+
- app/views/spree/api/v1/payments/index.rabl
|
|
211
|
+
- app/views/spree/api/v1/payments/new.rabl
|
|
212
|
+
- app/views/spree/api/v1/payments/show.rabl
|
|
213
|
+
- app/views/spree/api/v1/payments/update_forbidden.rabl
|
|
214
|
+
- app/views/spree/api/v1/product_properties/index.rabl
|
|
215
|
+
- app/views/spree/api/v1/product_properties/new.rabl
|
|
216
|
+
- app/views/spree/api/v1/product_properties/show.rabl
|
|
217
|
+
- app/views/spree/api/v1/products/index.rabl
|
|
218
|
+
- app/views/spree/api/v1/products/new.rabl
|
|
219
|
+
- app/views/spree/api/v1/products/product.rabl
|
|
220
|
+
- app/views/spree/api/v1/products/show.rabl
|
|
221
|
+
- app/views/spree/api/v1/promotions/handler.rabl
|
|
222
|
+
- app/views/spree/api/v1/promotions/show.rabl
|
|
223
|
+
- app/views/spree/api/v1/properties/index.rabl
|
|
224
|
+
- app/views/spree/api/v1/properties/new.rabl
|
|
225
|
+
- app/views/spree/api/v1/properties/show.rabl
|
|
226
|
+
- app/views/spree/api/v1/reimbursements/index.rabl
|
|
227
|
+
- app/views/spree/api/v1/return_authorizations/index.rabl
|
|
228
|
+
- app/views/spree/api/v1/return_authorizations/new.rabl
|
|
229
|
+
- app/views/spree/api/v1/return_authorizations/show.rabl
|
|
230
|
+
- app/views/spree/api/v1/shared/stock_location_required.rabl
|
|
231
|
+
- app/views/spree/api/v1/shipments/big.rabl
|
|
232
|
+
- app/views/spree/api/v1/shipments/cannot_ready_shipment.rabl
|
|
233
|
+
- app/views/spree/api/v1/shipments/mine.rabl
|
|
234
|
+
- app/views/spree/api/v1/shipments/show.rabl
|
|
235
|
+
- app/views/spree/api/v1/shipments/small.rabl
|
|
236
|
+
- app/views/spree/api/v1/shipping_rates/show.rabl
|
|
237
|
+
- app/views/spree/api/v1/states/index.rabl
|
|
238
|
+
- app/views/spree/api/v1/states/show.rabl
|
|
239
|
+
- app/views/spree/api/v1/stock_items/index.rabl
|
|
240
|
+
- app/views/spree/api/v1/stock_items/show.rabl
|
|
241
|
+
- app/views/spree/api/v1/stock_locations/index.rabl
|
|
242
|
+
- app/views/spree/api/v1/stock_locations/show.rabl
|
|
243
|
+
- app/views/spree/api/v1/stock_movements/index.rabl
|
|
244
|
+
- app/views/spree/api/v1/stock_movements/show.rabl
|
|
245
|
+
- app/views/spree/api/v1/stores/index.rabl
|
|
246
|
+
- app/views/spree/api/v1/stores/show.rabl
|
|
247
|
+
- app/views/spree/api/v1/tags/index.rabl
|
|
248
|
+
- app/views/spree/api/v1/taxonomies/index.rabl
|
|
267
249
|
- app/views/spree/api/v1/taxonomies/jstree.rabl
|
|
268
|
-
- app/views/spree/api/v1/taxonomies/nested.
|
|
269
|
-
- app/views/spree/api/v1/taxonomies/new.
|
|
270
|
-
- app/views/spree/api/v1/taxonomies/show.
|
|
271
|
-
- app/views/spree/api/v1/taxons/index.
|
|
250
|
+
- app/views/spree/api/v1/taxonomies/nested.rabl
|
|
251
|
+
- app/views/spree/api/v1/taxonomies/new.rabl
|
|
252
|
+
- app/views/spree/api/v1/taxonomies/show.rabl
|
|
253
|
+
- app/views/spree/api/v1/taxons/index.rabl
|
|
272
254
|
- app/views/spree/api/v1/taxons/jstree.rabl
|
|
273
|
-
- app/views/spree/api/v1/taxons/new.
|
|
274
|
-
- app/views/spree/api/v1/taxons/show.
|
|
275
|
-
- app/views/spree/api/v1/taxons/taxons.
|
|
276
|
-
- app/views/spree/api/v1/users/index.
|
|
277
|
-
- app/views/spree/api/v1/users/new.
|
|
278
|
-
- app/views/spree/api/v1/users/show.
|
|
279
|
-
- app/views/spree/api/v1/variants/big.
|
|
280
|
-
- app/views/spree/api/v1/variants/index.
|
|
281
|
-
- app/views/spree/api/v1/variants/new.
|
|
282
|
-
- app/views/spree/api/v1/variants/show.
|
|
283
|
-
- app/views/spree/api/v1/variants/small.
|
|
284
|
-
- app/views/spree/api/v1/zones/index.
|
|
285
|
-
- app/views/spree/api/v1/zones/show.
|
|
255
|
+
- app/views/spree/api/v1/taxons/new.rabl
|
|
256
|
+
- app/views/spree/api/v1/taxons/show.rabl
|
|
257
|
+
- app/views/spree/api/v1/taxons/taxons.rabl
|
|
258
|
+
- app/views/spree/api/v1/users/index.rabl
|
|
259
|
+
- app/views/spree/api/v1/users/new.rabl
|
|
260
|
+
- app/views/spree/api/v1/users/show.rabl
|
|
261
|
+
- app/views/spree/api/v1/variants/big.rabl
|
|
262
|
+
- app/views/spree/api/v1/variants/index.rabl
|
|
263
|
+
- app/views/spree/api/v1/variants/new.rabl
|
|
264
|
+
- app/views/spree/api/v1/variants/show.rabl
|
|
265
|
+
- app/views/spree/api/v1/variants/small.rabl
|
|
266
|
+
- app/views/spree/api/v1/zones/index.rabl
|
|
267
|
+
- app/views/spree/api/v1/zones/show.rabl
|
|
286
268
|
- config/initializers/doorkeeper.rb
|
|
287
269
|
- config/initializers/json_api_mime_types.rb
|
|
288
|
-
- config/initializers/
|
|
270
|
+
- config/initializers/rabl_rails6_fix.rb
|
|
289
271
|
- config/initializers/user_class_extensions.rb
|
|
290
272
|
- config/locales/en.yml
|
|
291
273
|
- config/routes.rb
|
|
@@ -314,7 +296,7 @@ homepage: http://spreecommerce.org
|
|
|
314
296
|
licenses:
|
|
315
297
|
- BSD-3-Clause
|
|
316
298
|
metadata: {}
|
|
317
|
-
post_install_message:
|
|
299
|
+
post_install_message:
|
|
318
300
|
rdoc_options: []
|
|
319
301
|
require_paths:
|
|
320
302
|
- lib
|
|
@@ -322,15 +304,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
322
304
|
requirements:
|
|
323
305
|
- - ">="
|
|
324
306
|
- !ruby/object:Gem::Version
|
|
325
|
-
version: 2.
|
|
307
|
+
version: 2.5.0
|
|
326
308
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
327
309
|
requirements:
|
|
328
|
-
- - "
|
|
310
|
+
- - ">"
|
|
329
311
|
- !ruby/object:Gem::Version
|
|
330
|
-
version:
|
|
312
|
+
version: 1.3.1
|
|
331
313
|
requirements: []
|
|
332
|
-
rubygems_version: 3.
|
|
333
|
-
signing_key:
|
|
314
|
+
rubygems_version: 3.0.2
|
|
315
|
+
signing_key:
|
|
334
316
|
specification_version: 4
|
|
335
317
|
summary: Spree's API
|
|
336
318
|
test_files: []
|