From a98c0253d3615cc6bd81d68ac72e4f6f4c02b4b7 Mon Sep 17 00:00:00 2001 From: numex-admin Date: Thu, 10 Sep 2026 08:58:51 +0000 Subject: [PATCH] =?UTF-8?q?Numex=20yay=C4=B1n:=20public/index.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 78 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 public/index.html diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..10756d7 --- /dev/null +++ b/public/index.html @@ -0,0 +1,78 @@ + + + + + + Envanter API Belgeleri + + + + +
+ +
+

API Uçları

REST API kullanım belgeleri

+ +
+

Ürünler

+
GET /api/productsTüm ürünler (sayfa görünümü)
+
GET /api/products/api/allJSON ürün listesi
+
POST /api/productsYeni ürün ekle
+
GET /api/products/:idÜrün detayı + hareket geçmişi
+
PUT /api/products/:idÜrünü güncelle
+
DELETE /api/products/:idÜrünü sil
+
+ +
+

Stok Hareketleri

+
POST /api/stock/inStok girişi {productId, quantity, note?}
+
POST /api/stock/outStok çıkışı (yetersizse 400)
+
GET /api/stock/movements?json=1Tüm hareket logları
+
GET /api/stock/movements/:productIdÜrüne özel hareketler
+
+ +
+

Kategoriler

+
GET /api/categories?json=1Tüm kategoriler + ürün sayısı
+
POST /api/categoriesKategori ekle {name}
+
PUT /api/categories/:idKategori güncelle
+
DELETE /api/categories/:idKategori sil (ürünü varsa engellenir)
+
+ +
+

Raporlar

+
GET /api/reports/api/category/:id?from=&to=Kategori bazlı JSON rapor (id=all tümü)
+
GET /api/reports/api/allTüm kategori özetleri
+
GET /api/reports/categoryRaporlama sayfası
+
+ +
+

Örnek — Stok Girişi

+
curl -X POST http://localhost:3000/api/stock/in \
+  -H "Content-Type: application/json" \
+  -d '{"productId": 1, "quantity": 10, "note": "Tedarikçi sevkiyatı"}'
+
+ +

← Panele Dön

+
+ +