{ "info": { "_postman_id": "YOUR_COLLECTION_ID", "name": "NOW GE RAG Chatbot API", "description": "Postman collection for the Flask Hybrid RAG Chatbot application.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "YOUR_EXPORTER_ID" }, "item": [ { "name": "Chat Operations", "item": [ { "name": "1. Create Session", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Session ID received\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.session_id).to.not.be.empty;", " pm.collectionVariables.set(\"currentSessionId\", jsonData.session_id);", " console.log(\"Session ID set: \" + jsonData.session_id);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/create-session", "host": [ "{{baseUrl}}" ], "path": [ "create-session" ] } }, "response": [] }, { "name": "2. Send Chat Message", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"query\": \"Hello, what services do you offer?\",\n \"user_id\": \"{{testUserId}}\",\n \"session_id\": \"{{currentSessionId}}\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/chat-bot", "host": [ "{{baseUrl}}" ], "path": [ "chat-bot" ] } }, "response": [] }, { "name": "3. Clear Session History", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"session_id\": \"{{currentSessionId}}\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/clear-history", "host": [ "{{baseUrl}}" ], "path": [ "clear-history" ] } }, "response": [] } ], "description": "Endpoints related to chat functionality." }, { "name": "Admin Operations", "item": [ { "name": "Get FAISS RAG Status", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{adminPassword}}", "type": "string" }, { "key": "username", "value": "{{adminUsername}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/admin/faiss_rag_status", "host": [ "{{baseUrl}}" ], "path": [ "admin", "faiss_rag_status" ] } }, "response": [] }, { "name": "Rebuild FAISS Index", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{adminPassword}}", "type": "string" }, { "key": "username", "value": "{{adminUsername}}", "type": "string" } ] }, "method": "POST", "header": [], "url": { "raw": "{{baseUrl}}/admin/rebuild_faiss_index", "host": [ "{{baseUrl}}" ], "path": [ "admin", "rebuild_faiss_index" ] } }, "response": [] }, { "name": "Get Personal DB (CSV) Status", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{adminPassword}}", "type": "string" }, { "key": "username", "value": "{{adminUsername}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/db/status", "host": [ "{{baseUrl}}" ], "path": [ "db", "status" ] } }, "response": [] } ], "description": "Endpoints for admin tasks, requires admin authentication." }, { "name": "Utility & Reports", "item": [ { "name": "Get App Index Page", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/", "host": [ "{{baseUrl}}" ], "path": [ "" ] } }, "response": [] }, { "name": "Download Chat Report", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{reportPassword}}", "type": "string" }, { "key": "username", "value": "{{adminUsername}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/report", "host": [ "{{baseUrl}}" ], "path": [ "report" ] } }, "response": [] }, { "name": "Get API Version", "request": { "method": "GET", "header": [], "url": { "raw": "{{baseUrl}}/version", "host": [ "{{baseUrl}}" ], "path": [ "version" ] } }, "response": [] } ], "description": "General utility endpoints." } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "baseUrl", "value": "http://localhost:5000", "type": "string", "description": "Base URL of the Flask application." }, { "key": "adminUsername", "value": "fleetblox", "type": "string" }, { "key": "adminPassword", "value": "fleetblox", "type": "string" }, { "key": "reportPassword", "value": "e$$!@2213r423er31", "type": "string" }, { "key": "currentSessionId", "value": "", "type": "string", "description": "Automatically populated by 'Create Session' request." }, { "key": "testUserId", "value": "user123", "type": "string", "description": "An example user_id for testing." } ] }