提交 4a5b825b 编写于 作者: R recena

[JENKINS-33972] The REST API URL has been removed to [..]/itemCategories

上级 b633f883
......@@ -1041,10 +1041,10 @@ public abstract class View extends AbstractModelObject implements AccessControll
/**
* An API REST method to get the allowed {$link TopLevelItem}s and its categories.
*
* @return A {@link Categories} entity that is shown as JSON file.
* @return A {@link Categories} entity that is shown as JSON file.
*/
@Restricted(DoNotUse.class)
public Categories doCategories(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
public Categories doItemCategories(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
Categories categories = new Categories();
int order = 0;
for (TopLevelItemDescriptor descriptor : DescriptorVisibilityFilter.apply(getOwnerItemGroup(), Items.all(Jenkins.getAuthentication(), getOwnerItemGroup()))) {
......
......@@ -3,7 +3,7 @@ var $ = require('jquery-detached').getJQuery();
var getItems = function(){
var d = $.Deferred();
$.get('categories?depth=3').done(
$.get('itemCategories?depth=3').done(
function(data){
d.resolve(data);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册