@Path(value="/") @Consumes(value="application/json") @Produces(value="application/json") @Singleton public class StashResource extends Object
Constructor and Description |
---|
StashResource(com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory stashClientFactory,
com.atlassian.applinks.spi.auth.AuthenticationConfigurationManager authenticationConfigurationManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getAvailableProjects(String serverKey,
long start,
long limit) |
javax.ws.rs.core.Response |
getAvailableServers() |
javax.ws.rs.core.Response |
getBranch(String serverKey,
String projectKey,
String repositorySlug,
String branchId) |
javax.ws.rs.core.Response |
getBranches(String serverKey,
String projectKey,
String repositorySlug,
String query,
long start,
long limit) |
javax.ws.rs.core.Response |
getDefaultBranch(String serverKey,
String projectKey,
String repositorySlug) |
javax.ws.rs.core.Response |
getRepositories(String serverKey,
String projectName,
String query,
long start,
long limit) |
javax.ws.rs.core.Response |
getRepository(String serverKey,
String projectKey,
String repositorySlug) |
javax.ws.rs.core.Response |
getRepositoryPermission(String serverKey,
String projectKey,
String repositorySlug) |
javax.ws.rs.core.Response |
getRepositorySSHKeys(String serverKey,
String projectKey,
String repositorySlug,
long start,
long limit) |
public StashResource(com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory stashClientFactory, com.atlassian.applinks.spi.auth.AuthenticationConfigurationManager authenticationConfigurationManager, com.atlassian.sal.api.message.I18nResolver i18nResolver)
@GET @Path(value="servers") public javax.ws.rs.core.Response getAvailableServers()
@GET @Path(value="projects") public javax.ws.rs.core.Response getAvailableProjects(@QueryParam(value="serverKey") String serverKey, @QueryParam(value="start") long start, @QueryParam(value="limit") long limit)
@GET @Path(value="projects/repositories") public javax.ws.rs.core.Response getRepositories(@QueryParam(value="serverKey") String serverKey, @QueryParam(value="project") String projectName, @QueryParam(value="query") String query, @QueryParam(value="start") long start, @QueryParam(value="limit") long limit)
@GET @Path(value="projects/repository") public javax.ws.rs.core.Response getRepository(@QueryParam(value="serverKey") String serverKey, @QueryParam(value="projectKey") String projectKey, @QueryParam(value="repositorySlug") String repositorySlug)
@GET @Path(value="projects/repositories/branches") public javax.ws.rs.core.Response getBranches(@QueryParam(value="serverKey") String serverKey, @QueryParam(value="projectKey") String projectKey, @QueryParam(value="repositorySlug") String repositorySlug, @QueryParam(value="query") String query, @QueryParam(value="start") long start, @QueryParam(value="limit") long limit)
@GET @Path(value="projects/repositories/branches/default") public javax.ws.rs.core.Response getDefaultBranch(@QueryParam(value="serverKey") String serverKey, @QueryParam(value="projectKey") String projectKey, @QueryParam(value="repositorySlug") String repositorySlug)
@GET @Path(value="projects/repositories/branch") public javax.ws.rs.core.Response getBranch(@QueryParam(value="serverKey") String serverKey, @QueryParam(value="projectKey") String projectKey, @QueryParam(value="repositorySlug") String repositorySlug, @QueryParam(value="branch") String branchId)
@GET @Path(value="projects/repositories/permission") public javax.ws.rs.core.Response getRepositoryPermission(@QueryParam(value="serverKey") String serverKey, @QueryParam(value="projectKey") String projectKey, @QueryParam(value="repositorySlug") String repositorySlug) throws WebValidationException
WebValidationException
@GET @Path(value="{serverKey}/projects/{projectKey}/repositories/{repositorySlug}/ssh-keys") public javax.ws.rs.core.Response getRepositorySSHKeys(@PathParam(value="serverKey") String serverKey, @PathParam(value="projectKey") String projectKey, @PathParam(value="repositorySlug") String repositorySlug, @QueryParam(value="start") long start, @QueryParam(value="limit") long limit) throws CredentialsRequiredContextException, com.atlassian.sal.api.net.ResponseException, com.opensymphony.webwork.dispatcher.json.JSONException
CredentialsRequiredContextException
com.atlassian.sal.api.net.ResponseException
com.opensymphony.webwork.dispatcher.json.JSONException
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.