Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Gadget Greget Webservice API List

Documentation by Gadgets
1 All Gadget (GET)
o Link : http://gadget_shop.com/
o Output :
[{name:'Acer',name:'Iphone'}]
2 Add Gadget (POST)
o Link : http://gadget_shop.com/new/
o Output :
{
"name": "Gadget",
"id": "new-gadget",
"description": "Smartphone gadget"
"url": "/gadget_shop.com/new",
"current-event": null,
}
3 A Gadget (GET)
o Link : http://gadget_shop/categories/categories_id/:gadget_id
o Output :
{
"name": "Lenovo A369",
"id": "4112",
"kategori": "Smartphone"
"url": "gadget_shop/categories/categories_id/:gadget_id",
}
4 Update Gadget (PUT)
o Link :
http://gadget_shop/categories/categories_id/:gadget_id/update
o Output :
{
"name": "Lenovo A369i",
"id": "4112",
"kategori": "Smartphone"
"url": "gadget_shop/categories/categories_id/:gadget_id",
}

5 Delete Gadget (DELETE)


o Link :
o http://gadget_shop/categories/categories_id/:gadget_id/delete
o Output :
{
"name": "Lenovo A369",
"id": "4112",
"kategori": "Smartphone"
"url": "gadget_shop/categories/categories_id/:gadget_id",
}

You might also like