Selenium

A GET request will list the index.

Example request

$ curl -i http://skylar.livingfire.de/api/selenium

Response fields

Path Type Description

_links

Object

Links to other resources

Relation Description

self

Canonical link for this resource

seleniumWebpageOpen

See web page open

seleniumWebRadio

See web radio

seleniumSessionClose

See session close

seleniumSessionHtml

See session html

web page open

A GET request will open a url in a web browser session.

Request parameters
Parameter Description

open

a URL like https://www.youtube.com/

Response fields
Path Type Description

status

Number

a HTTP status code like 201

code

String

native Skylar code like 005001 see SkylarCodeConstant.java

userMessage

String

Message shown in the user interface

developerMessage

String

Additional information for debugging

Curl request
$ curl 'http://skylar.livingfire.de/api/selenium/webpage?open=https://www.youtube.com/' -i
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

status

Number

a HTTP status code like 201

code

String

native Skylar code like 005001 see SkylarCodeConstant.java

userMessage

String

Message shown in the user interface

developerMessage

String

Additional information for debugging

Curl request
$ curl 'http://skylar.livingfire.de/api/selenium/webRadio' -i
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

status

Number

a HTTP status code like 201

code

String

native Skylar code like 005001 see SkylarCodeConstant.java

userMessage

String

Message shown in the user interface

developerMessage

String

Additional information for debugging

Curl request
$ curl 'http://skylar.livingfire.de/api/selenium/session/close' -i
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
HTTP response
HTTP/1.1 200 OK
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 29

<html><body>foo</body></html>