Skip to content

Commit 3f38239

Browse files
authored
fix: Fixing the broken YAML multi-string in opanapi (#1313)
This was caused by the manual edits after the migration, improper use of YAML folded block scalar, and fixed the same way as apify/openapi#111 **After:** ![image](https://github.com/user-attachments/assets/145eccc6-7541-48f9-8464-02bfad99321d) **Before** ![image (9)](https://github.com/user-attachments/assets/c9e00081-737f-4452-946a-af38df91f4db)
1 parent 4784e80 commit 3f38239

File tree

1 file changed

+14
-73
lines changed

1 file changed

+14
-73
lines changed

apify-api/openapi/paths/actors/acts@{actorId}@[email protected]

Lines changed: 14 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -3,117 +3,59 @@ get:
33
- Actors/Last run object and its storages
44
summary: Get last run
55
description: |
6-
This is not a single endpoint, but an entire group of endpoints that lets
7-
you to
8-
9-
retrieve and manage the last run of given Actor or any of its default
10-
storages.
11-
6+
This is not a single endpoint, but an entire group of endpoints that lets you to
7+
retrieve and manage the last run of given Actor or any of its default storages.
128
All the endpoints require an authentication token.
139
14-
1510
The endpoints accept the same HTTP methods and query parameters as
16-
1711
the respective storage endpoints.
18-
1912
The base path represents the last Actor run object is:
2013
21-
2214
`/v2/acts/{actorId}/runs/last{?token,status}`
2315
24-
25-
Using the `status` query parameter you can ensure to only get a run with a
26-
certain status
27-
28-
(e.g. `status=SUCCEEDED`). The output of this endpoint and other query
29-
parameters
30-
16+
Using the `status` query parameter you can ensure to only get a run with a certain status
17+
(e.g. `status=SUCCEEDED`). The output of this endpoint and other query parameters
3118
are the same as in the [Run object](#/reference/actors/run-object) endpoint.
3219
33-
34-
In order to access the default storages of the last Actor run, i.e. log,
35-
key-value store, dataset and request queue,
36-
20+
In order to access the default storages of the last Actor run, i.e. log, key-value store, dataset and request queue,
3721
use the following endpoints:
3822
39-
4023
* `/v2/acts/{actorId}/runs/last/log{?token,status}`
41-
42-
4324
* `/v2/acts/{actorId}/runs/last/key-value-store{?token,status}`
44-
45-
4625
* `/v2/acts/{actorId}/runs/last/dataset{?token,status}`
47-
48-
4926
* `/v2/acts/{actorId}/runs/last/request-queue{?token,status}`
5027
51-
5228
These API endpoints have the same usage as the equivalent storage endpoints.
53-
5429
For example,
55-
56-
`/v2/acts/{actorId}/runs/last/key-value-store` has the same HTTP method and
57-
parameters as the
58-
30+
`/v2/acts/{actorId}/runs/last/key-value-store` has the same HTTP method and parameters as the
5931
[Key-value store object](#/reference/key-value-stores/store-object) endpoint.
6032
61-
6233
Additionally, each of the above API endpoints supports all sub-endpoints
63-
6434
of the original one:
6535
66-
6736
#### Key-value store
6837
69-
70-
* `/v2/acts/{actorId}/runs/last/key-value-store/keys{?token,status}` [Key
71-
collection](#/reference/key-value-stores/key-collection)
72-
73-
74-
*
75-
`/v2/acts/{actorId}/runs/last/key-value-store/records/{recordKey}{?token,status}`
76-
[Record](#/reference/key-value-stores/record)
77-
38+
* `/v2/acts/{actorId}/runs/last/key-value-store/keys{?token,status}` [Key collection](#/reference/key-value-stores/key-collection)
39+
* `/v2/acts/{actorId}/runs/last/key-value-store/records/{recordKey}{?token,status}` [Record](#/reference/key-value-stores/record)
7840
7941
#### Dataset
8042
81-
82-
* `/v2/acts/{actorId}/runs/last/dataset/items{?token,status}` [Item
83-
collection](#/reference/datasets/item-collection)
84-
43+
* `/v2/acts/{actorId}/runs/last/dataset/items{?token,status}` [Item collection](#/reference/datasets/item-collection)
8544
8645
#### Request queue
8746
47+
* `/v2/acts/{actorId}/runs/last/request-queue/requests{?token,status}` [Request collection](#/reference/request-queues/request-collection)
48+
* `/v2/acts/{actorId}/runs/last/request-queue/requests/{requestId}{?token,status}` [Request collection](#/reference/request-queues/request)
49+
* `/v2/acts/{actorId}/runs/last/request-queue/head{?token,status}` [Queue head](#/reference/request-queues/queue-head)
8850
89-
* `/v2/acts/{actorId}/runs/last/request-queue/requests{?token,status}`
90-
[Request collection](#/reference/request-queues/request-collection)
91-
92-
93-
*
94-
`/v2/acts/{actorId}/runs/last/request-queue/requests/{requestId}{?token,status}`
95-
[Request collection](#/reference/request-queues/request)
96-
97-
98-
* `/v2/acts/{actorId}/runs/last/request-queue/head{?token,status}` [Queue
99-
head](#/reference/request-queues/queue-head)
100-
101-
102-
For example, to download data from a dataset of the last succeeded Actor run
103-
in XML format,
104-
51+
For example, to download data from a dataset of the last succeeded Actor run in XML format,
10552
send HTTP GET request to the following URL:
10653
107-
10854
```
109-
11055
https://api.apify.com/v2/acts/{actorId}/runs/last/dataset/items?token={yourApiToken}&format=xml&status=SUCCEEDED
111-
11256
```
11357
114-
115-
In order to save new items to the dataset, send HTTP POST request with JSON
116-
payload to the same URL.
58+
In order to save new items to the dataset, send HTTP POST request with JSON payload to the same URL.
11759
operationId: act_runs_last_get
11860
parameters:
11961
- name: actorId
@@ -215,4 +157,3 @@ get:
215157
deprecated: false
216158
x-legacy-doc-urls:
217159
- https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages/get-last-run
218-
- https://docs.apify.com/api/v2#/reference/actors/get-last-run

0 commit comments

Comments
 (0)