Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmajne/silex-cart
Cart implementation based on silex
https://github.com/tmajne/silex-cart
cart silex silex-application
Last synced: 23 days ago
JSON representation
Cart implementation based on silex
- Host: GitHub
- URL: https://github.com/tmajne/silex-cart
- Owner: tmajne
- Created: 2017-03-16T18:58:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T21:39:39.000Z (almost 8 years ago)
- Last Synced: 2024-04-17T21:07:51.856Z (10 months ago)
- Topics: cart, silex, silex-application
- Language: PHP
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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}