{ "info": { "name": "SIS Lịch Đặt Khám API (Fixed)", "description": "Collection tự động tạo từ tài liệu hướng dẫn API lịch đặt khám của bệnh viện S.I.S Cần Thơ.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "1. Get Token", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = pm.response.json();", "pm.globals.set(\"access_token\", jsonData.access_token);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" }, { "key": "Cookie", "value": ".AspNetCore.Culture=c%3Den%7Cuic%3Den; __tenant=3a0f747c-57b6-753b-ba21-3987e8e93b9a" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "grant_type", "value": "client_credentials", "type": "text" }, { "key": "client_id", "value": "DigitalHealthSolutions_LabConn", "type": "text" }, { "key": "client_secret", "value": "AcEnBCaphERGOGYMaStATITEnaPETYpR", "type": "text" }, { "key": "scope", "value": "LabConn", "type": "text" } ] }, "url": { "raw": "{{base_url}}/connect/token", "host": [ "{{base_url}}" ], "path": [ "connect", "token" ] }, "description": "Lấy Access Token để chứng thực cho các API khác." } }, { "name": "2. Danh sách bác sĩ có lịch làm việc", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "__tenant", "value": "3a0f747c-57b6-753b-ba21-3987e8e93b9a" }, { "key": "Cookie", "value": ".AspNetCore.Culture=c%3Den%7Cuic%3Den; __tenant=3a0f747c-57b6-753b-ba21-3987e8e93b9a" } ], "url": { "raw": "{{base_url}}/api/app/his/doctors/work-schedules", "host": [ "{{base_url}}" ], "path": [ "api", "app", "his", "doctors", "work-schedules" ] }, "description": "Lấy danh sách các bác sĩ đang có lịch làm việc." } }, { "name": "3. Lịch làm việc chi tiết bác sĩ", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "__tenant", "value": "3a0f747c-57b6-753b-ba21-3987e8e93b9a" }, { "key": "Cookie", "value": ".AspNetCore.Culture=c%3Den%7Cuic%3Den; __tenant=3a0f747c-57b6-753b-ba21-3987e8e93b9a" } ], "url": { "raw": "{{base_url}}/api/app/his/doctors/:doctorCode/work-schedule-days", "host": [ "{{base_url}}" ], "path": [ "api", "app", "his", "doctors", ":doctorCode", "work-schedule-days" ], "variable": [ { "key": "doctorCode", "value": "00492", "description": "Mã bác sĩ (ví dụ 00492)" } ] }, "description": "Lấy chi tiết các ngày làm việc của một bác sĩ thông qua mã bác sĩ (DoctorCode)." } } ], "variable": [ { "key": "base_url", "value": "https://dhs.sisvietnam.vn", "type": "string" } ] }