วิธีการทดสอบยิงโดยใช้ Swagger
วิธีการทดสอบยิงโดยใช้ Swagger
![](https://storage.crisp.chat/users/helpdesk/website/14e70c59388c7000/1_180801_132020_ybzg9n.png)
คลิกปุ่ม Authorize
![](https://storage.crisp.chat/users/helpdesk/website/14e70c59388c7000/2_180801_132222_5x9zw9.png)
ใส่ข้อมูลการเชื่อมต่อ
- username คือ อีเมล์ที่ใช้ login เข้าระบบหลังบ้าน
- password คือ รหัสผ่านที่ใช้ login เข้าระบบหลังบ้าน
- client_id คือ หมายเลข Client ในการเชื่อมต่อ API ที่ได้รับมา
- client_secret คือ รหัสของ Client ที่ได้รับมา
![](https://storage.crisp.chat/users/helpdesk/website/14e70c59388c7000/2_180801_132222_1wgxyfo.png)
หลังจากเชื่อมต่อแล้ว ให้กด Close เพิ่อปิดหน้าต่าง Popup
![](https://storage.crisp.chat/users/helpdesk/website/14e70c59388c7000/4_180801_132330_1v1nl9e.png)
เลือก Endpoint ที่จะทำการทดสอบแล้วกด Try it out
![](https://storage.crisp.chat/users/helpdesk/website/14e70c59388c7000/5_180801_132439_95r6v0.png)
กรอก Parameter ที่จำเป็น กรณีที่เป็นหมายเลขร้าน (Store ID) หากไม่ทราบหมายเลขนี้ กรณีติดต่อ Customer support
![](https://storage.crisp.chat/users/helpdesk/website/14e70c59388c7000/6_180801_132700_qpbrbe.png)
กด Execute เพื่อทำการยิง Request
![](https://storage.crisp.chat/users/helpdesk/website/14e70c59388c7000/7_180801_132737_18il6cq.png)
ตรวจสอบ Response ที่ได้รับ
อัปเดตเมื่อ: 12/12/2019
ขอบคุณ!