REST API Methods for Eggplant Manager and Eggplant Automation Cloud

The REST API URLs and methods for working with Eggplant Automation Cloud and Eggplant Manager are listed in the following table. Use the links in the table to go to the pages for the URLs. The pages provide descriptions and examples for the URLs and methods. We've included examples using CURL, though you can use other API clients to implement these methods.

Text shown in italic type in the table below and on the individual method pages indicates values that must be replaced with information from your environment.

Title URL HTTP Method Description

Tests

List Tests /api/test GET Returns a list of all tests.
Test by ID /api/test/<id> GET Returns a single test by ID <id>.
Create Test

/api/test/create

POST Returns the newly created test.
Update Test

/api/test/<id>/update

POST Returns the updated test.
Destroy Test

/api/test/<id>/destroy

GET Destroys test with ID <id> and returns status.
Execute Test /api/test/<id>/execute GET Executes test with ID <id> and returns test run.

Scripts

List Scripts

/api/test_execution

GET Returns a list of all scripts.
Script by ID

/api/test_execution/<id>

GET Returns a single script by ID.
Create Script

/api/test_execution/create

POST Returns the newly created script.
Update Script

/api/test_execution/<id>/update

POST Returns the updated script.
Destroy Script

/api/test_execution/<id>/destroy

GET Destroys script with ID <id> and returns status.

Configurations

List Configurations

/api/execution_configuration

GET Returns a list of all configurations.
Configuration by ID

/api/execution_configuration/<id>

GET Returns a single configuration by ID.
Destroy a Configuration /api/execution_configuration/<id>/destroy GET Destroys a test configuration by ID.
Update a Configuration /api/execution_configuration/<id>/update POST Updates a test configuration by ID.
Create a Configuration /api/execution_configuration/create POST Creates a new test configuration.

SUTs

List SUTs

/api/sut

GET Returns a list of all SUTs.
SUT by ID

/api/sut/<id>

GET Returns a single SUT by ID.
Create SUT /api/sut/create POST Creates a SUT.
Destroy SUT by ID /api/sut/<id>/destroy GET Destroys a single SUT by ID.
Update SUT by ID /api/sut/<id>/update POST Updates a SUT by ID.

Apps

List Applications /api/managed_application GET Returns a list of all applications.
Application by ID /api/managed_application/<id> GET Returns a single application by ID.
Create Application

/api/managed_application/create

POST Returns the newly created app.
Update Application

/api/managed_application/<id>/update

POST Returns the newly updated app.
Destroy Application /api/managed_application/<id>/destroy GET Destroys the app with ID <id> and returns status.
Install Application /api/managed_application/<id>/install POST Installs the app with ID <id>.

Users

List Users

/api/user

GET Returns a list of users.
User by ID

/api/user/<id>

GET Returns a single user by ID.

Reservations

List Reservations

/api/sut_reservation

GET Returns a list of SUT reservations.
Reservation by ID

/api/sut_reservation/<id>

GET Returns a single reservation by ID.
Create Reservation

/api/sut_reservation/create

POST Returns the newly created reservation.
Update Reservation

/api/sut_reservation/<id>/update

POST Returns the newly updated reservation.
Destroy Reservation

/api/sut_reservation/<id>/destroy

GET Destroys the reservation with ID <id> and returns status.

Test Runs

List Test Runs /api/test_run

GET

Returns a list of all test runs.
Test Run by ID

/api/test_run/<id>

GET Returns a single test run by ID.
Destroy Test Run

/api/test_run/<id>/destroy

GET Destroys a test run with ID <id> and returns status.

Instances

List Instances

/api/test_run_instance

GET Returns a list of all test run instances.
Instance by ID /api/test_run_instance/<id> GET Returns a single test run instance by ID.

Executions

List Executions /api/run_instance_execution GET Returns a list of all run instance executions.
Execution by ID /api/run_instance_execution/<id> GET Returns a single run instance execution by ID.

Log Files

List Log Files /api/log_file GET Returns a list of all log files.
Log File by ID /api/log_file/<id> GET Returns a single log file by ID.

Uploads

Upload File /api/upload POST Uploads a file and returns an upload_id.

 

This topic was last updated on August 19, 2021, at 03:30:51 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant