@@ -43,6 +43,23 @@ def abort(self) -> dict:
43
43
"""
44
44
return self ._abort ()
45
45
46
+ def get_open_api_specification (self ) -> dict | None :
47
+ """Return OpenAPI specification of the Actor's build.
48
+
49
+ https://docs.apify.com/api/v2/actor-build-openapi-specification-get
50
+
51
+ Returns:
52
+ OpenAPI specification of the Actor's build.
53
+ """
54
+ response = self .http_client .call (
55
+ url = self ._url ('openapi-specification' ),
56
+ method = 'GET' ,
57
+ )
58
+
59
+ response_data : dict = response .json ()
60
+
61
+ return response_data
62
+
46
63
def wait_for_finish (self , * , wait_secs : int | None = None ) -> dict | None :
47
64
"""Wait synchronously until the build finishes or the server times out.
48
65
@@ -103,6 +120,23 @@ async def delete(self) -> None:
103
120
"""
104
121
return await self ._delete ()
105
122
123
+ async def get_open_api_specification (self ) -> dict | None :
124
+ """Return OpenAPI specification of the Actor's build.
125
+
126
+ https://docs.apify.com/api/v2/actor-build-openapi-specification-get
127
+
128
+ Returns:
129
+ OpenAPI specification of the Actor's build.
130
+ """
131
+ response = await self .http_client .call (
132
+ url = self ._url ('openapi-specification' ),
133
+ method = 'GET' ,
134
+ )
135
+
136
+ response_data : dict = response .json ()
137
+
138
+ return response_data
139
+
106
140
async def wait_for_finish (self , * , wait_secs : int | None = None ) -> dict | None :
107
141
"""Wait synchronously until the build finishes or the server times out.
108
142
0 commit comments