Class ScopesResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.ScopesResource
-
@Path("/scopes") @Produces("application/json") @Consumes("application/json") public class ScopesResource extends ConfigBaseResource
Configures both OpenID Connect and UMA scopes.- Author:
- Mougang T.Gasmyr
-
-
Field Summary
-
Fields inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
DEFAULT_LIST_SIZE, DEFAULT_LIST_START_INDEX, DEFAULT_MAX_COUNT, READ_ACCESS, WRITE_ACCESS
-
-
Constructor Summary
Constructors Constructor Description ScopesResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
createOpenidScope(@Valid io.jans.as.persistence.model.Scope scope)
jakarta.ws.rs.core.Response
deleteScope(@NotNull String inum)
jakarta.ws.rs.core.Response
getScopeById(@NotNull String inum)
jakarta.ws.rs.core.Response
getScopes(String type, int limit, String pattern)
jakarta.ws.rs.core.Response
patchScope(@NotNull String inum, @NotNull String pathString)
jakarta.ws.rs.core.Response
updateScope(@Valid io.jans.as.persistence.model.Scope scope)
-
Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCount
-
Methods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, getBadRequestException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, thorwBadRequestException, thorwInternalServerException, throwMissingAttributeError
-
-
-
-
Method Detail
-
getScopes
@GET public jakarta.ws.rs.core.Response getScopes(@DefaultValue("") @QueryParam("type") String type, @DefaultValue("50") @QueryParam("limit") int limit, @DefaultValue("") @QueryParam("pattern") String pattern)
-
getScopeById
@GET @Path("{inum}") public jakarta.ws.rs.core.Response getScopeById(@NotNull @PathParam("inum") @NotNull String inum)
-
createOpenidScope
@POST public jakarta.ws.rs.core.Response createOpenidScope(@Valid @Valid io.jans.as.persistence.model.Scope scope)
-
updateScope
@PUT public jakarta.ws.rs.core.Response updateScope(@Valid @Valid io.jans.as.persistence.model.Scope scope)
-
patchScope
@PATCH @Consumes("application/json-patch+json") @Path("{inum}") public jakarta.ws.rs.core.Response patchScope(@PathParam("inum") @NotNull @NotNull String inum, @NotNull @NotNull String pathString) throws com.github.fge.jsonpatch.JsonPatchException, IOException
- Throws:
com.github.fge.jsonpatch.JsonPatchException
IOException
-
deleteScope
@DELETE @Path("{inum}") public jakarta.ws.rs.core.Response deleteScope(@PathParam("inum") @NotNull @NotNull String inum)
-
-