Class BitbucketResource
java.lang.Object
com.atlassian.bamboo.plugins.bitbucket.rest.resource.BitbucketResource
@Path("bb")
@Consumes({"application/xml","application/json"})
@Produces({"application/xml","application/json"})
@Singleton
public class BitbucketResource
extends Object
-
Constructor Summary
ConstructorDescriptionBitbucketResource
(BitbucketApiService bitbucketApiService, com.atlassian.sal.api.message.I18nResolver i18nResolver, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, CredentialsAccessor credentialsAccessor, WebhookManagementService webhookManagementService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
createWebhook
(javax.ws.rs.core.UriInfo uriInfo, @NotNull RestBitbucketRequest request) javax.ws.rs.core.Response
destroyWebhook
(javax.ws.rs.core.UriInfo uriInfo, @NotNull RestBitbucketRequest request) javax.ws.rs.core.Response
getAvailableRepositories
(javax.ws.rs.core.UriInfo uriInfo, @NotNull RestBitbucketRequest request) javax.ws.rs.core.Response
getBranch
(javax.ws.rs.core.UriInfo uriInfo, @NotNull RestBitbucketRequest request) javax.ws.rs.core.Response
getBranches
(javax.ws.rs.core.UriInfo uriInfo, @NotNull RestBitbucketRequest request) javax.ws.rs.core.Response
getDefaultBranch
(javax.ws.rs.core.UriInfo uriInfo, @NotNull RestBitbucketRequest request) javax.ws.rs.core.Response
getRepository
(javax.ws.rs.core.UriInfo uriInfo, @NotNull RestBitbucketRequest request) javax.ws.rs.core.Response
getWebhooks
(javax.ws.rs.core.UriInfo uriInfo, @NotNull RestBitbucketRequest request)
-
Constructor Details
-
BitbucketResource
@Inject public BitbucketResource(BitbucketApiService bitbucketApiService, com.atlassian.sal.api.message.I18nResolver i18nResolver, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, CredentialsAccessor credentialsAccessor, WebhookManagementService webhookManagementService)
-
-
Method Details
-
getAvailableRepositories
@POST @Path("repositories") public javax.ws.rs.core.Response getAvailableRepositories(@Context javax.ws.rs.core.UriInfo uriInfo, @NotNull @NotNull RestBitbucketRequest request) -
getRepository
@POST @Path("repository") public javax.ws.rs.core.Response getRepository(@Context javax.ws.rs.core.UriInfo uriInfo, @NotNull @NotNull RestBitbucketRequest request) -
getBranches
@POST @Path("branches") public javax.ws.rs.core.Response getBranches(@Context javax.ws.rs.core.UriInfo uriInfo, @NotNull @NotNull RestBitbucketRequest request) -
getBranch
@POST @Path("branch") public javax.ws.rs.core.Response getBranch(@Context javax.ws.rs.core.UriInfo uriInfo, @NotNull @NotNull RestBitbucketRequest request) -
getDefaultBranch
@POST @Path("branches/default") public javax.ws.rs.core.Response getDefaultBranch(@Context javax.ws.rs.core.UriInfo uriInfo, @NotNull @NotNull RestBitbucketRequest request) -
getWebhooks
@POST @Path("webhooks") public javax.ws.rs.core.Response getWebhooks(@Context javax.ws.rs.core.UriInfo uriInfo, @NotNull @NotNull RestBitbucketRequest request) -
createWebhook
@POST @Path("webhooks/create") public javax.ws.rs.core.Response createWebhook(@Context javax.ws.rs.core.UriInfo uriInfo, @NotNull @NotNull RestBitbucketRequest request) -
destroyWebhook
@POST @Path("webhooks/destroy") public javax.ws.rs.core.Response destroyWebhook(@Context javax.ws.rs.core.UriInfo uriInfo, @NotNull @NotNull RestBitbucketRequest request)
-