Skip to content

Commit 865d70d

Browse files
netmilkB4nan
andauthored
feat: add Redoc legacy urls and a script for traversing and safe dumping the yamls (#1372)
Co-authored-by: Martin Adámek <[email protected]>
1 parent c6d3db3 commit 865d70d

File tree

70 files changed

+400
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+400
-41
lines changed

apify-api/openapi/components/tags.yaml

Lines changed: 96 additions & 0 deletions
Large diffs are not rendered by default.

apify-api/openapi/paths/actor-builds/actor-builds.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ get:
55
x-legacy-doc-urls:
66
- https://docs.apify.com/api/v2#/reference/actor-builds/build-collection/get-user-builds-list
77
- https://docs.apify.com/api/v2#/reference/actor-builds/get-user-builds-list
8+
- https://docs.apify.com/api/v2#tag/Actor-buildsBuild-collection/operation/actorBuilds_get
89
description: |
910
Gets a list of all builds for a user. The response is a JSON array of
1011
objects, where each object contains basic information about a single build.

apify-api/openapi/paths/actor-builds/actor-builds@{buildId}.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ get:
5454
x-legacy-doc-urls:
5555
- https://docs.apify.com/api/v2#/reference/actor-builds/build-object/get-build
5656
- https://docs.apify.com/api/v2#/reference/actor-builds/get-build
57+
- https://docs.apify.com/api/v2#tag/Actor-buildsBuild-object/operation/actorBuild_get
5758
x-js-parent: BuildClient
5859
x-js-name: get
5960
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/BuildClient#get
@@ -89,6 +90,7 @@ delete:
8990
x-legacy-doc-urls:
9091
- https://docs.apify.com/api/v2#/reference/actor-builds/delete-build/delete-build
9192
- https://docs.apify.com/api/v2#/reference/actor-builds/delete-build
93+
- https://docs.apify.com/api/v2#tag/Actor-builds/operation/actorBuild_delete
9294
x-js-parent: BuildClient
9395
x-js-name: delete
9496
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/BuildClient#delete

apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@abort.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ post:
3131
x-legacy-doc-urls:
3232
- https://docs.apify.com/api/v2#/reference/actor-builds/abort-build/abort-build
3333
- https://docs.apify.com/api/v2#/reference/actor-builds/abort-build
34+
- https://docs.apify.com/api/v2#tag/Actor-buildsAbort-build/operation/actorBuild_abort_post
3435
x-js-parent: BuildClient
3536
x-js-name: abort
3637
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/BuildClient#abort

apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@log.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ get:
5656
x-legacy-doc-urls:
5757
- https://docs.apify.com/api/v2#/reference/actor-builds/build-log/get-log
5858
- https://docs.apify.com/api/v2#/reference/actor-builds/get-log
59+
- https://docs.apify.com/api/v2#tag/Actor-buildsBuild-log/operation/actorBuild_log_get

apify-api/openapi/paths/actor-runs/actor-runs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ get:
108108
x-legacy-doc-urls:
109109
- https://docs.apify.com/api/v2#/reference/actor-runs/run-collection/get-user-runs-list
110110
- https://docs.apify.com/api/v2#/reference/actor-runs/get-user-runs-list
111+
- https://docs.apify.com/api/v2#tag/Actor-runsRun-collection/operation/actorRuns_get

apify-api/openapi/paths/actor-runs/actor-runs@{runId}.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ get:
183183
x-legacy-doc-urls:
184184
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages/get-run
185185
- https://docs.apify.com/api/v2#/reference/actor-runs/get-run
186+
- https://docs.apify.com/api/v2#tag/Actor-runsRun-object-and-its-storages/operation/actorRun_get
186187
delete:
187188
tags:
188189
- Actor runs/Delete run
@@ -209,6 +210,7 @@ delete:
209210
x-legacy-doc-urls:
210211
- https://docs.apify.com/api/v2#/reference/actor-runs/delete-run/delete-run
211212
- https://docs.apify.com/api/v2#/reference/actor-runs/delete-run
213+
- https://docs.apify.com/api/v2#tag/Actor-runsDelete-run/operation/actorRun_delete
212214
x-js-parent: RunClient
213215
x-js-name: delete
214216
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/RunClient#delete
@@ -335,3 +337,4 @@ put:
335337
x-legacy-doc-urls:
336338
- https://docs.apify.com/api/v2#/reference/actor-runs/update-status-message/update-status-message
337339
- https://docs.apify.com/api/v2#/reference/actor-runs/update-status-message
340+
- https://docs.apify.com/api/v2#tag/Actor-runsUpdate-status-message/operation/actorRun_put

apify-api/openapi/paths/actor-runs/actor-runs@{runId}@abort.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ post:
111111
x-legacy-doc-urls:
112112
- https://docs.apify.com/api/v2#/reference/actor-runs/abort-run/abort-run
113113
- https://docs.apify.com/api/v2#/reference/actor-runs/abort-run
114+
- https://docs.apify.com/api/v2#tag/Actor-runsAbort-run/operation/actorRun_abort_post
114115
x-js-parent: RunClient
115116
x-js-name: abort
116117
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/RunClient#abort

apify-api/openapi/paths/actor-runs/actor-runs@{runId}@charge.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ post:
2525
example: 2024-12-09T01:23:45.000Z-random-uuid
2626
description: Always pass a unique idempotency key (any unique string) for each charge to avoid double charging in case of retries or network errors.
2727
requestBody:
28-
description: 'Define which event, and how many times, you want to charge for.'
29-
content:
30-
application/json:
31-
schema:
32-
$ref: "../../components/schemas/actor-runs/ChargeRunRequest.yaml"
33-
example:
34-
eventName: 'ANALYZE_PAGE'
35-
eventCount: 1
36-
required: true
28+
description: 'Define which event, and how many times, you want to charge for.'
29+
content:
30+
application/json:
31+
schema:
32+
$ref: "../../components/schemas/actor-runs/ChargeRunRequest.yaml"
33+
example:
34+
eventName: 'ANALYZE_PAGE'
35+
eventCount: 1
36+
required: true
3737
responses:
3838
'201':
3939
description: 'The charge was successful. Note that you still have to make sure in your Actor that the total charge for the run respects the maximum value set by the user, as the API does not check this. Above the limit, the charges reported as successful in API will not be added to your payouts, but you will still bear the associated costs. Use the Apify charge manager or SDK to avoid having to deal with this manually.'
@@ -45,4 +45,5 @@ post:
4545
x-py-name: charge
4646
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/RunClientAsync#charge
4747
x-legacy-doc-urls:
48-
- https://docs.apify.com/api/v2#/reference/actor-runs/charge-events-in-run
48+
- https://docs.apify.com/api/v2#/reference/actor-runs/charge-events-in-run
49+
- https://docs.apify.com/api/v2#tag/Actor-runsCharge-events-in-run/operation/PostChargeRun

apify-api/openapi/paths/actor-runs/actor-runs@{runId}@metamorph.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ post:
139139
x-legacy-doc-urls:
140140
- https://docs.apify.com/api/v2#/reference/actor-runs/metamorph-run/metamorph-run
141141
- https://docs.apify.com/api/v2#/reference/actor-runs/metamorph-run
142+
- https://docs.apify.com/api/v2#tag/Actor-runsMetamorph-run/operation/actorRun_metamorph_post
142143
x-js-parent: RunClient
143144
x-js-name: metamorph
144145
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/RunClient#metamorph

0 commit comments

Comments
 (0)