From c56c5d0028bd52b0be90b15e8964284cb6b1003c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 Feb 2021 08:52:23 +0000 Subject: [PATCH 1/2] Bump rswag from 2.3.3 to 2.4.0 Bumps [rswag](https://github.com/rswag/rswag) from 2.3.3 to 2.4.0. - [Release notes](https://github.com/rswag/rswag/releases) - [Changelog](https://github.com/rswag/rswag/blob/master/CHANGELOG.md) - [Commits](https://github.com/rswag/rswag/compare/2.3.3...2.4.0) Signed-off-by: dependabot[bot] --- Gemfile.lock | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 6c5e660c83..5be13aa269 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -520,7 +520,7 @@ GEM bundler (>= 1.3.0, < 2.0) railties (= 4.2.11.3) sprockets-rails - rails-deprecated_sanitizer (1.0.3) + rails-deprecated_sanitizer (1.0.4) activesupport (>= 4.2.0.alpha) rails-dom-testing (1.0.9) activesupport (>= 4.2.0, < 5.0) @@ -598,17 +598,17 @@ GEM rspec-retry (0.6.2) rspec-core (> 3.3) rspec-support (3.10.1) - rswag (2.3.3) - rswag-api (= 2.3.3) - rswag-specs (= 2.3.3) - rswag-ui (= 2.3.3) - rswag-api (2.3.3) + rswag (2.4.0) + rswag-api (= 2.4.0) + rswag-specs (= 2.4.0) + rswag-ui (= 2.4.0) + rswag-api (2.4.0) railties (>= 3.1, < 7.0) - rswag-specs (2.3.3) + rswag-specs (2.4.0) activesupport (>= 3.1, < 7.0) json-schema (~> 2.2) railties (>= 3.1, < 7.0) - rswag-ui (2.3.3) + rswag-ui (2.4.0) actionpack (>= 3.1, < 7.0) railties (>= 3.1, < 7.0) rubocop (1.10.0) From bcd9ea2b875a255fd953d7d547cd52258dc77ef9 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 24 Feb 2021 15:45:47 +1100 Subject: [PATCH 2/2] Update generated swagger file rake rswag PATTERN="spec/requests/api/*_spec.rb" This file is just a demo so far. The more complete description of the API is: /swagger.yaml --- swagger/v1/swagger.yaml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/swagger/v1/swagger.yaml b/swagger/v1/swagger.yaml index 88d54ed960..5898f1521e 100644 --- a/swagger/v1/swagger.yaml +++ b/swagger/v1/swagger.yaml @@ -76,43 +76,51 @@ paths: parameters: - name: X-Spree-Token in: header - type: string + schema: + type: string - name: q[distributor_id_eq] in: query - type: string required: false description: Query orders for a specific distributor id. + schema: + type: string - name: q[completed_at_gt] in: query - type: string required: false description: Query orders completed after a date. + schema: + type: string - name: q[completed_at_lt] in: query - type: string required: false description: Query orders completed before a date. + schema: + type: string - name: q[state_eq] in: query - type: string required: false description: Query orders by order state, eg 'cart', 'complete'. + schema: + type: string - name: q[payment_state_eq] in: query - type: string required: false description: Query orders by order payment_state, eg 'balance_due', 'paid', 'failed'. + schema: + type: string - name: q[email_cont] in: query - type: string required: false description: Query orders where the order email contains a string. + schema: + type: string - name: q[order_cycle_id_eq] in: query - type: string required: false description: Query orders for a specific order_cycle id. + schema: + type: string responses: '200': description: get orders