Module

frontend/src/api/routes/robots/robots

Methods

# async inner changeSsotName(robotId, newRobotName) → {Object}

Rename the robot in the ssot
Parameters:
Name Type Description
robotId String RobotId of the robot that will be renamed
newRobotName String String with the new RobotName

View Source frontend/src/api/routes/robots/robots.js, line 30

Object containing robotName and starterId
Object

# async inner deleteRobotFromDB(robotId) → {Object}

Delete a robot by sending a call to the backend
Parameters:
Name Type Description
robotId String Id of the robot that will be deleted

View Source frontend/src/api/routes/robots/robots.js, line 51

Mongoose query describing execution of call
Object

# async inner getParsedRobotFile() → {String}

Triggers parsing of the ssot to .robot file

View Source frontend/src/api/routes/robots/robots.js, line 10

.robot file code
String

# async inner getSsot(robotId) → {Object}

Fetch the ssot correlating to the specified Id
Parameters:
Name Type Description
robotId String Id of the robot that will be retrieved

View Source frontend/src/api/routes/robots/robots.js, line 18

Found ssot
Object

# async inner updateRobot(robotId, ssot) → {Object}

Overwrites an existing sssot in the backend with a new one
Parameters:
Name Type Description
robotId String Id of the robot that will be overwritten
ssot String New ssot that will be written to the database

View Source frontend/src/api/routes/robots/robots.js, line 64

Updated ssot object
Object