Standalone implementation of Gravity API back-end on ASP.NET Core. The service can run on Windows, Linux, MacOS.
Artifacts Location: https://github.com/gravity-api/gravity-standalone/releases
Free Register: https://github.com/gravity-api/gravity-actions/wiki/Register Gravity Actions: https://github.com/gravity-api/gravity-actions Gravity Macros: https://github.com/gravity-api/gravity-macros
You must have dotnet core installed on your machine you can download it here: https://dotnet.microsoft.com/download
- Download the latest release: https://github.com/gravity-api/gravity-standalone/releases.
- Extract the files.
- Navigate to the folder where the compiled files are.
- execute the following command.
$ dotnet Gravity.Service.Standalone.dll
Gets the status of this service (if it is running or if there is a problem).
GET <your_server_address>/api/orbit
Executes the provided web automation sequence, based on actions, configuration and driver parameters provided. The request body is a WebAutomation data contract.
POST <your_server_address>/api/orbit
{
"Authentication": {
"Password": "myPass",
"UserName": "myUser@mail.com"
},
"EngineConfiguration": {
"ElementSearchingTimeout": 3000,
"PageLoadTimeout": 60000
},
"DriverParams": "{'Driver':'ChromeDriver','DriverBinaries':'.'}",
"Actions": [
{
"ActionType": "GoToUrl",
"Argument": "https://www.google.com"
},
{
"ActionType": "SendKeys",
"ElementToActOn": "//input[@name='q']",
"Argument": "automation"
},
{
"ActionType": "Click",
"ElementToActOn": "//ul[@role='listbox']/li"
},
{
"ActionType": "CloseBrowser"
}
]
}
Gets a list of all actions which were loaded under the current domain or gets a knowledge base of a specific action, provided it's name.
GET <your_server_address>/api/kb/actions
GET <your_server_address>/api/kb/actions/<action_name>
Gets a list of all macros which were loaded under the current domain or gets a knowledge base of a specific macro, provided it's name.
GET <your_server_address>/api/kb/macros
GET <your_server_address>/api/kb/macros/<macro_name>
Gets a list of all locators which were loaded under the current domain.
GET <your_server_address>/api/kb/locators
Gets a list of all data source types which were loaded under the current domain.
GET <your_server_address>/api/kb/sources
Gets a list of all data contract types which were loaded under the current domain or a specific contract, provided it's name.
GET <your_server_address>/api/kb/contracts
GET <your_server_address>/api/kb/contracts/<contract_name>