I am new to jira cloud development. I choosed spring-boot for backend. I have route in which I am rendering thymeleaf .html template. This is how it looks like.
<body>
Hi ${userName} !
</body>
<script src="https://connect-cdn.atl-paas.net/all.js"></script>
<script>
AP.request({
url: '/rest/api/latest/project',
success: function(response) {
// convert the string response to JSON
response = JSON.parse(response);
// dump out the response to the console
console.log(response);
},
error: function() {
console.log(arguments);
}
});
</script>
I imported all.js and tried call AP.request with no success.
Uncaught TypeError: AP.request is not a function
What am I doing wrong?