2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
OmniLab ATS の API
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
OmniLab ATS には、テスト実行のスケジュール設定、進行状況の確認などを行うための API が用意されています。これらを使用して、Test Station をワークフローやサービスに統合できます。
API リファレンス
OmniLab ATS のインターフェースは RESTful であり、リソース指向の URL を使用して、JSON でエンコードされたデータを処理します。
バージョン R12 には、パラメータやレスポンスなどの API エンドポイントを記録する Google APIs Explorer が導入されています。Google APIs Explorer を使って API を試すことができます。
図 1. Google APIs Explorer へのリンク
図 2. Google APIs Explorer(OpenAPI 仕様をハイライト表示)
クライアントを生成する
OmniLab ATS クライアントは、Google APIs Explorer の OpenAPI 仕様(デフォルトでは http://localhost:8000/_ah/api_docs/api.json
)から生成できます。
OpenAPI 生成ツールをダウンロードします。
次のコマンドを実行して、指定したプログラミング言語でクライアントを生成します。
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-03-03 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-03-03 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."]]