החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
API של OmniLab ATS
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
OmniLab ATS מציע ממשקי API לתזמון של הפעלות בדיקה, לאימות ההתקדמות ועוד. תוכלו להשתמש בהם כדי לשלב את Test Station בתהליכי העבודה ובשירותים שלכם.
הפניית ממשק API
ממשק ה-ATS של OmniLab הוא מבוסס-REST, משתמש בכתובות URL שמתמקדות במשאבים ומטפל בנתונים בקידוד JSON.
בגרסה R12 נוספה כלי Google APIs Explorer שמתעד את נקודות הקצה של ה-API, כולל הפרמטרים והתשובות שלהן. אפשר להשתמש ב-Google APIs Explorer כדי לנסות ממשקי API.
איור 1. קישור ל-Google APIs Explorer
איור 2. Google APIs Explorer עם הדגשה של מפרט OpenAPI
יצירת לקוח
אפשר ליצור לקוחות OmniLab ATS מהמפרט של OpenAPI שנמצא ב-Google APIs Explorer (בכתובת 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."]]