Skip to content

Commit 842bac7

Browse files
minoli-vfrancisf
authored andcommitted
Did minor changes to the worker API
1 parent 6509c6d commit 842bac7

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

README.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ curl -u "username:access_key" https://api.browserstack.com/5/worker/123456789/sc
316316
```
317317

318318
## Get Details of all Browser Workers
319-
This API request returns comprehensive information of all browser workers you’ve created.
319+
This API request returns comprehensive information of all browser workers you’ve created. Also, it will return the status of the workers - either `queue` or `running`.
320320

321321
```http
322322
GET /workers
@@ -328,18 +328,27 @@ curl -u "username:access_key" -X GET https://api.browserstack.com/5/workers
328328

329329
Example response:
330330
```javascript
331-
[{
332-
"id": "<workerId>",
333-
"status": "running",
334-
"os": "OS X",
335-
"os_version": "Mojave",
336-
"browser": "chrome",
337-
"browser_version": "75.0",
338-
"real_mobile": null,
339-
"device": null,
340-
"browser_url": "<dashboard_url_of_the_session>",
341-
"sessionId": "<sessionId>"
342-
}]
331+
[
332+
{
333+
"id": "<workerId>",
334+
"status": "running",
335+
"os": "OS X",
336+
"os_version": "Mojave",
337+
"browser": "chrome",
338+
"browser_version": "75.0",
339+
"real_mobile": null,
340+
"device": null,
341+
"browser_url": "<dashboard_url_of_the_session>",
342+
"sessionId": "<sessionId>"
343+
},
344+
{
345+
status: 'queue',
346+
device: 'Samsung Galaxy Tab 8.9',
347+
os: 'android',
348+
os_version: '2.2',
349+
sessionId: "<sessionId>",
350+
browser_url: "<dashboard_url_of_the_session>"
351+
} ...]
343352
```
344353

345354
## Terminating a Browser Worker

0 commit comments

Comments
 (0)