เชื่อมต่อ API จากทุกศูนย์และหน่วยงานผ่านจุดเดียว
ทุกระบบภายในคณะบริหารธุรกิจ (CMUBS) เรียกใช้งาน API ของศูนย์และหน่วยงานต่างๆ ผ่าน Gateway นี้จุดเดียว เมื่อระบบต้นทางเปลี่ยน Endpoint หรือ Token แอดมินจะอัปเดตที่ศูนย์กลางทันทีโดยไม่ต้องแก้โค้ดในแต่ละโปรเจกต์ พร้อมระบบ PDPA Data Blinding ป้องกันข้อมูลส่วนบุคคลรั่วไหลตามสิทธิ์ของแต่ละระบบ
X-API-Key: cmubs_live_xxxxxxxx...
หรือส่งแบบ Authorization: Bearer <key>
X-Request-Id / X-Gateway-Mode
ระบุ proxy หรือ adapter + สถานะ Data Blinding
Try-It-Out API Key
กรอก API Key ของระบบเพื่อทดสอบยิง Endpoint ด้านล่างได้ทันที
ตัวอย่างการเรียกใช้งาน (Quickstart)
curl -X GET "https://api.cmubs.cmu.ac.th/api/v1/gw/itsc-student/students/651510001/profile" \ -H "Accept: application/json" \ -H "X-API-Key: "
use Illuminate\Support\Facades\Http;
$response = Http::withHeaders([
'X-API-Key' => config('services.cmubs_gateway.api_key'),
])->get('https://api.cmubs.cmu.ac.th/api/v1/gw/itsc-student/students/651510001/profile');
$student = $response->json('data');
const res = await fetch('https://api.cmubs.cmu.ac.th/api/v1/gw/itsc-student/students/651510001/profile', {
headers: {
'Accept': 'application/json',
'X-API-Key': '',
},
});
const payload = await res.json();
Active Services & Endpoints
CMU ITSC Account & HR Me (Delegated User)
cmu-itsc-account-meชุดต้นแบบสำหรับ API กลุ่ม *.Read.Me.* ของ มช. ที่ใช้ Token ของผู้ใช้งานที่ล็อกอินอยู่ (กรุณาแทนที่ Client ID, Client Secret และ Base URL จริงก่อนเปิดใช้งาน)
/api/v1/gw/cmu-itsc-account-me/profile/bundle
Dynamic Proxy
Composite: โปรไฟล์บุคลากร CMUBS ครบชุด (4 API ในคำขอเดียว) — รวม Account + HR Personal + HR Basic + HR Image (Base64) ใน 1 Request แบบ Parallel โดยดึงข้อมูล HR เฉพาะบุคลากรสังกัดคณะบริหารธุรกิจ (organization_code = 15)
/api/v1/gw/cmu-itsc-account-me/account/basicinfo
Dynamic Proxy
ACC01-1-01 ข้อมูลบัญชีผู้ใช้งาน (Me) — ดึงข้อมูลบัญชี CMU IT Account ของผู้ใช้งานที่ล็อกอินอยู่
/api/v1/gw/cmu-itsc-account-me/hr/personalinfo
Dynamic Proxy
EMP01-1-01 ข้อมูลส่วนตัวบุคลากร (Me) — ดึงข้อมูลส่วนตัวบุคลากรพร้อมปกปิดเลขบัตรประชาชน วันเกิด และเบอร์โทรตาม PDPA
/api/v1/gw/cmu-itsc-account-me/hr/basicinfo
Dynamic Proxy
EMP01-1-03 ข้อมูลพื้นฐานบุคลากรและสังกัด (Me) — ดึงตำแหน่งงาน สถานะการทำงาน และโครงสร้างหน่วยงาน 4 ระดับ
/api/v1/gw/cmu-itsc-account-me/hr/image
Dynamic Proxy
EMP01-1-05 รูปภาพโปรไฟล์บุคลากร (Binary Image) — ส่งต่อรูปภาพบุคลากรแบบ Binary-Safe พร้อม Cache แยกรายบุคคล