-
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.
minor #449 fixed product reviews by product code route by api convent…
…ion (antonioperic) This PR was merged into the 1.0-dev branch. Discussion ---------- Commits ------- a63a76d fixed product reviews by product code route by api convention 41389e0 fixed tests for adding and getting reviews for products by product slug 87de8f5 revert 3cadb9c improved product api routing configuration 549c78b revert doctrine config b173ba7 updated readme file
- Loading branch information
Showing
7 changed files
with
49 additions
and
48 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
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,31 +1,31 @@ | ||
sylius_shop_api_product_show_details_by_slug: | ||
path: /products/by-slug/{slug} | ||
sylius_shop_api_product_show_reviews_by_slug: | ||
path: /products/by-slug/{slug}/reviews | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_details_by_slug_action | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_reviews_by_slug_action | ||
requirements: | ||
slug: .+ | ||
|
||
sylius_shop_api_product_show_catalog_by_slug: | ||
path: /taxon-products/by-slug/{taxonSlug} | ||
methods: [GET] | ||
sylius_shop_api_add_product_review_by_slug: | ||
path: /products/by-slug/{slug}/reviews | ||
methods: [POST] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_catalog_by_taxon_slug_action | ||
_controller: sylius.shop_api_plugin.controller.product.add_review_by_slug_action | ||
requirements: | ||
taxonSlug: .+ | ||
slug: .+ | ||
|
||
sylius_shop_api_product_show_reviews_by_slug: | ||
path: /product/by-slug/{slug}/reviews | ||
sylius_shop_api_product_show_details_by_slug: | ||
path: /products/by-slug/{slug} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_reviews_by_slug_action | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_details_by_slug_action | ||
requirements: | ||
slug: .+ | ||
|
||
sylius_shop_api_add_product_review_by_slug: | ||
path: /product/by-slug/{slug}/reviews | ||
methods: [POST] | ||
sylius_shop_api_product_show_catalog_by_slug: | ||
path: /taxon-products/by-slug/{taxonSlug} | ||
methods: [GET] | ||
defaults: | ||
_controller: sylius.shop_api_plugin.controller.product.add_review_by_slug_action | ||
_controller: sylius.shop_api_plugin.controller.product.show_product_catalog_by_taxon_slug_action | ||
requirements: | ||
slug: .+ | ||
taxonSlug: .+ |
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