Class APITokenResource
- java.lang.Object
-
- uk.co.ractf.polaris.controller.resources.APITokenResource
-
@Path("/api_tokens") @Produces("application/json") public class APITokenResource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description APITokenResource(ClusterState clusterState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createAPIToken(uk.co.ractf.polaris.api.authentication.APIToken apiToken)
javax.ws.rs.core.Response
deleteAPIToken(java.lang.String id)
java.util.Map<java.lang.String,uk.co.ractf.polaris.api.authentication.APIToken>
getAPITokens()
javax.ws.rs.core.Response
getAPITokens(java.lang.String id)
-
-
-
Constructor Detail
-
APITokenResource
@Inject public APITokenResource(ClusterState clusterState)
-
-
Method Detail
-
getAPITokens
@GET @Timed @ExceptionMetered @RolesAllowed("ROOT") public java.util.Map<java.lang.String,uk.co.ractf.polaris.api.authentication.APIToken> getAPITokens()
-
getAPITokens
@GET @Path("/{id}") @Timed @ExceptionMetered @RolesAllowed("ROOT") public javax.ws.rs.core.Response getAPITokens(@PathParam("id") java.lang.String id)
-
createAPIToken
@POST @Timed @ExceptionMetered @RolesAllowed("ROOT") public javax.ws.rs.core.Response createAPIToken(uk.co.ractf.polaris.api.authentication.APIToken apiToken)
-
deleteAPIToken
@DELETE @Path("/{id}") @Timed @ExceptionMetered @RolesAllowed("ROOT") public javax.ws.rs.core.Response deleteAPIToken(@PathParam("id") java.lang.String id)
-
-