tmajne / silex-cart
silex cart application project
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.1
- filp/whoops: ^2.1
- silex/silex: ~2.0
- symfony/css-selector: ^3.1
- tmajne/cart: ^0.5
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: 5.6.x-dev
- silex/web-profiler: ^2.0
- symfony/browser-kit: ^3.1
- symfony/debug-bundle: ^3.1
This package is not auto-updated.
Last update: 2025-03-30 05:16:52 UTC
README
App
Reqirements
- php7.1-xml
- php7.1-mbstring
- php7.1-sqlite3
- $app['cart.storage.path'] - path must be writable
API
Games
- listing: GET: games?limit=20
- show one item: GET: games/{gameId}
- create: PUT: games/ - parameters "title" and "price"
- update: POST: games/{gameId} - parameters "title" or/and "price"
- remove: DELETE: games/{gameId}
- load test data: PUT: /games/load/test/data
Cart
- listing: GET: carts/admin?limit=20
- show on item: GET: carts/{cartId}
- create: PUT: carts/
- remove: DELETE: carts/{cartId}
- add item: PUT: carts/{cartId}/items/{itemId}?count=3
- update item quantity: POST: carts/{cartId}/items/{itemId}/{deltaQuantity}
- remove item: DELETE: carts/{cartId}/items/{itemId}