-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor #420 Unify product routing (mamazu)
This PR was merged into the 1.0-dev branch. Discussion ---------- Closes #185 Commits ------- f10503b Adding new routes 728e41a Adding the new docs c2599c3 Added redirect for deprecated route bc2037d Fixing the generated routes in test 5f557a5 Fixing redirect 3d06a4d Removing the old routes and fixing the tests 28cdbb2 Adding the upgrade docs 4badec1 Fixing formatting of the upgrade.md c7a5baf Fixing documentation issues
- Loading branch information
Showing
53 changed files
with
441 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,48 @@ | ||
sylius_shop_api_product_show_details_by_code: | ||
sylius_shop_api_product_show_details_by_code_deprecated: | ||
path: /products/{code} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_details_by_code_action | ||
|
||
sylius_shop_api_product_show_catalog_by_code: | ||
sylius_shop_api_product_show_catalog_by_code_deprecated: | ||
path: /taxon-products/{code} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_catalog_by_taxon_code_action | ||
|
||
sylius_shop_api_product_show_reviews_by_code: | ||
sylius_shop_api_product_show_reviews_by_code_depricated: | ||
path: /products/{code}/reviews | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_reviews_by_code_action | ||
|
||
sylius_shop_api_add_product_review_by_code: | ||
sylius_shop_api_add_product_review_by_code_deprecated: | ||
path: /products/{code}/reviews | ||
methods: [POST] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.add_review_by_code_action | ||
|
||
# New routes | ||
sylius_shop_api_product_show_details_by_code: | ||
path: /products/by-code/{code} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_details_by_code_action | ||
|
||
sylius_shop_api_product_show_catalog_by_code: | ||
path: /taxon-products/by-code/{code} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_catalog_by_taxon_code_action | ||
|
||
sylius_shop_api_product_show_reviews_by_code: | ||
path: /products/by-code/{code}/reviews | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_reviews_by_code_action | ||
|
||
sylius_shop_api_add_product_review_by_code: | ||
path: /products/by-code/{code}/reviews | ||
methods: [POST] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.add_review_by_code_action |
Oops, something went wrong.