Skip to main content

Module: preferences

Module: preferences

Method Parameters HTTP Method Description URL Example

addBookmark

String path

GET/ POST

Adds a filepath bookmark

http://localhost:8080/AppvanceServer/rest/preferences/addBookmark?path=path

createDB

GET/ POST

Creates database results repository

http://localhost:8080/AppvanceServer/rest/preferences/createDB

deleteAppDynamics

String name

Delete an AppDynamics config

deleteBookmark

String path

GET/ POST

Delete a bookmark

http://localhost:8080/AppvanceServer/rest/preferences/deleteBookmark?path=path

deleteDynaTrace

String name

GET/ POST

Delete a dynaTrace config

http://localhost:8080/AppvanceServer/rest/preferences/deleteDynaTrace?name=name

deleteNewRelic

String repositoryName

GET/ POST

Delete a new relic configuratin

http://localhost:8080/AppvanceServer/rest/preferences/deleteNewRelic?name=name

deleteRepository

String repositoryName

GET/ POST

Delete repository with the provided repository name.

http://localhost:8080/AppvanceServer/rest/preferences/deleteRepository?name=repoName

deleteRepositoryByUser

String repositoryName, String utpUserName

GET/ POST

Delete repository with the provided repository name based on a particular user.

http://localhost:8080/AppvanceServer/rest/preferences/deleteRepositoryByUser?name=name&utpusername=username

downloadJiraSettings

Download Jira Settings

getAllRepositoryByUser

String username

Returns repository names from AIQ UserName

getAPMConfigurations

Gets the names of NewRelic and DynaTrace Configuration Names

getAppDynamicsConfiguration

String name

Gets a newRelic configuration details by name

getAppDynamicsConfigurationNames

Returns AppDynamics names

getAppDynamicsConfigurations

Gets the AppDynamics Configurations

getBookmarks

GET/ POST

Returns bookmarks

http://localhost:8080/AppvanceServer/rest/preferences/getBookmarks

getBranches

String username, String name

GET/ POST

Get list branches

http://localhost:8080/AppvanceServer/rest/preferences/getBranches?username=username&name=RepositoryVal

getBrowsers

Gets the browsers

getDBStatus

Tests database connection

getDS3Port

GET/ POST

Gets the ds3ports

http://localhost:8080/AppvanceServer/rest/preferences/getDS3Port

getDynaTraceConfiguration

String name

GET/ POST

Gets a dynaTrace configuration details by name

ttp://localhost:8080/AppvanceServer/rest/preferences/getDynaTraceConfiguration?name=configName

getDynaTraceConfigurationNames

GET/ POST

Returns dyna trace names

http://localhost:8080/AppvanceServer/rest/preferences/getDynaTraceConfigurationNames

getDynaTraceConfigurations

GET/ POST

Gets the DynaTrace Configurations

http://localhost:8080/AppvanceServer/rest/preferences/getDynaTraceConfigurations

getGitRepositoryAuthor

String username, String name

Returns repository author

getJiraSettings

Gets Jira settings

getLatestTimeRefreshRepositories

GET/ POST

Get Latest Time Refresh Repositories

http://localhost:8080/AppvanceServer/rest/preferences/getLatestTimeRefreshRepositories

getLoadRunnerPath

GET/ POST

Gets Load Runner Path

http://localhost:8080/AppvanceServer/rest/preferences/getLoadRunnerPath

getNewRelicConfiguration

String name

GET/ POST

Gets a newRelic configuration detailsby name

http://localhost:8080/AppvanceServer/rest/preferences/getNewRelicConfiguration?name=newRelicCofigVal

getNewRelicConfigurationNames

GET/ POST

Returns new relic names

http://localhost:8080/AppvanceServer/rest/preferences/getNewRelicConfigurationNames

getNewRelicConfigurations

GET/ POST

Gets the NewRelic Configurations

http://localhost:8080/AppvanceServer/rest/preferences/getNewRelicConfigurations

getNotifications

GET/ POST

Checks notifications preferences

http://localhost:8080/AppvanceServer/rest/preferences/getNotifications

getRepository

String name

GET/ POST

Return repository details based on the repo name.

http://localhost:8080/AppvanceServer/rest/preferences/getRepository?name=repoName

getRepositoryByUser

String name, String utpUserName

GET/ POST

Returns repository names by individual users.

http://localhost:8080/AppvanceServer/rest/preferences/getRepositoryByUser?name= repoName&utpusername=username

getRepositoryNames

GET/ POST

Returns all repository names

http://localhost:8080/AppvanceServer/rest/preferences/getRepositoryNames

getRepositoryNamesByUser

String utpUserName

GET/ POST

Returns all repository names based on users.

