Skip to content
Permalink
Browse files

Merge pull request #2208 from recena/JENKINS-33972

[JENKINS-33972] The REST API URL has been removed to [..]/itemCategories
  • Loading branch information...
daniel-beck committed Apr 1, 2016
2 parents 0db4bc2 + 4a5b825 commit 4649e04cbe58f5af0e583da04084b2ebc442a320
Showing with 3 additions and 3 deletions.
  1. +2 −2 core/src/main/java/hudson/model/View.java
  2. +1 −1 war/src/main/js/add-item.js
@@ -1041,10 +1041,10 @@ public FormValidation doCheckJobName(@QueryParameter String value) {
/**
* 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);
}

0 comments on commit 4649e04

Please sign in to comment.
You can’t perform that action at this time.