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

Product reviews API #8772

Merged
merged 24 commits into from
Jan 5, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0f6966a
[Product Reviews API] - add API for product reviews
paulstoicareea Oct 4, 2017
c660fa9
[Documentation][API] - add product reviews api docs
paulstoicareea Oct 4, 2017
fb337a6
[Product Reviews API]: accept/reject endpoints with state machine
paulstoicareea Oct 5, 2017
0e2ccc9
[Unit Testing]: ProductReviewApi Controller
paulstoicareea Oct 5, 2017
0151d20
[Documentation]: add in toctree and map Product Reviews API
paulstoicareea Oct 5, 2017
9785c0e
[Documentation]: minor changes
paulstoicareea Oct 9, 2017
4aa26f9
[Product Reviews API] - minor changes
paulstoicareea Oct 9, 2017
de75e27
[Documentation]: fix malformed tables Product reviews API
paulstoicareea Oct 9, 2017
ca4a90a
[Product Reviews API] - minor changes for tests
paulstoicareea Oct 9, 2017
3c1048f
[Product Reviews API] - add API for product reviews
paulstoicareea Oct 4, 2017
bc07098
[Documentation][API] - add product reviews api docs
paulstoicareea Oct 4, 2017
5e41ae6
[Product Reviews API]: accept/reject endpoints with state machine
paulstoicareea Oct 5, 2017
e998b59
[Unit Testing]: ProductReviewApi Controller
paulstoicareea Oct 5, 2017
dd37af3
[Documentation]: add in toctree and map Product Reviews API
paulstoicareea Oct 5, 2017
0228602
[Documentation]: minor changes
paulstoicareea Oct 9, 2017
d571b9c
[Product Reviews API] - minor changes
paulstoicareea Oct 9, 2017
3933ed2
[Documentation]: fix malformed tables Product reviews API
paulstoicareea Oct 9, 2017
3cf247a
[Product Reviews API] - minor changes for tests
paulstoicareea Oct 9, 2017
859021c
[Documentation]: texts improvments Product reviews API
paulstoicareea Nov 17, 2017
ca795cb
Product review API syntax improvments
paulstoicareea Nov 17, 2017
78d2c96
Product Review API tests: review creation real inputs
paulstoicareea Nov 18, 2017
aca53a4
[Product Reviews API] - add API for product reviews
paulstoicareea Oct 4, 2017
27086bd
fix product reviews api test methods names, expected response
paulstoicareea Dec 5, 2017
e386f37
product reviews api test remove author, fix indentation
paulstoicareea Jan 4, 2018
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
Prev Previous commit
Next Next commit
[Product Reviews API]: accept/reject endpoints with state machine
  • Loading branch information
paulstoicareea committed Nov 17, 2017
commit 5e41ae6430fc813a6d353a160b39571e550b91b5

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,18 @@ sylius_admin_api_product_review_accept:
path: /reviews/{id}/accept
methods: [POST, PUT, PATCH]
defaults:
_controller: sylius.controller.update_product_review_status:acceptProductReviewAction
_controller: sylius.controller.product_review:applyStateMachineTransitionAction
_sylius:
state_machine:
graph: sylius_product_review
transition: accept

sylius_admin_api_product_review_reject:
path: /reviews/{id}/reject
methods: [POST, PUT, PATCH]
defaults:
_controller: sylius.controller.update_product_review_status:rejectProductReviewAction
_controller: sylius.controller.product_review:applyStateMachineTransitionAction
_sylius:
state_machine:
graph: sylius_product_review
transition: reject
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing blank line at the end of file.

Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,5 @@
<argument type="service" id="fos_rest.view_handler" />
<argument type="service" id="sylius.registry.shipping_calculator" />
</service>
<service id="sylius.controller.update_product_review_status" class="Sylius\Bundle\AdminApiBundle\Controller\UpdateProductReviewStatusController">
<argument type="service" id="sylius.repository.product_review" />
<argument type="service" id="doctrine.orm.entity_manager" />
</service>
</services>
</container>