RESTAPI 7.1.0 token

is changed something to get token from rest api ?
I am using client : secret (user and password) with basic auth, body like this:

image

I am getting follow html:

<!doctype html>

<html>

<head>

<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8”>

<meta http-equiv=“X-UA-Compatible” content=“IE=11”>

<style type=“text/css”>

html,

body {

height: 100%;

margin: 0;

}

</style>

<link rel=“shortcut icon” type=“image/vnd.microsoft.icon” href="./VAADIN/themes/hover/favicon.ico">

<link rel=“icon” type=“image/vnd.microsoft.icon” href="./VAADIN/themes/hover/favicon.ico">

</head>

<body scroll=“auto” class=“v-generated-body”>

<div id=“app-96801” class=“v-app hover appui”>

<div class=“v-app-loading”></div>

<noscript>

You have to enable javascript in your browser to use an application built with Vaadin.

</noscript>

</div>

<script type=“text/javascript” src="./VAADIN/vaadinPush.debug.js?v=8.6.4-17-cuba"></script>

<script type=“text/javascript” src="./VAADIN/vaadinBootstrap.js?v=8.6.4-17-cuba"></script>

<script type=“text/javascript”>

//<![CDATA[

if (!window.vaadin) alert(“Failed to load the bootstrap javascript: ./VAADIN/vaadinBootstrap.js?v=8.6.4-17-cuba”);

if (typeof window.__gwtStatsEvent != ‘function’) {

vaadin.gwtStatsEvents = [];

window.__gwtStatsEvent = function(event) {vaadin.gwtStatsEvents.push(event); return true;};

}

vaadin.initApplication(“app-96801”,{

“theme”: “hover”,

“versionInfo”: {

“vaadinVersion”: “8.6.4-17-cuba”,

“atmosphereVersion”: “2.4.30-1-cuba”

},

“widgetset”: “com.haulmont.cuba.web.widgets.WidgetSet”,

“widgetsetReady”: true,

“comErrMsg”: {

“caption”: “Problema di comunicazione”,

“message”: “Prendere nota di tutti i dati non salvati, e <u>cliccare qui</u> per continuare.”,

“url”: null

},

“authErrMsg”: {

“caption”: “Authentication problem”,

“message”: “Take note of any unsaved data, and <u>click here</u> or press ESC to continue.”,

“url”: null

},

“sessExpMsg”: {

“caption”: “Sessione scaduta”,

“message”: “Prendere nota di tutti i dati non salvati, e <u>cliccare qui</u> per continuare.”,

“url”: null

},

“contextRootUrl”: “./”,

“vaadinDir”: “./VAADIN/”,

“frontendUrl”: “vaadin://frontend/es5/”,

“debug”: true,

“standalone”: true,

“heartbeatInterval”: 600,

“serviceUrl”: “.”

});

//]]>

</script>

</body>

</html>

Hi,

In 7.1 the rest api has become a dedicated addon and has been removed from the core platform:

Please wrap code into the code block, this is much easier to read. Thanks

Bye
Mario

1 Like

Hi,
Thank you for testing beta.
Please use these recommendations to include the REST API add-on in your project.
For the released version the migration procedure will include the add-on automatically when upgrading the project to 7.1.

I am having the same issue, but I have installed rest api v7.2.2. And yet I can’t execute any API @mario @knstvk