Applications
Controller
@RestController
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + USERS_KEY + "/{" + IDENTIFIER_KEY + "}/" + APPLICATIONS_KEY"
)
The ApplicationsController class is
useful to manage all the applications operations
Author
N7ghtm4r3 - Tecknobit
See also
EquinoxController
Properties
Link copied to clipboard
applicationsService
helper to manage the applications database operations
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
WRONG_APP_DESCRIPTION_MESSAGE
error message used when the application description inserted
is not valid
Link copied to clipboard
WRONG_APP_NAME_MESSAGE
error message used when the application name inserted is not
valid
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
@PostMapping(headers = []
)
Method to save and add in the system a new
application
Link copied to clipboard
@DeleteMapping(path = "{" + APPLICATION_IDENTIFIER_KEY + "}",
headers = []
)
Method to delete an existing application
Link copied to clipboard
@PostMapping(path = "{" + APPLICATION_IDENTIFIER_KEY + "}",
headers = []
)
Method to edit an existing application
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@GetMapping(headers = []
)
Method to get the applications list
registered in the system
Link copied to clipboard
Link copied to clipboard
@GetMapping(path = ""{" + APPLICATION_IDENTIFIER_KEY + "}/" + ISSUES_KEY",
headers = []
)
Method to get the issues related to an
application
Link copied to clipboard
@PostMapping(path = ""{" + APPLICATION_IDENTIFIER_KEY + "}/" + PERFORMANCES_KEY",
headers = []
)
Method to get the performance data of an
application
Link copied to clipboard
@GetMapping(path = ""{" + APPLICATION_IDENTIFIER_KEY + "}/" + VERSION_FILTERS_KEY",
headers = []
)
Method to get all the available versions
target for a specific analytic
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private open fun validateApplicationPayload(application: ApplicationsService.ApplicationPayload): String
Method to validate the payload used in the
addApplication or editApplication
operations
Link copied to clipboard
private open fun validateUserAndFetchApplication(userId: String, token: String, applicationId: String): AmetistaApplication
Method to check if the user is allowed to
operate (him/she is an ADMIN)
and the application exists