ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
API ของ OmniLab ATS
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
OmniLab ATS มี API เพื่อกำหนดเวลาการทดสอบ ยืนยันความคืบหน้า และอื่นๆ คุณใช้เพื่อผสานรวม Test Station เข้ากับเวิร์กโฟลว์และบริการได้
การอ้างอิง API
อินเทอร์เฟซ OmniLab ATS เป็น RESTful, ใช้ URL ที่มุ่งเน้นทรัพยากร และจัดการข้อมูลที่เข้ารหัส JSON
เวอร์ชัน R12 เปิดตัวโปรแกรมสำรวจ Google APIs ที่บันทึกข้อมูลเกี่ยวกับปลายทาง API รวมถึงพารามิเตอร์และการตอบกลับ คุณสามารถใช้โปรแกรมสำรวจ Google APIs เพื่อลองใช้ API
รูปที่ 1 ลิงก์ไปยังโปรแกรมสำรวจ Google APIs
รูปที่ 2 โปรแกรมสำรวจ Google APIs ที่ไฮไลต์ข้อมูลจำเพาะของ OpenAPI
สร้างไคลเอ็นต์
คุณสามารถสร้างไคลเอ็นต์ OmniLab ATS จากข้อกำหนด OpenAPI ที่อยู่ในโปรแกรมสำรวจ Google APIs (ที่ http://localhost:8000/_ah/api_docs/api.json
โดยค่าเริ่มต้น)
ดาวน์โหลดเครื่องมือ OpenAPI Generator
เรียกใช้คำสั่งต่อไปนี้เพื่อสร้างไคลเอ็นต์ในภาษาโปรแกรมที่ระบุ
java -jar openapi-generator-cli.jar generate \
--input-spec http://localhost:8000/_ah/api_docs/api.json \
--generator-name LANGUAGE \
--output OUTPUT_DIRECTORY
ดูข้อมูลเพิ่มเติมได้ที่เอกสารประกอบของ OpenAPI Generator
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# OmniLab ATS API\n\nOmniLab ATS offers APIs to schedule test runs, verify progress, and more. You\ncan use them to integrate Test Station into your workflows and services.\n\nAPI reference\n-------------\n\nThe OmniLab ATS interface is RESTful, uses resource-oriented URLs, and handles\nJSON-encoded data.\n\nVersion R12 introduces a Google APIs Explorer that documents the API endpoints,\nincluding their parameters and responses. You can use the Google APIs Explorer\nto try APIs.\n\n**Figure 1.** Link to the Google APIs Explorer\n\n**Figure 2.** Google APIs Explorer with OpenAPI specification highlighted\n\nGenerate a client\n-----------------\n\nYou can generate OmniLab ATS clients from the OpenAPI specification located in\nthe Google APIs Explorer (at `http://localhost:8000/_ah/api_docs/api.json` by\ndefault).\n\n1. Download the [OpenAPI Generator tool](https://openapi-generator.tech/docs/installation#jar).\n\n2. Run the following command to generate a client in the specified programming\n language.\n\n```\njava -jar openapi-generator-cli.jar generate \\\n --input-spec http://localhost:8000/_ah/api_docs/api.json \\\n --generator-name LANGUAGE \\\n --output OUTPUT_DIRECTORY\n```\n\nSee the [OpenAPI Generator documentation](https://openapi-generator.tech/docs/usage)\nfor more information."]]