http://localhost:8080/AppvanceServer/rest/preferences/getRepositoryNamesByUser?utpusername=username

getRepositoryPath

allows to get repositories settings

getRepositoryStatus

String RepositoryName

GET/ POST

Returns repository status

http://localhost:8080/AppvanceServer/rest/preferences/getRepositoryStatus?name=repoName

getResultRepository

GET/ POST

Gets database results repository preferences

http://localhost:8080/AppvanceServer/rest/preferences/getResultRepository

getSahi

GET/ POST

Gets sahi configuration

http://localhost:8080/AppvanceServer/rest/preferences/getSahi

getScenarios

Gets previous scenarios

getSchema

GET/ POST

Gets database schema

http://localhost:8080/AppvanceServer/rest/preferences/getSchema

pullRepository

String username, String name

GET/ POST

Pull current repository

http://localhost:8080/AppvanceServer/rest/preferences/pullRepository?name=repoName

refreshRepositories

Force refresh repositories

saveAppDynamicsConfiguration

JSONObject config

Save a AppDynamics configuration

saveBrowsers

Saves the browsers list

saveDS3Port

JSONObject ds3Ports, String username

GET/ POST

save DS3 port

http://localhost:8080/AppvanceServer/rest/preferences/saveDS3Port?htpp=9090&https=9091

saveDynaTraceConfiguration

JSONObject config

GET/ POST

Save a DynaTrace configuration

http://localhost:8080/AppvanceServer/rest/preferences/saveDynaTraceConfiguration?name=relicName&url=url&id=id&dashboard=dashboard

saveJiraSettings

Save Jira preferences

saveLoadRunnerPath

JSONObject obj

GET/ POST

Save LoadRunner Path preferences

http://localhost:8080/AppvanceServer/rest/preferences/saveLoadRunnerPath?path=path

saveNewRelicConfiguration

JSONObject newRelic

GET/ POST

Save New Relic configurations.

http://localhost:8080/AppvanceServer/rest/preferences/saveNewRelicConfiguration?name=relicName&url=url&id=id&dashboard=dashboard

saveNotifications

JSONObject obj

GET/ POST

Checks notifications preferences

http://localhost:8080/AppvanceServer/rest/preferences/saveNotifications?mailuser=username&mailuserpassword=password&mailhost=host&mailport=port&sslvalue=boolean

saveRepository

JSONObject repository

GET/ POST

Save new or updates existing valid repository.

http://localhost:8080/AppvanceServer/rest/preferences/saveRepository //please see below sample saveRepository JSON

saveRepositoryCommitMessage

String username, String repositoryName, String commitMessage

Save new or updates existing valid repository.

saveResultsRepository

final JSONObject obj

GET/ POST

Saves database results repository preferences

http://localhost:8080/AppvanceServer/rest/preferences/saveResultsRepository////please see below sample saveResultsRepository JSON

saveSahi

JSONObject obj

GET/ POST

Gets sahi configuration

http://localhost:8080/AppvanceServer/rest/preferences/saveSahi?path=path&mustrun=boolean

testConnection

GET/ POST

Tests database connection

http://localhost:8080/AppvanceServer/rest/preferences/testConnection

testConnectionParams

JSONObject config

GET/ POST

Tests database connection based on params

http://localhost:8080/AppvanceServer/rest/preferences/testConnectionParams?username=name&password=password&engine=resultType&url=repoURL

testJiraSettings

Test Jira Settings

testQuery

String quer

GET/ POST

Tests query

http://localhost:8080/AppvanceServer/rest/preferences/testQuery?query=sqlVal

 

Sample:

var repository = {
type: $('#repositoryType').val(),
name: $('#repositoryName').val(),
url: $('#repositoryURL').val(),
username: $('#repositoryUsername').val(),
ssh: ssh,
auth: $('#repositoryAuth').val(),
password: password,
utpusername: username,
branch: $("#reposList").val() == undefined ? "master" : $("#reposList").val()
};
saveResultsRepository
var result = {
username: $('#resultsUsername').val(),
password: $('#resultsPassword').val(),
engine: $("#resultsType").val(),
url: $('#resultsURL').val(),
database: $('#resultsDatabase').val(),
maxActive: $('#resultsMaxActive').val(),
maxIdle: $('#resultsMaxIdle').val(),
maxWait: $('#resultsMaxWait').val(),
abandonedTimeout: $('#resultsRemoveAbandonedTimeout').val(),
autoCommit: $('#resultsAutoCommit').prop('checked'),
logAvandoned: $('#resultsLogAbandoned').prop('checked'),
removeAvandoned: $('#resultsRemoveAbandoned').prop('checked'),
enabled: $('#resultsEnabled').prop('checked')
};