add redback rest api documentation

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1394804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-10-05 20:51:43 +00:00
parent f64d794487
commit a522cc3f0c
4 changed files with 24 additions and 1 deletions

View File

@ -52,6 +52,22 @@ define("archiva.docs",["jquery","i18n","jquery.tmpl","bootstrap"], function() {
});
}
goToRedbackRestDoc=function(target){
$("#main-content" ).html(mediumSpinnerImg());
$.ajax({
url:"rest-docs/rest-docs-redback-rest-api/"+target,
type:"get",
dataType: "html",
success: function(data){
$("#main-content" ).html($("#rest_docs").tmpl());
$("#main-content" ).find("#rest_docs_content" ).html(data);
prettyPrint();
}
});
}
displayRedbackRestDocs=function(){
window.sammyArchivaApplication.setLocation("#rest-docs-redback-rest-api/index.html");
}
displayArchivaRestUIDocs=function(){
window.sammyArchivaApplication.setLocation("#rest-docs-archiva-ui/index.html");

View File

@ -643,6 +643,12 @@ function(jquery,ui,sammy,tmpl) {
goToArchivaRestUiDoc(target);
});
this.get("#rest-docs-redback-rest-api/:target",function(){
var target=this.params.target;
$.log("redback-rest-docs, target:"+target);
goToRedbackRestDoc(target);
});
});
};

View File

@ -26,6 +26,7 @@
<ul>
<li><a onclick="displayArchivaRestDocs();">Archiva Rest Api Docs</a></li>
<li><a onclick="displayArchivaRestUIDocs();">Archiva Rest Api UI Docs</a></li>
<li><a onclick="displayRedbackRestDocs();">Redback Rest Api UI Docs</a></li>
</ul>
</div>
</div>

View File

@ -68,7 +68,7 @@
<maven-model-converter.version>2.1</maven-model-converter.version>
<maven.indexer.version>5.0.0</maven.indexer.version>
<wagon.version>2.2</wagon.version>
<redback.version>2.0</redback.version>
<redback.version>2.1-SNAPSHOT</redback.version>
<redback.cache.version>2.0</redback.cache.version>
<redback.quartz.version>2.0</redback.quartz.version>
<redback.registry.version>2.0</redback.registry.version>