Author: jstrachan Date: Thu Feb 19 10:46:05 2009 New Revision: 745812 URL: http://svn.apache.org/viewvc?rev=745812&view=rev Log: CAMEL-1355 added a nicer home page and API page so folks can grok the REST API by just viewing /api and kinda getting it from that
Added: camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/api.jsp - copied, changed from r745803, camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/index.jsp Modified: camel/trunk/components/camel-web/src/main/webapp/WEB-INF/decorators/main.jsp camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/index.jsp Modified: camel/trunk/components/camel-web/src/main/webapp/WEB-INF/decorators/main.jsp URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/WEB-INF/decorators/main.jsp?rev=745812&r1=745811&r2=745812&view=diff ============================================================================== --- camel/trunk/components/camel-web/src/main/webapp/WEB-INF/decorators/main.jsp (original) +++ camel/trunk/components/camel-web/src/main/webapp/WEB-INF/decorators/main.jsp Thu Feb 19 10:46:05 2009 @@ -88,22 +88,27 @@ <div class="navigation_top"> <div class="navigation_bottom"> -<%-- - <H3>Actions</H3> + <%-- + <H3>Actions</H3> - <ul class="alternate" type="square"> - <li></li> - </ul> + <ul class="alternate" type="square"> + <li></li> + </ul> ---%> + --%> <H3>Useful Links</H3> <ul class="alternate" type="square"> <li><a href="http://camel.apache.org/documentation.html" title="a powerful open source integration framework based on known Enterprise Integration Patterns with powerful Bean Integration">Documentation</a> </li> + <li><a href="http://camel.apache.org/web-cosole.html" + title="more help on using the Web Console">Console Help</a> + </li> <li><a href="http://camel.apache.org/faq.html">FAQ</a></li> + <li><a href="<c:url value='/api'/>" title="View the REST API details">API</a> + </li> <li><a href="http://camel.apache.org/download.html">Downloads</a> </li> <li><a href="http://camel.apache.org/discussion-forums.html">Forums</a> Copied: camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/api.jsp (from r745803, camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/index.jsp) URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/api.jsp?p2=camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/api.jsp&p1=camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/index.jsp&r1=745803&r2=745812&rev=745812&view=diff ============================================================================== --- camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/index.jsp (original) +++ camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/api.jsp Thu Feb 19 10:46:05 2009 @@ -1,18 +1,91 @@ <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title>Camel Context</title> + <title>Camel REST API</title> </head> <body> -<h1>Context: ${it.name}</h1> +<h1>Camel REST API</h1> +<p> + Camel supports a RESTful API for browsing and interacting with endpoints and routes to create and modify your + <a href="http://camel.apache.org/enterprise-integration-patterns.html">Enterprise Integration Patterns</a>. +</p> -<ul> - <li><a href="endpoints">Endpoints</a></li> - <li><a href="routes">Routes</a></li> - <li><a href="application.wadl">WADL</a></li> -</ul> +<p> + Most resources are available at the very least as HTML, XML and JSON formats with some other formats being available. + Your web browser will serve up the HTML representation by default unless you specify the HTTP <code>Accept</code> + header + with <code>text/xml</code> or <code>application/xml</code> for XML and <code>application/json</code> for JSON. +</p> +<table> + <tr> + <th>URI</th> + <th>Description</th> + <th>Related Resources</th> + </tr> + <tr> + <td><a href="<c:url value="/"/>">/</a> + </td> + <td> + Summary links to other resources + </td> + <td> + <ul> + <li> + <a href="<c:url value="/index.xml"/>">/index.xml</a> for XML + </li> + <li> + <a href="<c:url value="/index.json"/>">/index.json</a> for JSON + </li> + </ul> + </td> + </tr> + <tr> + <td><a href="<c:url value="/endpoints"/>">/endpoints</a></td> + <td> + The currently active endpoints + </td> + <td> + <ul> + <li> + <a href="<c:url value="/endpoints.xml"/>">/endpoints.xml</a> for XML + </li> + <li> + <a href="<c:url value="/endpoints.json"/>">/endpoints.json</a> for JSON + </li> + </ul> + </td> + </tr> + <tr> + <td><a href="<c:url value="/routes"/>">/routes</a></td> + <td> + The currently active routes + </td> + <td> + <ul> + <li> + <a href="<c:url value="/routes.xml"/>">/routes.xml</a> for XML + </li> + <li> + <a href="<c:url value="/routes.json"/>">/routes.json</a> for JSON + </li> + <li> + <a href="<c:url value="/routes.dot"/>">/routes.dot</a> for a <a href="http://graphviz.org/">Graphviz</a> + DOT file for <a href="http://camel.apache.org/visualisation.html">visualising your routes</a>. + </li> + </ul> + </td> + </tr> + <tr> + <td><a href="<c:url value="/application.wadl"/>">/application.wadl</a></td> + <td> + The <a href="https://wadl.dev.java.net/">WADL</a> description of all the available resources + </td> + <td> + </td> + </tr> +</table> </body> </html> Modified: camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/index.jsp URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/index.jsp?rev=745812&r1=745811&r2=745812&view=diff ============================================================================== --- camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/index.jsp (original) +++ camel/trunk/components/camel-web/src/main/webapp/org/apache/camel/web/resources/CamelContextResource/index.jsp Thu Feb 19 10:46:05 2009 @@ -1,18 +1,28 @@ <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title>Camel Context</title> + <title>Apache Camel</title> </head> <body> -<h1>Context: ${it.name}</h1> +<h1>Welcome to Apache Camel</h1> +<p>Welcome to the Web Console for instance <b>${it.name}</b>.</p> +<p>We hope you find the following links helpful</p> <ul> - <li><a href="endpoints">Endpoints</a></li> - <li><a href="routes">Routes</a></li> - <li><a href="application.wadl">WADL</a></li> + <li> + <a href="<c:url value='/endpoints'/>" title="View current endpoints or create new ones">Endpoints</a> + </li> + <li> + <a href="<c:url value='/routes'/>" title="View current routes">Routes</a> + </li> + <li> + <a href="<c:url value='/api'/>" title="Documentation on the REST API to Camel">API</a> + </li> </ul> +<p>Lets take it for a ride!</p> + </body> </html>