Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unified route names again #405

Merged
merged 2 commits into from
Mar 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# UPGRADE FROM 1.0.0-beta.18 to 1.0.0-beta.20
# UPGRADE FROM 1.0.0-beta.21 to 1.0.0-beta.22

* The configuration key for the shop api is now `sylius_shop_api`.
* The route names of the address book and the order are now renames to fit the schema `sylius_shop_api...`

# UPGRADE FROM 1.0.0-beta.17 to 1.0.0-beta.18

Expand Down
10 changes: 5 additions & 5 deletions src/Resources/config/routing/address_book.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
sylius_shop_show_address_book:
sylius_shop_api_show_address_book:
path: /address-book
methods: [GET]
defaults:
_controller: sylius.shop_api_plugin.controller.address_book.show_address_book_action

sylius_shop_create_address_book_entry:
sylius_shop_api_create_address_book_entry:
path: /address-book
methods: [POST]
defaults:
_controller: sylius.shop_api_plugin.controller.address_book.create_address_action

sylius_shop_remove_address_book_entry:
sylius_shop_api_remove_address_book_entry:
path: /address-book/{id}
methods: [DELETE]
defaults:
_controller: sylius.shop_api_plugin.controller.address_book.remove_address_action

sylius_shop_set_default_address:
sylius_shop_api_set_default_address:
path: /address-book/{id}/default
methods: [PATCH]
defaults:
_controller: sylius.shop_api_plugin.controller.address_book.set_default_address_action

sylius_shop_update_address_book_entry:
sylius_shop_api_update_address_book_entry:
path: /address-book/{id}
methods: [PUT]
defaults:
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/routing/customer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sylius_shop_api_me:
defaults:
_controller: sylius.shop_api_plugin.controller.customer.logged_in_customer_details_action

sylius_shop_update_customer:
sylius_shop_api_update_customer:
path: /me
methods: [PUT]
defaults:
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/config/routing/order.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
sylius_shop_orders_list:
sylius_shop_api_orders_list:
path: /orders
methods: [GET]
defaults:
_controller: sylius.shop_api_plugin.controller.order.show_orders_list_action

sylius_shop_order_details:
sylius_shop_api_order_details:
path: /orders/{tokenValue}
methods: [GET]
defaults:
Expand Down