Class StormtrooperResource
java.lang.Object
com.okta.authn.sdk.example.resources.StormtrooperResource
Stormtrooper Resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateTrooper
(Stormtrooper trooper) void
deleteTrooper
(String id) getTrooper
(String id) getTrooperView
(String id) Returns a Collection of all Stormtroopers.updateTrooper
(String id, Stormtrooper updatedTrooper)
-
Constructor Details
-
StormtrooperResource
-
-
Method Details
-
listTroopers
Returns a Collection of all Stormtroopers.- Returns:
- Returns a Collection of all Stormtroopers.
-
listTroopersView
-
getTrooper
-
getTrooperView
@GET @Path("/{id}") @Produces("text/html") public StormtrooperView getTrooperView(@PathParam("id") String id) -
createTrooper
-
updateTrooper
@Path("/{id}") @POST public Stormtrooper updateTrooper(@PathParam("id") String id, Stormtrooper updatedTrooper) -
deleteTrooper
-