Selenium
A GET
request will list the index.
Example request
$ curl -i http://skylar.livingfire.de/api/selenium
Response fields
Path | Type | Description |
---|---|---|
|
|
Links to other resources |
Links
Relation | Description |
---|---|
|
Canonical link for this resource |
|
See web page open |
|
See web radio |
|
See session close |
|
See session html |
web page open
A GET
request will open a url in a web browser session.
Request parameters
Parameter | Description |
---|---|
|
a URL like https://www.youtube.com/ |
Response fields
Path | Type | Description |
---|---|---|
|
|
a HTTP status code like 201 |
|
|
native Skylar code like 005001 see SkylarCodeConstant.java |
|
|
Message shown in the user interface |
|
|
Additional information for debugging |
Curl request
$ curl 'http://skylar.livingfire.de/api/selenium/webpage?open=https://www.youtube.com/' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 115
{"status":200,"code":"011001","userMessage":"selenium webpage opened","developerMessage":"selenium webpage opened"}
web radio
A GET
request will start the web radio.
Response fields
Path | Type | Description |
---|---|---|
|
|
a HTTP status code like 201 |
|
|
native Skylar code like 005001 see SkylarCodeConstant.java |
|
|
Message shown in the user interface |
|
|
Additional information for debugging |
Curl request
$ curl 'http://skylar.livingfire.de/api/selenium/webRadio' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 115
{"status":200,"code":"011001","userMessage":"selenium webpage opened","developerMessage":"selenium webpage opened"}
session close
A GET
request will close the web browser session.
Response fields
Path | Type | Description |
---|---|---|
|
|
a HTTP status code like 201 |
|
|
native Skylar code like 005001 see SkylarCodeConstant.java |
|
|
Message shown in the user interface |
|
|
Additional information for debugging |
Curl request
$ curl 'http://skylar.livingfire.de/api/selenium/session/close' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 115
{"status":200,"code":"011002","userMessage":"selenium session closed","developerMessage":"selenium session closed"}
session HTML
A GET
request will get the HTML of the web browser session.
Curl request
$ curl 'http://skylar.livingfire.de/api/selenium/session/html' -i -X GET
HTTP response
HTTP/1.1 200 OK
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 29
<html><body>foo</body></html>