From a0b526db0eefa08f675cf6adcdb68b6e791c0d43 Mon Sep 17 00:00:00 2001 From: Daniil Poletaev <44584010+danpoletaev@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:59:02 +0100 Subject: [PATCH] refactor: rename /openapi-specification -> /openapi.json --- .../clients/resource_clients/build.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/apify_client/clients/resource_clients/build.py b/src/apify_client/clients/resource_clients/build.py index 19e25fac..bbc91f59 100644 --- a/src/apify_client/clients/resource_clients/build.py +++ b/src/apify_client/clients/resource_clients/build.py @@ -43,16 +43,16 @@ def abort(self) -> dict: """ return self._abort() - def get_open_api_specification(self) -> dict | None: - """Return OpenAPI specification of the Actor's build. + def get_open_api_definition(self) -> dict | None: + """Return OpenAPI definition of the Actor's build. - https://docs.apify.com/api/v2/actor-build-openapi-specification-get + https://docs.apify.com/api/v2/actor-build-openapi-json-get Returns: - OpenAPI specification of the Actor's build. + OpenAPI definition of the Actor's build. """ response = self.http_client.call( - url=self._url('openapi-specification'), + url=self._url('openapi.json'), method='GET', ) @@ -120,16 +120,16 @@ async def delete(self) -> None: """ return await self._delete() - async def get_open_api_specification(self) -> dict | None: - """Return OpenAPI specification of the Actor's build. + async def get_open_api_definition(self) -> dict | None: + """Return OpenAPI definition of the Actor's build. - https://docs.apify.com/api/v2/actor-build-openapi-specification-get + https://docs.apify.com/api/v2/actor-build-openapi-json-get Returns: - OpenAPI specification of the Actor's build. + OpenAPI definition of the Actor's build. """ response = await self.http_client.call( - url=self._url('openapi-specification'), + url=self._url('openapi.json'), method='GET', )