Bug WISE-190 fixed.
Implement REST Console support.
This commit is contained in:
@@ -142,6 +142,13 @@ security.ldap.firstName.attribute=givenName
|
||||
# Enable OpenId Authentication.
|
||||
security.openid.enabled=false
|
||||
|
||||
# REST Documentation
|
||||
#
|
||||
# This properties are used for REST API Documentation( http://localhost:8080/doc/rest/index.html)
|
||||
# Change the URL for proper documentation console setup.
|
||||
documentation.services.basePath=http://localhost:8080/wisemapping/service
|
||||
documentation.services.version=3.0.1
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -1,48 +0,0 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Mindmap Detail</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Details for map with id '${map.id}'</h1>
|
||||
<table border="1" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Id:</td>
|
||||
<td>${map.id}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td>${map.title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Description:</td>
|
||||
<td>${map.description}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Owner:</td>
|
||||
<td>${map.owner}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Xml:</td>
|
||||
<td><textarea rows="10" cols="100">${map.xml}</textarea></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Last Modified:</td>
|
||||
<td>${map.lastModifierUser}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Creator:</td>
|
||||
<td>${map.creator}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Public:</td>
|
||||
<td>${map.public}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@@ -1,51 +0,0 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Mindmaps List</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mindmaps List</h1>
|
||||
<c:forEach items="${list.mindmaps}" var="map">
|
||||
<table border="1" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Id:</td>
|
||||
<td>${map.id}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Title:</td>
|
||||
<td>${map.title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Description:</td>
|
||||
<td>${map.description}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Owner:</td>
|
||||
<td>${map.owner}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Xml:</td>
|
||||
<td><textarea rows="10" cols="100">${map.xml}</textarea></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Last Modified:</td>
|
||||
<td>${map.lastModifierUser}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Creator:</td>
|
||||
<td>${map.creator}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Public:</td>
|
||||
<td>${map.public}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</c:forEach>
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
@@ -1,11 +0,0 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Message: ${message}</h1>
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
@@ -1,35 +0,0 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Mindmap Detail</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Details for User with id '${user.id}'</h1>
|
||||
<table border="1" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Email:</td>
|
||||
<td>${user.email}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Fist Name:</td>
|
||||
<td>${user.firstname}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Name:</td>
|
||||
<td>${user.lastname}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Username:</td>
|
||||
<td>${user.username}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Active:</td>
|
||||
<td>${user.active}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@@ -52,7 +52,6 @@
|
||||
<property name="defaultContentType" value="application/json"/>
|
||||
<property name="mediaTypes">
|
||||
<map>
|
||||
<entry key="html" value="text/html"/>
|
||||
<entry key="xml" value="application/xml"/>
|
||||
<entry key="json" value="application/json"/>
|
||||
<entry key="freemind" value="application/freemind"/>
|
||||
@@ -70,11 +69,6 @@
|
||||
<property name="viewResolvers">
|
||||
<list>
|
||||
<bean class="org.springframework.web.servlet.view.BeanNameViewResolver"/>
|
||||
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
|
||||
<property name="prefix" value="/WEB-INF/jsp-rest/"/>
|
||||
<property name="suffix" value=".jsp"/>
|
||||
</bean>
|
||||
</list>
|
||||
</property>
|
||||
<property name="defaultViews">
|
||||
@@ -149,4 +143,9 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Configuration Bean -->
|
||||
<context:property-placeholder location="/WEB-INF/app.properties" ignore-unresolvable="true"/>
|
||||
<bean id="documentationConfig" class="com.mangofactory.swagger.configuration.DocumentationConfig"/>
|
||||
<!-- Custom extensibility module (bean) Has override methods to customize the document generation-->
|
||||
<!--<bean id="extensibilityModule" class="com.mangofactory.swagger.springmvc.example.config.ExampleExtensibilityModule" />-->
|
||||
</beans>
|
Reference in New Issue
Block a user