Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/apify_client/clients/resource_clients/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)

Expand Down Expand Up @@ -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',
)

Expand Down
Loading