Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* schema:
* type: string
*/
function getHello(name) {
// TODO: Replace the code with a REST API call when it's implemented on the backend
return { message: 'Hello ' + name + '!' };
}
var helloDiv = document.getElementById('hello');
helloDiv.innerHTML = getHello('World').message;
swaggerUi({
spec: swaggerJson, dom_id: '#apiDocs',
presets: [
swaggerUi.presets.apis,
swaggerUi.SwaggerUIStandalonePreset
]
});