Skip to content

Commit

Permalink
minor Sylius#14311 [CatalogPromotions][Swagger] HTTP Response statuse…
Browse files Browse the repository at this point in the history
…s documented for CatalogPromotion removing (Rafikooo)

This PR was merged into the 1.12 branch.

Discussion
----------

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

Missing swagger responses block:
<img width="1049" alt="image" src="https://user-images.githubusercontent.com/40125720/190454287-24f1268f-51b3-4998-a01c-33825f3e68e5.png">



Commits
-------

0140915 [CatalogPromotions][Swagger] HTTP Response statuses documented for CatalogPromotion removing
  • Loading branch information
GSadee authored Sep 16, 2022
2 parents de79fcd + 0140915 commit bd28203
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,19 @@ Example configuration for `percentage_discount` action type:
<attribute name="method">DELETE</attribute>
<attribute name="path">/admin/catalog-promotions/{code}</attribute>
<attribute name="controller">Sylius\Bundle\ApiBundle\Controller\RemoveCatalogPromotionAction</attribute>
<attribute name="openapi_context">
<attribute name="responses">
<attribute name="202">
<attribute name="description">CatalogPromotion resource removal request accepted</attribute>
</attribute>
<attribute name="400">
<attribute name="description">Invalid CatalogPromotion state</attribute>
</attribute>
<attribute name="404">
<attribute name="description">Resource not found</attribute>
</attribute>
</attribute>
</attribute>
</itemOperation>
</itemOperations>

Expand Down

0 comments on commit bd28203

Please sign in to comment.