REST API

API Documents

GET
									
[
  {
    "id": 1,
    "category_id": 1,
    "product_name": "Lois Caron LCS-8069 BLUE DIAL DAY & DATE FUNCTIONING Watch - For Men",
    "description": "test desc",
    "price": 1220,
    "image": "https://rukminim1.flixcart.com/image/832/832/ji95yfk0/watch/h/4/w/lcs-8069-lois-caron-original-imaf636yggzthz5y.jpeg?q=70",
    "category_name": "Watches"
  },
  {
    "id": 2,
    "category_id": 2,
    "product_name": "Deals4you Running Shoes For Men (Blue)",
    "description": "440 g (per single Shoe) - Weight of the product may vary depending on size.",
    "price": 382,
    "image": "https://rukminim1.flixcart.com/image/832/832/jiulk7k0/shoe/h/e/u/multi-net-8-deals4you-blue-original-imaf6jsd5c8zzhvu.jpeg?q=70",
    "category_name": "Shoes"
  },
  {
    "id": 4,
    "category_id": 1,
    "product_name": "Lois Caron LCS-8069 BLUE DIAL DAY & DATE FUNCTIONING Watch - For Men",
    "description": "Dual Time\r\nNO\r\nStrap Type\r\nBELT\r\nStrap Material\r\nSYNTHETIC LEATHER Strap\r\nStrap Design\r\nNEW DESIGN\r\nCase/Bezel Material\r\nSTAINLESS STEEL\r\nPower Source\r\nBATTERY POWERED , BUTTON CELL\r\nPower Reserve Indicator\r\nNO\r\nLight\r\nNO\r\nGPS\r\nNO\r\nTourbillon\r\nNO\r\nClasp Type\r\nBUCKLE\r\nMoonphase\r\nNO\r\nBox Material\r\nCARD BOARD\r\nOther Functions\r\nDAY & DATE & TIME, DAY & DATE, DAY & DATE FUNCTIONING, DATE DISPLAY, DAY DISPLAY\r\nWarranty\r\nWarranty Summary\r\n1 YEAR LOIS CARON WARRANTY\r\nDomestic Warranty\r\n1 Year\r\nCovered in Warranty\r\nMECHANISM",
    "price": 379,
    "image": "https://rukminim1.flixcart.com/image/832/832/ji95yfk0/watch/h/4/w/lcs-8069-lois-caron-original-imaf636yggzthz5y.jpeg?q=70",
    "category_name": "Watches"
  },
  {
    "id": 5,
    "category_id": 1,
    "product_name": "Lois Caron LCS-8069 BLUE DIAL DAY & DATE FUNCTIONING Watch - For Men",
    "description": "Dual Time\r\nNO\r\nStrap Type\r\nBELT\r\nStrap Material\r\nSYNTHETIC LEATHER Strap\r\nStrap Design\r\nNEW DESIGN\r\nCase/Bezel Material\r\nSTAINLESS STEEL\r\nPower Source\r\nBATTERY POWERED , BUTTON CELL\r\nPower Reserve Indicator\r\nNO\r\nLight\r\nNO\r\nGPS\r\nNO\r\nTourbillon\r\nNO\r\nClasp Type\r\nBUCKLE\r\nMoonphase\r\nNO\r\nBox Material\r\nCARD BOARD\r\nOther Functions\r\nDAY & DATE & TIME, DAY & DATE, DAY & DATE FUNCTIONING, DATE DISPLAY, DAY DISPLAY\r\nWarranty\r\nWarranty Summary\r\n1 YEAR LOIS CARON WARRANTY\r\nDomestic Warranty\r\n1 Year\r\nCovered in Warranty\r\nMECHANISM",
    "price": 379,
    "image": "https://rukminim1.flixcart.com/image/832/832/ji95yfk0/watch/h/4/w/lcs-8069-lois-caron-original-imaf636yggzthz5y.jpeg?q=70",
    "category_name": "Watches"
  }
]
									
								
GET
category_id
									
[
  {
    "id": 2,
    "category_id": 2,
    "product_name": "Deals4you Running Shoes For Men (Blue)",
    "description": "440 g (per single Shoe) - Weight of the product may vary depending on size.",
    "price": 382,
    "image": "https://rukminim1.flixcart.com/image/832/832/jiulk7k0/shoe/h/e/u/multi-net-8-deals4you-blue-original-imaf6jsd5c8zzhvu.jpeg?q=70",
    "category_name": "Shoes"
  }
]
									
								
GET
									
[
  {
    "id": 1,
    "category_name": "Watches",
    "timestamp": "2018-07-05 17:57:33"
  },
  {
    "id": 2,
    "category_name": "Shoes",
    "timestamp": "2018-07-05 17:57:33"
  }
]
									
								
GET
product_id
									
[
  {
    "id": 1,
    "category_id": 1,
    "product_name": "Lois Caron LCS-8069 BLUE DIAL DAY & DATE FUNCTIONING Watch - For Men",
    "description": "test desc",
    "price": 1220,
    "image": "https://rukminim1.flixcart.com/image/832/832/ji95yfk0/watch/h/4/w/lcs-8069-lois-caron-original-imaf636yggzthz5y.jpeg?q=70",
    "category_name": "Watches"
  }
]
									
								
POST
									
{
  "p_name": "Lois Caron LCS-8069 BLUE DIAL DAY",
  "desc": "DAY & DATE & TIME, DAY & DATE, DAY & DATE FUNCTIONING, DATE DISPLAY, DAY DISPLAY",
  "price": "379",
  "category_id": 1,
  "img": "https://rukminim1.flixcart.com/image/832/832/ji95yfk0/watch/h/4/w/lcs-8069-lois-caron-original-imaf63757y2andfp.jpeg"
}
									
								
product_id
PUT
									
{
  "id": 7,
  "p_name": "Lois Caron LCS-8069 BLUE DIAL DAY",
  "desc": "DAY & DATE & TIME, DAY & DATE, DAY & DATE FUNCTIONING, DATE DISPLAY, DAY DISPLAY",
  "price": "379",
  "category_id": 1,
  "img": "https://rukminim1.flixcart.com/image/832/832/ji95yfk0/watch/h/4/w/lcs-8069-lois-caron-original-imaf63757y2andfp.jpeg"
}
									
								
product_id
DELETE
									{"id":7}
								
DELETE
									{"id":1}