solidus_api 3.0.0.rc2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/spree/api/base_controller.rb +6 -3
- data/app/controllers/spree/api/customer_returns_controller.rb +30 -1
- data/app/controllers/spree/api/shipments_controller.rb +1 -1
- data/app/controllers/spree/api/taxons_controller.rb +1 -1
- data/app/controllers/spree/api/variants_controller.rb +1 -1
- data/app/helpers/spree/api/api_helpers.rb +13 -134
- data/app/views/spree/api/products/_product.json.jbuilder +2 -2
- data/app/views/spree/api/variants/_small.json.jbuilder +2 -2
- data/lib/spree/api/engine.rb +4 -0
- data/lib/spree/api_configuration.rb +128 -0
- data/openapi/main.hub.yml +3 -3
- data/openapi/pagination-and-filtering.md +23 -0
- data/openapi/solidus-api.oas.yml +1130 -361
- metadata +6 -6
- data/openapi/pagination.md +0 -7
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jbuilder
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.
|
61
|
+
version: 3.1.0
|
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: 3.
|
68
|
+
version: 3.1.0
|
69
69
|
description: REST API for the Solidus e-commerce framework.
|
70
70
|
email: contact@solidus.io
|
71
71
|
executables: []
|
@@ -248,7 +248,7 @@ files:
|
|
248
248
|
- openapi/errors.md
|
249
249
|
- openapi/lint.yml
|
250
250
|
- openapi/main.hub.yml
|
251
|
-
- openapi/pagination.md
|
251
|
+
- openapi/pagination-and-filtering.md
|
252
252
|
- openapi/solidus-api.oas.yml
|
253
253
|
- openapi/theme.css
|
254
254
|
- solidus_api.gemspec
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
- !ruby/object:Gem::Version
|
272
272
|
version: 1.8.23
|
273
273
|
requirements: []
|
274
|
-
rubygems_version: 3.
|
274
|
+
rubygems_version: 3.2.20
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
277
|
summary: REST API for the Solidus e-commerce framework.
|
data/openapi/pagination.md
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# Pagination
|
2
|
-
|
3
|
-
Most endpoints that return a collection are paginated. A paginated response contains metadata about the current page at the root level and the resources in the current page in a child key named after the resource (e.g. `orders`).
|
4
|
-
|
5
|
-
You can pass the `page` and `per_page` parameters to set the current page and the desired number of items per page. Note that the default and the maximum number of items per page is decided at the application level.
|
6
|
-
|
7
|
-
All pagination metadata is documented in the individual API endpoints, so take a look there if you're unsure what data you can expect.
|