public IHttpActionResult GetProduct(string id, [FromUri] string token, [FromUri] string shopname, [FromUri] string[] fields, [FromUri] int top = 0) { var service = new ShopifyService(); var product = service.GetEntity("products", id, token, shopname, fields, top); return(Ok(product)); }
public IHttpActionResult GetCollection(string id, [FromUri] string token, [FromUri] string shopname, [FromUri] string[] fields, [FromUri] int top = 0) { var service = new ShopifyService(); var collection = service.GetEntity("collections", id, token, shopname, fields, top); return(Ok(collection)); }
public IHttpActionResult GetFilter(string id, [FromUri] string token, [FromUri] string shopname, [FromUri] string[] fields, [FromUri] int top = 0) { var service = new ShopifyService(); var filter = service.GetEntity("customer_saved_searches", id, token, shopname, fields, top); return(Ok(filter)); }