Package org.rostore.service
Class ApiKeyService
java.lang.Object
org.rostore.service.ApiKeyService
@Path("/admin")
@Produces("application/json")
@RequestScoped
public class ApiKeyService
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
createApiKey
(String options, Long ttl, Long unixEOL, ApiKeyPermissions permissions) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
listApiKey
(String startApiKey) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
updateApiKey
(String requestApiKey, String options, Long ttl, Long unixEOL, Long versionHeader, ApiKeyPermissions permissions)
-
Constructor Details
-
ApiKeyService
public ApiKeyService()
-
-
Method Details
-
createApiKey
@POST @Consumes("application/json") @Path("/api-key") public jakarta.ws.rs.core.Response createApiKey(@HeaderParam("options") String options, @HeaderParam("ttl") Long ttl, @HeaderParam("eol") Long unixEOL, ApiKeyPermissions permissions) -
updateApiKey
@PUT @Consumes("application/json") @Path("/api-key/{request-api-key}") public jakarta.ws.rs.core.Response updateApiKey(@PathParam("request-api-key") String requestApiKey, @HeaderParam("options") String options, @HeaderParam("ttl") Long ttl, @HeaderParam("eol") Long unixEOL, @HeaderParam("version") Long versionHeader, ApiKeyPermissions permissions) -
repairRoot
@GET @Path("/api-key/repair-root") public jakarta.ws.rs.core.Response repairRoot() -
getApiKey
-
listApiKey
@GET @Path("/api-key/list") public jakarta.ws.rs.core.Response listApiKey(@QueryParam("start-api-key") String startApiKey)
-