2017 © Pedro Peláez
 

project silex-cart

silex cart application project

image

tmajne/silex-cart

silex cart application project

  • Sunday, March 19, 2017
  • by tmajne
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

App, (*1)

Reqirements, (*2)

  • php7.1-xml
  • php7.1-mbstring
  • php7.1-sqlite3
  • $app['cart.storage.path'] - path must be writable

API, (*3)

Games, (*4)

  • 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, (*5)

  • 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}

The Versions