-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[API] Mention resource configuration changes in upgrade file #17391
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,42 +122,6 @@ All the `setter` methods have been removed from the commands above and also ther | |
) | ||
``` | ||
|
||
* Updated API routes related to avatar management: | ||
|
||
Previous Routes: | ||
* `'GET' - /api/v2/admin/avatar-images/{id}` | ||
* `'POST' - /api/v2/admin/avatar-images` | ||
* `'DELETE' - /api/v2/admin/avatar-images/{id}` | ||
|
||
New Routes: | ||
* `'GET' - /api/v2/admin/administrators/{id}/avatar-image` | ||
* `'POST' - /api/v2/admin/administrators/{id}/avatar-image` | ||
* `'DELETE' - /api/v2/admin/administrators/{id}/avatar-image` | ||
|
||
* Updated API routes related to shop user management: | ||
|
||
Previous Routes: | ||
* `'POST' - /api/v2/shop/reset-password-requests` | ||
* `'PATCH' - /api/v2/shop/reset-password-requests/{resetPasswordToken}` | ||
* `'POST' - /api/v2/shop/account-verification-requests` | ||
* `'PATCH - /api/v2/shop/account-verification-requests/{token}` | ||
|
||
New Routes: | ||
* `'POST' - /api/v2/shop/reset-password` | ||
* `'PATCH' - /api/v2/shop/reset-password/{resetPasswordToken}` | ||
* `'POST' - /api/v2/shop/verify-shop-user` | ||
* `'PATCH' - /api/v2/shop/verify-shop-user/{token}` | ||
|
||
* Updated API routes related to admin user management: | ||
|
||
Previous Routes: | ||
* `'POST' - /api/v2/admin/reset-password-requests` | ||
* `'PATCH' - /api/v2/admin/reset-password-requests/{resetPasswordToken}` | ||
|
||
New Routes: | ||
* `'POST' - /api/v2/admin/reset-password` | ||
* `'PATCH' - /api/v2/admin/reset-password/{resetPasswordToken}` | ||
|
||
* The `getCurrentPrefix` method has been removed from the `Sylius\Bundle\ApiBundle\Provider\PathPrefixProviderInterface`. | ||
|
||
* The `Sylius\Bundle\ApiBundle\Provider\PathPrefixProvider` constructor has been changed due to refactor. | ||
|
@@ -225,3 +189,108 @@ All the `setter` methods have been removed from the commands above and also ther | |
- `sylius_api.legacy_error_handling` | ||
- `sylius_api.serialization_groups.skip_adding_read_group` | ||
- `sylius_api.serialization_groups.skip_adding_index_and_show_groups` | ||
|
||
## Resource configuration changes | ||
|
||
### Updated API Routes | ||
|
||
* AvatarImage | ||
|
||
- `'GET' - /api/v2/admin/avatar-images/{id}` → `'GET' - /api/v2/admin/administrators/{id}/avatar-image` | ||
- `'POST' - /api/v2/admin/avatar-images` → `'POST' - /api/v2/admin/administrators/{id}/avatar-image` | ||
- `'DELETE' - /api/v2/admin/avatar-images/{id}` → `'DELETE' - /api/v2/admin/administrators/{id}/avatar-image` | ||
|
||
* ShopUser, CustomerPassword and CustomerVerification | ||
|
||
- `'POST' - /api/v2/shop/reset-password-requests` → `'POST' - /api/v2/shop/reset-password` | ||
- `'PATCH' - /api/v2/shop/reset-password-requests/{resetPasswordToken}` → `'PATCH' - /api/v2/shop/reset-password/{resetPasswordToken}` | ||
- `'POST' - /api/v2/shop/account-verification-requests` → `'POST' - /api/v2/shop/verify-shop-user` | ||
- `'PATCH' - /api/v2/shop/account-verification-requests/{token}` → `'PATCH' - /api/v2/shop/verify-shop-user/{token}` | ||
|
||
* AdminUserPassword | ||
|
||
- `'POST' - /api/v2/admin/reset-password-requests` → `'POST' - /api/v2/admin/reset-password` | ||
- `'PATCH' - /api/v2/admin/reset-password-requests/{resetPasswordToken}` → `'PATCH' - /api/v2/admin/reset-password/{resetPasswordToken}` | ||
|
||
* CatalogPromotion | ||
|
||
- `'GET' - /api/v2/admin/catalog-promotion-actions/{id}` → `'GET' - /api/v2/admin/catalog-promotions/{code}/actions/{id}` | ||
- `'GET' - /api/v2/admin/catalog-promotion-scopes/{id}` → `'GET' - /api/v2/admin/catalog-promotions/{code}/scopes/{id}` | ||
|
||
* Translation | ||
|
||
- `'GET' - /api/v2/admin/[resource]-translations/{id}` → `'GET' - /api/v2/admin/[resource]/{code}/translations/{localeCode}` | ||
|
||
* ChannelPricing | ||
|
||
- `'GET' - /api/v2/admin/channel-pricings/{id}` → `'GET' - /api/v2/admin/product-variants/{code}/pricing/{id}` | ||
|
||
* Order | ||
|
||
- `'GET' - /api/v2/admin/order-items/{id}` → `'GET' - /api/v2/admin/orders/{orderToken}/items/{id}` | ||
|
||
* Payment | ||
|
||
- `'GET' - /api/v2/shop/payments/{id}` → `'GET' - /api/v2/shop/orders/{orderToken}/payments/{id}` | ||
|
||
* Product | ||
|
||
- `'GET' - /api/v2/admin/product-images/{id}` → `'GET' - /api/v2/admin/products/{code}/images/{id}` | ||
- `'GET' - /api/v2/admin/products-images` → `'GET' - /api/v2/admin/products/{code}/images` | ||
- `'GET' - /api/v2/shop/product-images/{id}` → `'GET' - /api/v2/shop/products/{code}/images/{id}` | ||
- `'GET' - /api/v2/admin/product-option-values/{code}` → `'GET' - /api/v2/admin/product-options/{optionCode}/values/{code}` | ||
- `'GET' - /api/v2/shop/product-option-values/{code}` → `'GET' - /api/v2/shop/product-options/{optionCode}/values/{code}` | ||
|
||
* Promotion | ||
|
||
- `'GET' - /api/v2/admin/promotion-actions/{id}` → `'GET' - /api/v2/admin/promotions/{code}/actions/{id}` | ||
- `'GET' - /api/v2/admin/promotion-coupons/{id}` → `'GET' - /api/v2/admin/promotions/{code}/coupons/{id}` | ||
TheMilek marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- `'POST' - /api/v2/admin/promotion-coupons/generate` → `'POST' - /api/v2/admin/promotions/{promotionCode}/coupons/generate` | ||
- `'PUT' - /api/v2/admin/promotion-coupons/{code}` → `'PUT' - /api/v2/admin/promotions/{promotionCode}/coupons/{couponCode}` | ||
- `'DELETE' - /api/v2/admin/promotion-coupons/{code}` → `'DELETE' - /api/v2/admin/promotions/{promotionCode}/coupons/{couponCode}` | ||
- `'GET' - /api/v2/admin/promotion-rules/{id}` → `'GET' - /api/v2/admin/promotions/{code}/rules/{id}` | ||
|
||
* Provinces | ||
|
||
- `'GET' - /api/v2/admin/provinces/{code}` → `'GET' - /api/v2/admin/countries/{countryCode}/provinces/{provinceCode}` | ||
- `'PUT' - /api/v2/admin/provinces/{code}` → `'PUT' - /api/v2/admin/countries/{countryCode}/provinces/{provinceCode}` | ||
- `'GET' - /api/v2/shop/provinces/{code}` → `'GET' - /api/v2/shop/countries/{countryCode}/provinces/{provinceCode}` | ||
|
||
* Shipment | ||
|
||
- `'GET' - /api/v2/shop/shipments/{id}` → `'GET' - /api/v2/shop/orders/{orderToken}/shipments/{id}` | ||
|
||
* Taxon | ||
|
||
- `'GET' - /api/v2/admin/taxon-images/{id}` → `'GET' - /api/v2/admin/taxons/{code}/images/{id}` | ||
- `'POST' - /api/v2/admin/taxon-images` → `'POST' - /api/v2//admin/taxons/{code}/images` | ||
- `'PUT' - /api/v2/admin/taxon-images/{id}` → `'PUT' - /api/v2/admin/taxons/{code}/images/{id}` | ||
- `'DELETE' - /api/v2/admin/taxon-images/{id}` → `'DELETE' - /api/v2/admin/taxons/{code}/images/{id}` | ||
- `'GET' - /api/v2/shop/taxon-images/{id}` → `'GET' - /api/v2/shop/taxons/{code}/images/{id}` | ||
|
||
### Other Resource Changes | ||
|
||
1. **Adjustment** | ||
- The shop item endpoint is no longer exposed. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add more specific information on which endpoint you are referring to |
||
|
||
1. **CustomerVerification** | ||
- `Sylius\Bundle\ApiBundle\Command\Account\VerifyCustomerAccount` command has been renamed to `Sylius\Bundle\ApiBundle\Command\Account\VerifyShopUser`. | ||
- `Sylius\Bundle\ApiBundle\Command\Account\ResendVerificationEmail` command has been renamed to `Sylius\Bundle\ApiBundle\Command\Account\RequestShopUserVerification`. | ||
|
||
1. **GatewayConfig** | ||
- The resource is no longer exposed. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above |
||
|
||
1. **Translation** | ||
- All translation resources are no longer exposed. | ||
|
||
1. **ChannelPriceHistoryConfig** | ||
- The resource configuration has been removed, as it is now handled by the `Channel` resource. | ||
|
||
1. **ShopBillingData** | ||
- The resource configuration has been removed, as it is now handled by the `Channel` resource. | ||
|
||
1. **ZoneMember** | ||
- The resource configuration has been removed, as it is now handled by the `Zone` resource. | ||
|
||
1. **ProductOptionValueTranslation** | ||
- There has been added a new resource configuration for the `ProductOptionValueTranslation` resource. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if a table would not be more readable here 🤔