public class ApplicationsResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.jboss.logging.Logger |
logger |
protected RealmModel |
realm |
protected KeycloakSession |
session |
| Constructor and Description |
|---|
ApplicationsResource(RealmModel realm,
RealmAuth auth) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createApplication(javax.ws.rs.core.UriInfo uriInfo,
ApplicationRepresentation rep)
Create a new application.
|
ApplicationResource |
getApplication(String name)
Base path for managing a specific application.
|
List<ApplicationRepresentation> |
getApplications()
List of applications belonging to this realm.
|
protected static final org.jboss.logging.Logger logger
protected RealmModel realm
@Context protected KeycloakSession session
public ApplicationsResource(RealmModel realm, RealmAuth auth)
@GET @Produces(value="application/json") public List<ApplicationRepresentation> getApplications()
@POST
@Consumes(value="application/json")
public javax.ws.rs.core.Response createApplication(@Context
javax.ws.rs.core.UriInfo uriInfo,
ApplicationRepresentation rep)
uriInfo - rep - @Path(value="{app-name}")
public ApplicationResource getApplication(@PathParam(value="app-name")
String name)
name - Copyright © 2014. All Rights Reserved.