{ "openapi": "3.0.0", "info": { "title": "Akıllı Giriş API", "version": "1.0.0", "description": "ESP32 ve Telegram tabanlı akıllı giriş sistemi için API dokümantasyonu" }, "servers": [ { "url": "http://localhost:7000", "description": "Local server" } ], "paths": { "/api": { "get": { "summary": "API root bilgi", "responses": { "200": { "description": "API çalışıyor ve endpoint listesi dönüyor", "content": { "application/json": { "schema": { "type": "object" } } } } } } }, "/api/giris": { "post": { "summary": "Öğrenci giriş isteği (ESP32 tarafından çağrılır)", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "student_no": {"type": "string"}, "password": {"type": "string"}, "room_id": {"type": "integer"} }, "required": ["student_no","password","room_id"] } } } }, "responses": { "200": { "description": "İstek alındı / onay bekleniyor" }, "400": { "description": "Geçersiz veri" } } } }, "/api/durum/{reqId}": { "get": { "summary": "Giriş onay durumu sorgulama", "parameters": [ { "name": "reqId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Durum bilgisi döndü" }, "404": { "description": "İstek bulunamadı" } } } } } }