Skip to content

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

Notifications You must be signed in to change notification settings

marcelovcpereira/Compras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages