سرویس های محصولات


گرفتن لیست محصولات


http://livegalleria.ir/api/product

no parameters

list products: [{ long id, string Name, string Serial, bool IsDeactive, string PicLink, string Description, string MoreDescription, decimal? Price, decimal? OffPrice, float Discount, int Count, float Rate, long? BrandId, long? CategoryId, int Sort, bool Sizing, decimal PurchasePrice }]

گرفتن یک محصول


http://livegalleria.ir/api/product/{id}

id product

product:{ long id, string Name , string Serial , bool IsDeactive , string PicLink , string Description , string MoreDescription , decimal? Price , decimal? OffPrice , float Discount , int Count , float Rate , long? BrandId , long? CategoryId , int Sort, bool Sizing, decimal PurchasePrice }
status code 404 not found

جستجوی محصول بر اساس نام


http://livegalleria.ir/api/product/Search={name}

name product

list product:[{ long id, string Name , string Serial , bool IsDeactive , string PicLink , string Description , string MoreDescription , decimal? Price , decimal? OffPrice , float Discount , int Count , float Rate , long? BrandId , long? CategoryId , int Sort, bool Sizing, decimal PurchasePrice }]

گرفتن گالری محصولات


http://livegalleria.ir/api/product/{id}/gallery

id product

list gallery:[{ long id, string Link , string Description , long? ProductId }]

گرفتن مشخصات فنی محصول


http://livegalleria.ir/api/product/{id}/Specifications

id product

list gallery:[{ GroupName, Name, Value, Type }]

گرفتن سایز بندی محصول


http://livegalleria.ir/api/product/{id}/size

id product

{ rows: [ { count: 100, Id: 21, Name: "Xl", Hidden: false }], cols: [{ Name: "ویژگی", GroupSizeId: 4, Id: 9, LangId: 0 }], vals: [{ Value: "dfdf", SizeId: 21, SizeOptionId: 9, ProductId: 5016, Id: 132, LangId: 0 }] }

گرفتن نظرات محصول


http://livegalleria.ir/api/product/{id}/comments

id product

[{ Content: "Nerzito hfghfgh fghfgh f gh fgh fgh", Date: "2015-12-09T13:24:59", IsApproved: false, ProductId: 16775, UserName: "", Id: 19, LangId: 0 }]

افزودن نظر برای محصول


http://livegalleria.ir/api/product/{id}/comments

Content string; ProductId long;

success status 200
fail status 400 and error list("0", "user is not login") ,("1", "product not found")