Commit 5c2f2006 authored by dangdoan's avatar dangdoan

fix readme

parent 3598159b
......@@ -15,15 +15,15 @@ execute query in file mysql.sql
####
use the following api:
http://localhost:3000/api/products : for list all products
http://localhost:3000/api/products : for list all products.
http://localhost:3000/api/products?page=1&size=2: for lis list all products with paging
http://localhost:3000/api/products?page=1&size=2: for lis list all products with paging.
http://localhost:3000/api/products: with post method for create product
http://localhost:3000/api/products: with post method for create product.
http://localhost:3000/api/products/{code}: with put method for update product
http://localhost:3000/api/products/{code}: with put method for update product.
http://localhost:3000/api/products/p003002: with delete method for delete product by code
http://localhost:3000/api/products/p003002: with delete method for delete product by code.
http://localhost:3000/api/products?sort={name}&dir={desc/asc}: for get all product with sorting
http://localhost:3000/api/products?sort={name}&dir={desc/asc}: for get all product with sorting.
####
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment