Closed chaintng closed 2 years ago
หมายเหตุ: Document คร่าวๆ นะครับ เดี๋ยวจะแปลงเป็น OpenAPI และทำเป็น MockServer จิงๆ โดยใช้ Prism อีกทีครับ
{ "events": [ { "id": 1, "name": "กลุ่มทะลุฟ้า 15 สิงหาคม", "beginDate": "2021-08-17T03:00:00Z", "endDate": "2021-08-17T05:00:00Z" }, { "id": 2, "name": "คาร์ม๊อบ 16 สิงหาคม", "beginDate": "2021-08-17T03:00:00Z", "endDate": "" } ] }
Parameters
filterTags (Optional) : Filter tag ประกอบข้อมูล เช่น ใช้ความรุนแรง การกระทำของผู้ชุมนุม
{ "records": [ { "id": "ffbb9836-e788-4ab8-8ecc-f85a88b8f64e", "timestamp": "2021-08-17T03:00:00Z", "mediaUrl": "https://picsum.photos/200/300", "mediaType": "STILL", "referenceUrl": "https://twitter.com/MatichonOnline/status/1427240965962559494?s=20", "referenceType": "TWITTER", "tags": ["violence", "capture"], "reporter": "User1234", "weight": "5" }, { "id": "ffbb9836-e788-4ab8-8ecc-f85a88b8f64e", "timestamp": "2021-08-17T03:00:00Z", "mediaUrl": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", "mediaType": "VIDEO", "referenceUrl": "", "referenceType": "PRIVATE_REPORT", "tags": ["violence"], "reporter": "User1234", "weight": "3" } ] }
หมายเหตุ: Document คร่าวๆ นะครับ เดี๋ยวจะแปลงเป็น OpenAPI และทำเป็น MockServer จิงๆ โดยใช้ Prism อีกทีครับ
GET /events
Parameters
Response
GET /records
Parameters
filterTags (Optional) : Filter tag ประกอบข้อมูล เช่น ใช้ความรุนแรง การกระทำของผู้ชุมนุม
Response
หมายเหตุ