Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial implementation of PluginManagerApi #17

Merged
merged 3 commits into from
May 11, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Minor cleanups.
cdancy committed May 11, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 0d56878c5cbbdb1b6acd696ebae8d92bfe2d4707
Original file line number Diff line number Diff line change
@@ -41,6 +41,6 @@ public interface PluginManagerApi {
@Path("/api/json")
@Fallback(JenkinsFallbacks.PluginsOnError.class)
@GET
Plugins plugins(@QueryParam("depth") Integer depth,
Plugins plugins(@Nullable @QueryParam("depth") Integer depth,
@Nullable @QueryParam("tree") String tree);
}
Original file line number Diff line number Diff line change
@@ -25,12 +25,12 @@

import org.jclouds.rest.annotations.RequestFilters;
import org.jclouds.rest.annotations.ResponseParser;
import org.jclouds.rest.annotations.Fallback;

import com.cdancy.jenkins.rest.domain.system.SystemInfo;
import com.cdancy.jenkins.rest.fallbacks.JenkinsFallbacks;
import com.cdancy.jenkins.rest.filters.JenkinsAuthenticationFilter;
import com.cdancy.jenkins.rest.parsers.SystemInfoFromJenkinsHeaders;
import org.jclouds.rest.annotations.Fallback;

@RequestFilters(JenkinsAuthenticationFilter.class)
@Consumes(MediaType.APPLICATION_JSON)