Class AccessTokenResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.resource.AccessTokenResource
@Path("access-token")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class AccessTokenResource
extends Object
-
Constructor Summary
ConstructorDescriptionAccessTokenResource
(RestUserAccessTokenService restUserAccessTokenService, com.atlassian.struts.TextProvider textProvider, RestAuthenticationContext restAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptiongetUserTokens
(PageRequest pageRequest, ExpansionParam expansion, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Response
revokeToken
(String tokenId)
-
Constructor Details
-
AccessTokenResource
@Inject public AccessTokenResource(RestUserAccessTokenService restUserAccessTokenService, com.atlassian.struts.TextProvider textProvider, RestAuthenticationContext restAuthenticationContext)
-
-
Method Details
-
getUserTokens
@GET public RestPageModel<RestAccessToken> getUserTokens(@BeanParam PageRequest pageRequest, @BeanParam ExpansionParam expansion, @Context javax.ws.rs.core.UriInfo uriInfo) -
createAccessToken
@POST public RestAccessToken createAccessToken(CreateAccessTokenRequest request) throws WebValidationException - Throws:
WebValidationException
-
revokeToken
@DELETE @Path("{tokenId}") public javax.ws.rs.core.Response revokeToken(@PathParam("tokenId") String tokenId) throws WebValidationException - Throws:
WebValidationException
-