chernecov / cart-bundle
Cart bundle.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- friendsofsymfony/rest-bundle: 1.3.*
- hautelook/templated-uri-bundle: ~2.0
- hautelook/templated-uri-router: ~2.0
- jms/di-extra-bundle: ~1.4
- nelmio/api-doc-bundle: ~2.7
- sensio/framework-extra-bundle: ~3.0
- symfony/monolog-bundle: ~2.4
- symfony/symfony: 2.5.*
- willdurand/hateoas-bundle: ~0.3
This package is not auto-updated.
Last update: 2024-04-23 01:09:02 UTC
README
Symfony bundle.
Provides basic shopping cart functionality. Based on FOSRestBundle, HateoasBundle, NelmiApiDocBundle...
Adding item to cart:
POST to /cart/item/add
{ "title": "Tiffany heart signet ring in sterling silver.", "price": 158, "quantity": 2, "related_id": 74485 }
You can get cart by url: /cart/content?_embedded=true
{ "cart_id": "ea98738c", "channel": "default", "_links": { "self": { "href": "/cart/content", "method": "GET" }, "clear": { "href": "/cart/clear", "method": "DELETE" } }, "_embedded": { "items": [ { "id": "46894fe9", "title": "Tiffany heart signet ring in sterling silver.", "price": 158, "quantity": 2, "related_id": 74485, "_links": { "delete": { "href": "/cart/item/46894fe9/remove", "method": "DELETE" }, "quantity": { "href": "/cart/item/46894fe9/quantity/{quantity}", "templated": true, "method": "PATCH" }, "patch": { "href": "/cart/item/46894fe9/modify", "templated": true, "method": "PATCH", "data": { "json": [ "title", "price", "count", "relatedId" ] } } } } ] } }