Skip to content

Commit

Permalink
minor #15311 [API] fix prefix url on locale api path (oallain)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12          |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets |                        |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  fix prefix url on locale api path
  fix prefix url on order api path
  • Loading branch information
jakubtobiasz committed Sep 18, 2023
2 parents eea1017 + dc55cf4 commit 4fb30dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -22,7 +22,7 @@
<collectionOperations>
<collectionOperation name="admin_get">
<attribute name="method">GET</attribute>
<attribute name="path">admin/locales</attribute>
<attribute name="path">/admin/locales</attribute>
<attribute name="normalization_context">
<attribute name="groups">admin:locale:read</attribute>
</attribute>
Expand All @@ -31,15 +31,15 @@

<collectionOperation name="admin_post">
<attribute name="method">POST</attribute>
<attribute name="path">admin/locales</attribute>
<attribute name="path">/admin/locales</attribute>
<attribute name="denormalization_context">
<attribute name="groups">admin:locale:create</attribute>
</attribute>
</collectionOperation>

<collectionOperation name="shop_get">
<attribute name="method">GET</attribute>
<attribute name="path">shop/locales</attribute>
<attribute name="path">/shop/locales</attribute>
<attribute name="normalization_context">
<attribute name="groups">shop:locale:read</attribute>
</attribute>
Expand All @@ -49,15 +49,15 @@
<itemOperations>
<itemOperation name="admin_get">
<attribute name="method">GET</attribute>
<attribute name="path">admin/locales/{code}</attribute>
<attribute name="path">/admin/locales/{code}</attribute>
<attribute name="normalization_context">
<attribute name="groups">admin:locale:read</attribute>
</attribute>
</itemOperation>

<itemOperation name="shop_get">
<attribute name="method">GET</attribute>
<attribute name="path">shop/locales/{code}</attribute>
<attribute name="path">/shop/locales/{code}</attribute>
<attribute name="normalization_context">
<attribute name="groups">shop:locale:read</attribute>
</attribute>
Expand Down
Expand Up @@ -21,7 +21,7 @@
<collectionOperations>
<collectionOperation name="admin_get">
<attribute name="method">GET</attribute>
<attribute name="path">admin/orders</attribute>
<attribute name="path">/admin/orders</attribute>
<attribute name="normalization_context">
<attribute name="groups">admin:order:read</attribute>
</attribute>
Expand Down

0 comments on commit 4fb30dc

Please sign in to comment.