spree_api_v1 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +189 -0
- data/.gitignore +23 -0
- data/.rspec +3 -0
- data/.rubocop.yml +24 -0
- data/CHANGELOG.md +3 -0
- data/CODE_OF_CONDUCT.md +22 -0
- data/Gemfile +59 -0
- data/LICENSE +26 -0
- data/README.md +62 -0
- data/Rakefile +15 -0
- data/app/controllers/spree/api/v1/addresses_controller.rb +46 -0
- data/app/controllers/spree/api/v1/base_controller.rb +174 -0
- data/app/controllers/spree/api/v1/checkouts_controller.rb +106 -0
- data/app/controllers/spree/api/v1/classifications_controller.rb +21 -0
- data/app/controllers/spree/api/v1/countries_controller.rb +22 -0
- data/app/controllers/spree/api/v1/credit_cards_controller.rb +26 -0
- data/app/controllers/spree/api/v1/customer_returns_controller.rb +25 -0
- data/app/controllers/spree/api/v1/images_controller.rb +58 -0
- data/app/controllers/spree/api/v1/inventory_units_controller.rb +54 -0
- data/app/controllers/spree/api/v1/line_items_controller.rb +70 -0
- data/app/controllers/spree/api/v1/option_types_controller.rb +60 -0
- data/app/controllers/spree/api/v1/option_values_controller.rb +62 -0
- data/app/controllers/spree/api/v1/orders_controller.rb +160 -0
- data/app/controllers/spree/api/v1/payments_controller.rb +82 -0
- data/app/controllers/spree/api/v1/product_properties_controller.rb +73 -0
- data/app/controllers/spree/api/v1/products_controller.rb +131 -0
- data/app/controllers/spree/api/v1/promotions_controller.rb +30 -0
- data/app/controllers/spree/api/v1/properties_controller.rb +70 -0
- data/app/controllers/spree/api/v1/reimbursements_controller.rb +25 -0
- data/app/controllers/spree/api/v1/return_authorizations_controller.rb +70 -0
- data/app/controllers/spree/api/v1/shipments_controller.rb +196 -0
- data/app/controllers/spree/api/v1/states_controller.rb +36 -0
- data/app/controllers/spree/api/v1/stock_items_controller.rb +82 -0
- data/app/controllers/spree/api/v1/stock_locations_controller.rb +53 -0
- data/app/controllers/spree/api/v1/stock_movements_controller.rb +45 -0
- data/app/controllers/spree/api/v1/stores_controller.rb +56 -0
- data/app/controllers/spree/api/v1/taxonomies_controller.rb +67 -0
- data/app/controllers/spree/api/v1/taxons_controller.rb +100 -0
- data/app/controllers/spree/api/v1/users_controller.rb +97 -0
- data/app/controllers/spree/api/v1/variants_controller.rb +81 -0
- data/app/controllers/spree/api/v1/zones_controller.rb +55 -0
- data/app/helpers/spree/api/api_helpers.rb +190 -0
- data/app/models/spree/api_v1_configuration.rb +5 -0
- data/app/views/spree/api/errors/gateway_error.rabl +2 -0
- data/app/views/spree/api/errors/invalid_api_key.rabl +2 -0
- data/app/views/spree/api/errors/invalid_resource.rabl +3 -0
- data/app/views/spree/api/errors/must_specify_api_key.rabl +2 -0
- data/app/views/spree/api/errors/not_found.rabl +2 -0
- data/app/views/spree/api/errors/unauthorized.rabl +2 -0
- data/app/views/spree/api/v1/addresses/show.rabl +10 -0
- data/app/views/spree/api/v1/adjustments/show.rabl +4 -0
- data/app/views/spree/api/v1/countries/index.rabl +7 -0
- data/app/views/spree/api/v1/countries/show.rabl +5 -0
- data/app/views/spree/api/v1/credit_cards/index.rabl +7 -0
- data/app/views/spree/api/v1/credit_cards/show.rabl +3 -0
- data/app/views/spree/api/v1/customer_returns/index.rabl +7 -0
- data/app/views/spree/api/v1/images/index.rabl +4 -0
- data/app/views/spree/api/v1/images/new.rabl +3 -0
- data/app/views/spree/api/v1/images/show.rabl +6 -0
- data/app/views/spree/api/v1/inventory_units/show.rabl +2 -0
- data/app/views/spree/api/v1/line_items/new.rabl +3 -0
- data/app/views/spree/api/v1/line_items/show.rabl +14 -0
- data/app/views/spree/api/v1/option_types/index.rabl +3 -0
- data/app/views/spree/api/v1/option_types/new.rabl +3 -0
- data/app/views/spree/api/v1/option_types/show.rabl +5 -0
- data/app/views/spree/api/v1/option_values/index.rabl +3 -0
- data/app/views/spree/api/v1/option_values/new.rabl +3 -0
- data/app/views/spree/api/v1/option_values/show.rabl +2 -0
- data/app/views/spree/api/v1/orders/address.rabl +0 -0
- data/app/views/spree/api/v1/orders/canceled.rabl +0 -0
- data/app/views/spree/api/v1/orders/cart.rabl +0 -0
- data/app/views/spree/api/v1/orders/complete.rabl +0 -0
- data/app/views/spree/api/v1/orders/could_not_apply_coupon.rabl +2 -0
- data/app/views/spree/api/v1/orders/could_not_transition.rabl +3 -0
- data/app/views/spree/api/v1/orders/index.rabl +7 -0
- data/app/views/spree/api/v1/orders/insufficient_quantity.rabl +2 -0
- data/app/views/spree/api/v1/orders/invalid_shipping_method.rabl +2 -0
- data/app/views/spree/api/v1/orders/mine.rabl +9 -0
- data/app/views/spree/api/v1/orders/order.rabl +10 -0
- data/app/views/spree/api/v1/orders/payment.rabl +3 -0
- data/app/views/spree/api/v1/orders/show.rabl +51 -0
- data/app/views/spree/api/v1/payments/credit_over_limit.rabl +2 -0
- data/app/views/spree/api/v1/payments/index.rabl +7 -0
- data/app/views/spree/api/v1/payments/new.rabl +5 -0
- data/app/views/spree/api/v1/payments/show.rabl +2 -0
- data/app/views/spree/api/v1/payments/update_forbidden.rabl +2 -0
- data/app/views/spree/api/v1/product_properties/index.rabl +7 -0
- data/app/views/spree/api/v1/product_properties/new.rabl +2 -0
- data/app/views/spree/api/v1/product_properties/show.rabl +2 -0
- data/app/views/spree/api/v1/products/index.rabl +9 -0
- data/app/views/spree/api/v1/products/new.rabl +3 -0
- data/app/views/spree/api/v1/products/product.rabl +1 -0
- data/app/views/spree/api/v1/products/show.rabl +36 -0
- data/app/views/spree/api/v1/promotions/handler.rabl +5 -0
- data/app/views/spree/api/v1/promotions/show.rabl +2 -0
- data/app/views/spree/api/v1/properties/index.rabl +7 -0
- data/app/views/spree/api/v1/properties/new.rabl +2 -0
- data/app/views/spree/api/v1/properties/show.rabl +2 -0
- data/app/views/spree/api/v1/reimbursements/index.rabl +7 -0
- data/app/views/spree/api/v1/return_authorizations/index.rabl +7 -0
- data/app/views/spree/api/v1/return_authorizations/new.rabl +3 -0
- data/app/views/spree/api/v1/return_authorizations/show.rabl +2 -0
- data/app/views/spree/api/v1/shared/stock_location_required.rabl +2 -0
- data/app/views/spree/api/v1/shipments/big.rabl +48 -0
- data/app/views/spree/api/v1/shipments/cannot_ready_shipment.rabl +2 -0
- data/app/views/spree/api/v1/shipments/mine.rabl +9 -0
- data/app/views/spree/api/v1/shipments/show.rabl +32 -0
- data/app/views/spree/api/v1/shipments/small.rabl +37 -0
- data/app/views/spree/api/v1/shipping_rates/show.rabl +2 -0
- data/app/views/spree/api/v1/states/index.rabl +12 -0
- data/app/views/spree/api/v1/states/show.rabl +2 -0
- data/app/views/spree/api/v1/stock_items/index.rabl +7 -0
- data/app/views/spree/api/v1/stock_items/show.rabl +5 -0
- data/app/views/spree/api/v1/stock_locations/index.rabl +7 -0
- data/app/views/spree/api/v1/stock_locations/show.rabl +8 -0
- data/app/views/spree/api/v1/stock_movements/index.rabl +7 -0
- data/app/views/spree/api/v1/stock_movements/show.rabl +5 -0
- data/app/views/spree/api/v1/stores/index.rabl +4 -0
- data/app/views/spree/api/v1/stores/show.rabl +2 -0
- data/app/views/spree/api/v1/tags/index.rabl +9 -0
- data/app/views/spree/api/v1/taxonomies/index.rabl +7 -0
- data/app/views/spree/api/v1/taxonomies/jstree.rabl +7 -0
- data/app/views/spree/api/v1/taxonomies/nested.rabl +11 -0
- data/app/views/spree/api/v1/taxonomies/new.rabl +3 -0
- data/app/views/spree/api/v1/taxonomies/show.rabl +15 -0
- data/app/views/spree/api/v1/taxons/index.rabl +10 -0
- data/app/views/spree/api/v1/taxons/jstree.rabl +7 -0
- data/app/views/spree/api/v1/taxons/new.rabl +3 -0
- data/app/views/spree/api/v1/taxons/show.rabl +6 -0
- data/app/views/spree/api/v1/taxons/taxons.rabl +5 -0
- data/app/views/spree/api/v1/users/index.rabl +7 -0
- data/app/views/spree/api/v1/users/new.rabl +3 -0
- data/app/views/spree/api/v1/users/show.rabl +11 -0
- data/app/views/spree/api/v1/variants/big.rabl +14 -0
- data/app/views/spree/api/v1/variants/index.rabl +9 -0
- data/app/views/spree/api/v1/variants/new.rabl +2 -0
- data/app/views/spree/api/v1/variants/show.rabl +3 -0
- data/app/views/spree/api/v1/variants/small.rabl +18 -0
- data/app/views/spree/api/v1/zones/index.rabl +7 -0
- data/app/views/spree/api/v1/zones/show.rabl +6 -0
- data/config/initializers/rabl.rb +9 -0
- data/config/routes.rb +123 -0
- data/lib/spree/api_v1/controller_setup.rb +19 -0
- data/lib/spree/api_v1/engine.rb +27 -0
- data/lib/spree/api_v1/factories.rb +6 -0
- data/lib/spree/api_v1/responders/rabl_template.rb +28 -0
- data/lib/spree/api_v1/responders.rb +11 -0
- data/lib/spree/api_v1/testing_support/helpers.rb +44 -0
- data/lib/spree/api_v1/testing_support/setup.rb +16 -0
- data/lib/spree/api_v1/version.rb +9 -0
- data/lib/spree/api_v1.rb +9 -0
- data/lib/spree_api_v1.rb +3 -0
- data/script/rails +9 -0
- data/spec/fixtures/files/icon_256x256.jpg +0 -0
- data/spec/fixtures/thinking-cat.jpg +0 -0
- data/spree_api_v1.gemspec +26 -0
- metadata +261 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
module Spree
|
2
|
+
module ApiV1
|
3
|
+
module TestingSupport
|
4
|
+
module Helpers
|
5
|
+
def json_response
|
6
|
+
case body = JSON.parse(response.body)
|
7
|
+
when Hash
|
8
|
+
body.with_indifferent_access
|
9
|
+
when Array
|
10
|
+
body
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def assert_not_found!
|
15
|
+
expect(json_response).to eq('error' => 'The resource you were looking for could not be found.')
|
16
|
+
expect(response.status).to eq 404
|
17
|
+
end
|
18
|
+
|
19
|
+
def assert_unauthorized!
|
20
|
+
expect(json_response).to eq('error' => 'You are not authorized to perform that action.')
|
21
|
+
expect(response.status).to eq 401
|
22
|
+
end
|
23
|
+
|
24
|
+
def stub_authentication!
|
25
|
+
allow(Spree.user_class).to receive(:find_by).with(hash_including(:spree_api_key)) { current_api_user }
|
26
|
+
end
|
27
|
+
|
28
|
+
# This method can be overridden (with a let block) inside a context
|
29
|
+
# For instance, if you wanted to have an admin user instead.
|
30
|
+
def current_api_user
|
31
|
+
@current_api_user ||= stub_model(Spree.user_class, email: 'spree@example.com')
|
32
|
+
end
|
33
|
+
|
34
|
+
def image(filename)
|
35
|
+
File.open(Spree::Api::Engine.root + 'spec/fixtures' + filename)
|
36
|
+
end
|
37
|
+
|
38
|
+
def upload_image(filename)
|
39
|
+
fixture_file_upload(image(filename).path, 'image/jpg')
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Spree
|
2
|
+
module ApiV1
|
3
|
+
module TestingSupport
|
4
|
+
module Setup
|
5
|
+
def sign_in_as_admin!
|
6
|
+
let!(:current_api_user) do
|
7
|
+
user = stub_model(Spree.user_class)
|
8
|
+
allow(user).to receive_message_chain(:spree_roles, :pluck).and_return(['admin'])
|
9
|
+
allow(user).to receive(:has_spree_role?).with('admin').and_return(true)
|
10
|
+
user
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/spree/api_v1.rb
ADDED
data/lib/spree_api_v1.rb
ADDED
data/script/rails
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
5
|
+
ENGINE_PATH = File.expand_path('../../lib/spree/api_v1/engine', __FILE__)
|
6
|
+
|
7
|
+
require 'rails/all'
|
8
|
+
require 'rails/engine/commands'
|
9
|
+
|
Binary file
|
Binary file
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require_relative 'lib/spree/api_v1/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.platform = Gem::Platform::RUBY
|
6
|
+
s.name = 'spree_api_v1'
|
7
|
+
s.version = Spree::ApiV1.version
|
8
|
+
s.summary = 'Add extension summary here'
|
9
|
+
s.description = 'Add (optional) extension description here'
|
10
|
+
s.required_ruby_version = '>= 2.5'
|
11
|
+
|
12
|
+
s.author = 'You'
|
13
|
+
s.email = 'you@example.com'
|
14
|
+
s.homepage = 'https://github.com/your-github-handle/spree_api_v1'
|
15
|
+
s.license = 'BSD-3-Clause'
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n").reject { |f| f.match(/^spec/) && !f.match(/^spec\/fixtures/) }
|
18
|
+
s.require_path = 'lib'
|
19
|
+
s.requirements << 'none'
|
20
|
+
|
21
|
+
s.add_dependency 'spree', '>= 4.4.0.rc1'
|
22
|
+
s.add_dependency 'spree_extension'
|
23
|
+
s.add_dependency 'rabl', '~> 0.14', '>= 0.14.2'
|
24
|
+
s.add_dependency 'responders'
|
25
|
+
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,261 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spree_api_v1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 4.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- You
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-12-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: spree
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.4.0.rc1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.4.0.rc1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: spree_extension
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rabl
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.14'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 0.14.2
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0.14'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 0.14.2
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: responders
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
description: Add (optional) extension description here
|
76
|
+
email: you@example.com
|
77
|
+
executables: []
|
78
|
+
extensions: []
|
79
|
+
extra_rdoc_files: []
|
80
|
+
files:
|
81
|
+
- ".circleci/config.yml"
|
82
|
+
- ".gitignore"
|
83
|
+
- ".rspec"
|
84
|
+
- ".rubocop.yml"
|
85
|
+
- CHANGELOG.md
|
86
|
+
- CODE_OF_CONDUCT.md
|
87
|
+
- Gemfile
|
88
|
+
- LICENSE
|
89
|
+
- README.md
|
90
|
+
- Rakefile
|
91
|
+
- app/controllers/spree/api/v1/addresses_controller.rb
|
92
|
+
- app/controllers/spree/api/v1/base_controller.rb
|
93
|
+
- app/controllers/spree/api/v1/checkouts_controller.rb
|
94
|
+
- app/controllers/spree/api/v1/classifications_controller.rb
|
95
|
+
- app/controllers/spree/api/v1/countries_controller.rb
|
96
|
+
- app/controllers/spree/api/v1/credit_cards_controller.rb
|
97
|
+
- app/controllers/spree/api/v1/customer_returns_controller.rb
|
98
|
+
- app/controllers/spree/api/v1/images_controller.rb
|
99
|
+
- app/controllers/spree/api/v1/inventory_units_controller.rb
|
100
|
+
- app/controllers/spree/api/v1/line_items_controller.rb
|
101
|
+
- app/controllers/spree/api/v1/option_types_controller.rb
|
102
|
+
- app/controllers/spree/api/v1/option_values_controller.rb
|
103
|
+
- app/controllers/spree/api/v1/orders_controller.rb
|
104
|
+
- app/controllers/spree/api/v1/payments_controller.rb
|
105
|
+
- app/controllers/spree/api/v1/product_properties_controller.rb
|
106
|
+
- app/controllers/spree/api/v1/products_controller.rb
|
107
|
+
- app/controllers/spree/api/v1/promotions_controller.rb
|
108
|
+
- app/controllers/spree/api/v1/properties_controller.rb
|
109
|
+
- app/controllers/spree/api/v1/reimbursements_controller.rb
|
110
|
+
- app/controllers/spree/api/v1/return_authorizations_controller.rb
|
111
|
+
- app/controllers/spree/api/v1/shipments_controller.rb
|
112
|
+
- app/controllers/spree/api/v1/states_controller.rb
|
113
|
+
- app/controllers/spree/api/v1/stock_items_controller.rb
|
114
|
+
- app/controllers/spree/api/v1/stock_locations_controller.rb
|
115
|
+
- app/controllers/spree/api/v1/stock_movements_controller.rb
|
116
|
+
- app/controllers/spree/api/v1/stores_controller.rb
|
117
|
+
- app/controllers/spree/api/v1/taxonomies_controller.rb
|
118
|
+
- app/controllers/spree/api/v1/taxons_controller.rb
|
119
|
+
- app/controllers/spree/api/v1/users_controller.rb
|
120
|
+
- app/controllers/spree/api/v1/variants_controller.rb
|
121
|
+
- app/controllers/spree/api/v1/zones_controller.rb
|
122
|
+
- app/helpers/spree/api/api_helpers.rb
|
123
|
+
- app/models/spree/api_v1_configuration.rb
|
124
|
+
- app/views/spree/api/errors/gateway_error.rabl
|
125
|
+
- app/views/spree/api/errors/invalid_api_key.rabl
|
126
|
+
- app/views/spree/api/errors/invalid_resource.rabl
|
127
|
+
- app/views/spree/api/errors/must_specify_api_key.rabl
|
128
|
+
- app/views/spree/api/errors/not_found.rabl
|
129
|
+
- app/views/spree/api/errors/unauthorized.rabl
|
130
|
+
- app/views/spree/api/v1/addresses/show.rabl
|
131
|
+
- app/views/spree/api/v1/adjustments/show.rabl
|
132
|
+
- app/views/spree/api/v1/countries/index.rabl
|
133
|
+
- app/views/spree/api/v1/countries/show.rabl
|
134
|
+
- app/views/spree/api/v1/credit_cards/index.rabl
|
135
|
+
- app/views/spree/api/v1/credit_cards/show.rabl
|
136
|
+
- app/views/spree/api/v1/customer_returns/index.rabl
|
137
|
+
- app/views/spree/api/v1/images/index.rabl
|
138
|
+
- app/views/spree/api/v1/images/new.rabl
|
139
|
+
- app/views/spree/api/v1/images/show.rabl
|
140
|
+
- app/views/spree/api/v1/inventory_units/show.rabl
|
141
|
+
- app/views/spree/api/v1/line_items/new.rabl
|
142
|
+
- app/views/spree/api/v1/line_items/show.rabl
|
143
|
+
- app/views/spree/api/v1/option_types/index.rabl
|
144
|
+
- app/views/spree/api/v1/option_types/new.rabl
|
145
|
+
- app/views/spree/api/v1/option_types/show.rabl
|
146
|
+
- app/views/spree/api/v1/option_values/index.rabl
|
147
|
+
- app/views/spree/api/v1/option_values/new.rabl
|
148
|
+
- app/views/spree/api/v1/option_values/show.rabl
|
149
|
+
- app/views/spree/api/v1/orders/address.rabl
|
150
|
+
- app/views/spree/api/v1/orders/canceled.rabl
|
151
|
+
- app/views/spree/api/v1/orders/cart.rabl
|
152
|
+
- app/views/spree/api/v1/orders/complete.rabl
|
153
|
+
- app/views/spree/api/v1/orders/could_not_apply_coupon.rabl
|
154
|
+
- app/views/spree/api/v1/orders/could_not_transition.rabl
|
155
|
+
- app/views/spree/api/v1/orders/index.rabl
|
156
|
+
- app/views/spree/api/v1/orders/insufficient_quantity.rabl
|
157
|
+
- app/views/spree/api/v1/orders/invalid_shipping_method.rabl
|
158
|
+
- app/views/spree/api/v1/orders/mine.rabl
|
159
|
+
- app/views/spree/api/v1/orders/order.rabl
|
160
|
+
- app/views/spree/api/v1/orders/payment.rabl
|
161
|
+
- app/views/spree/api/v1/orders/show.rabl
|
162
|
+
- app/views/spree/api/v1/payments/credit_over_limit.rabl
|
163
|
+
- app/views/spree/api/v1/payments/index.rabl
|
164
|
+
- app/views/spree/api/v1/payments/new.rabl
|
165
|
+
- app/views/spree/api/v1/payments/show.rabl
|
166
|
+
- app/views/spree/api/v1/payments/update_forbidden.rabl
|
167
|
+
- app/views/spree/api/v1/product_properties/index.rabl
|
168
|
+
- app/views/spree/api/v1/product_properties/new.rabl
|
169
|
+
- app/views/spree/api/v1/product_properties/show.rabl
|
170
|
+
- app/views/spree/api/v1/products/index.rabl
|
171
|
+
- app/views/spree/api/v1/products/new.rabl
|
172
|
+
- app/views/spree/api/v1/products/product.rabl
|
173
|
+
- app/views/spree/api/v1/products/show.rabl
|
174
|
+
- app/views/spree/api/v1/promotions/handler.rabl
|
175
|
+
- app/views/spree/api/v1/promotions/show.rabl
|
176
|
+
- app/views/spree/api/v1/properties/index.rabl
|
177
|
+
- app/views/spree/api/v1/properties/new.rabl
|
178
|
+
- app/views/spree/api/v1/properties/show.rabl
|
179
|
+
- app/views/spree/api/v1/reimbursements/index.rabl
|
180
|
+
- app/views/spree/api/v1/return_authorizations/index.rabl
|
181
|
+
- app/views/spree/api/v1/return_authorizations/new.rabl
|
182
|
+
- app/views/spree/api/v1/return_authorizations/show.rabl
|
183
|
+
- app/views/spree/api/v1/shared/stock_location_required.rabl
|
184
|
+
- app/views/spree/api/v1/shipments/big.rabl
|
185
|
+
- app/views/spree/api/v1/shipments/cannot_ready_shipment.rabl
|
186
|
+
- app/views/spree/api/v1/shipments/mine.rabl
|
187
|
+
- app/views/spree/api/v1/shipments/show.rabl
|
188
|
+
- app/views/spree/api/v1/shipments/small.rabl
|
189
|
+
- app/views/spree/api/v1/shipping_rates/show.rabl
|
190
|
+
- app/views/spree/api/v1/states/index.rabl
|
191
|
+
- app/views/spree/api/v1/states/show.rabl
|
192
|
+
- app/views/spree/api/v1/stock_items/index.rabl
|
193
|
+
- app/views/spree/api/v1/stock_items/show.rabl
|
194
|
+
- app/views/spree/api/v1/stock_locations/index.rabl
|
195
|
+
- app/views/spree/api/v1/stock_locations/show.rabl
|
196
|
+
- app/views/spree/api/v1/stock_movements/index.rabl
|
197
|
+
- app/views/spree/api/v1/stock_movements/show.rabl
|
198
|
+
- app/views/spree/api/v1/stores/index.rabl
|
199
|
+
- app/views/spree/api/v1/stores/show.rabl
|
200
|
+
- app/views/spree/api/v1/tags/index.rabl
|
201
|
+
- app/views/spree/api/v1/taxonomies/index.rabl
|
202
|
+
- app/views/spree/api/v1/taxonomies/jstree.rabl
|
203
|
+
- app/views/spree/api/v1/taxonomies/nested.rabl
|
204
|
+
- app/views/spree/api/v1/taxonomies/new.rabl
|
205
|
+
- app/views/spree/api/v1/taxonomies/show.rabl
|
206
|
+
- app/views/spree/api/v1/taxons/index.rabl
|
207
|
+
- app/views/spree/api/v1/taxons/jstree.rabl
|
208
|
+
- app/views/spree/api/v1/taxons/new.rabl
|
209
|
+
- app/views/spree/api/v1/taxons/show.rabl
|
210
|
+
- app/views/spree/api/v1/taxons/taxons.rabl
|
211
|
+
- app/views/spree/api/v1/users/index.rabl
|
212
|
+
- app/views/spree/api/v1/users/new.rabl
|
213
|
+
- app/views/spree/api/v1/users/show.rabl
|
214
|
+
- app/views/spree/api/v1/variants/big.rabl
|
215
|
+
- app/views/spree/api/v1/variants/index.rabl
|
216
|
+
- app/views/spree/api/v1/variants/new.rabl
|
217
|
+
- app/views/spree/api/v1/variants/show.rabl
|
218
|
+
- app/views/spree/api/v1/variants/small.rabl
|
219
|
+
- app/views/spree/api/v1/zones/index.rabl
|
220
|
+
- app/views/spree/api/v1/zones/show.rabl
|
221
|
+
- config/initializers/rabl.rb
|
222
|
+
- config/routes.rb
|
223
|
+
- lib/spree/api_v1.rb
|
224
|
+
- lib/spree/api_v1/controller_setup.rb
|
225
|
+
- lib/spree/api_v1/engine.rb
|
226
|
+
- lib/spree/api_v1/factories.rb
|
227
|
+
- lib/spree/api_v1/responders.rb
|
228
|
+
- lib/spree/api_v1/responders/rabl_template.rb
|
229
|
+
- lib/spree/api_v1/testing_support/helpers.rb
|
230
|
+
- lib/spree/api_v1/testing_support/setup.rb
|
231
|
+
- lib/spree/api_v1/version.rb
|
232
|
+
- lib/spree_api_v1.rb
|
233
|
+
- script/rails
|
234
|
+
- spec/fixtures/files/icon_256x256.jpg
|
235
|
+
- spec/fixtures/thinking-cat.jpg
|
236
|
+
- spree_api_v1.gemspec
|
237
|
+
homepage: https://github.com/your-github-handle/spree_api_v1
|
238
|
+
licenses:
|
239
|
+
- BSD-3-Clause
|
240
|
+
metadata: {}
|
241
|
+
post_install_message:
|
242
|
+
rdoc_options: []
|
243
|
+
require_paths:
|
244
|
+
- lib
|
245
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - ">="
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '2.5'
|
250
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
|
+
requirements:
|
252
|
+
- - ">="
|
253
|
+
- !ruby/object:Gem::Version
|
254
|
+
version: '0'
|
255
|
+
requirements:
|
256
|
+
- none
|
257
|
+
rubygems_version: 3.2.32
|
258
|
+
signing_key:
|
259
|
+
specification_version: 4
|
260
|
+
summary: Add extension summary here
|
261
|
+
test_files: []
|