Od 27 marca 2025 r. zalecamy używanie android-latest-release
zamiast aosp-main
do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
Interfejs API OmniLab ATS
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
OmniLab ATS udostępnia interfejsy API do planowania testów, weryfikowania postępu i innych działań. Możesz ich używać do integracji Test Station z przepływami pracy i usługami.
Materiały referencyjne interfejsu API
Interfejs OmniLab ATS jest zgodny z protokołem REST, używa adresów URL zorientowanych na zasoby i obsługuje dane zakodowane w formacie JSON.
Wersja R12 wprowadza narzędzie Google APIs Explorer, które dokumentuje punkty końcowe interfejsu API, w tym ich parametry i odpowiedzi. Aby wypróbować interfejsy API, możesz użyć narzędzia Google APIs Explorer.
Rysunek 1. Link do Google APIs Explorer
Rysunek 2. Narzędzie Google APIs Explorer z wyróżnioną specyfikacją OpenAPI
Tworzenie klienta
Klientów OmniLab ATS możesz generować na podstawie specyfikacji OpenAPI dostępnej w narzędziu Google APIs Explorer (domyślnie http://localhost:8000/_ah/api_docs/api.json
).
Pobierz narzędzia OpenAPI Generator.
Aby wygenerować klienta w wybranym języku programowania, uruchom to polecenie:
java -jar openapi-generator-cli.jar generate \
--input-spec http://localhost:8000/_ah/api_docs/api.json \
--generator-name LANGUAGE \
--output OUTPUT_DIRECTORY
Więcej informacji znajdziesz w dokumentacji Generatora OpenAPI.
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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."]]