mirrored_repositories/Mobile-Programming-Lecture-Notes/JSon-Flutter-Project-main/http_demo/lib/data
import "package:http/http.dart" as http;

class ProductApi {
  static Future getProducts() {
    return http.get("http://10.0.2.2:3000/products");
  }

  static Future getProductsByCategoryId(int categoryId) {
    return http.get("http://10.0.2.2:3000/products?categoryId=$categoryId");
  }
}
