Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compras

Groceries management system. It has also a RESTful API to query products via barcode.

I've decided to use PUT as update only actions to keep it's idempotency definition. Use POST to add new and PUT to change products.

Currently supported actions:

    • Products:
          	<li>GET at '/api/v1/products/{barcode}.json' - get a product by id</li>
          	<li>POST at '/api/v1/products/json' - add a product</li>
      		<li>DELETE at '/api/v1/products/{barcode}' - delete a product by barcode</li>
      		<li>PUT at '/api/v1/products/{barcode}.json' - updates a product</li>
      	</ul>
      </li>
      
      <li>
      	<ul>Brands:
      		<li>GET at '/api/v1/brands/json' - lists all brands</li>
      		<li>GET at '/api/v1/brands/json/{id}' - get a brand by id</li>
      		<li>POST at '/api/v1/brands/json' - add a brand
      		<li>DELETE at '/api/v1/brands/json/{id}' - delete a brand by id</li>
      	</ul>
      </li>
      

About

RESTful API for product queries via barcode - Using Laravel Eloquent ORM and Own Router

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages