Skip to content

Commit

Permalink
[JENKINS-33972] The REST API URL has been removed to [..]/itemCategories
Browse files Browse the repository at this point in the history
  • Loading branch information
recena committed Apr 1, 2016
1 parent b633f88 commit 4a5b825
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/model/View.java
Expand Up @@ -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()))) {
Expand Down
2 changes: 1 addition & 1 deletion war/src/main/js/add-item.js
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4a5b825

Please sign in to comment.