Class DarkFeatureResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.darkfeature.DarkFeatureResource
@Path("darkFeatures")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class DarkFeatureResource
extends Object
Provides RESTful operations to manage dark features.
- Since:
- 5.8
-
Constructor Summary
ConstructorDescriptionDarkFeatureResource
(BambooUserManager bambooUserManager, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, DarkFeatureService darkFeatureService) -
Method Summary
Modifier and TypeMethodDescriptiongetAll()
getForUser
(String featureKey, String userName) put
(String featureKey, RestDarkFeature darkFeaturePropertyBean) put
(String featureKey, String userName, RestDarkFeature darkFeaturePropertyBean)
-
Constructor Details
-
DarkFeatureResource
@Inject public DarkFeatureResource(BambooUserManager bambooUserManager, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, DarkFeatureService darkFeatureService)
-
-
Method Details
-
get
-
getForUser
@GET @Path("/{key}/user/{userName}") public RestDarkFeature getForUser(@PathParam("key") String featureKey, @PathParam("userName") String userName) -
getAll
-
put
@PUT @Path("/{key}") public RestDarkFeature put(@PathParam("key") String featureKey, RestDarkFeature darkFeaturePropertyBean) -
put
@PUT @Path("/{key}/user/{userName}") public RestUserDarkFeature put(@PathParam("key") String featureKey, @PathParam("userName") String userName, RestDarkFeature darkFeaturePropertyBean)
-