@Generated(value="cd.connect.openapi.Jersey2V3ApiGenerator", date="2019-05-10T22:38:37.127+12:00[Pacific/Auckland]") @Path(value="/features") public interface FeatureService
| Modifier and Type | Method and Description |
|---|---|
List<FeatureState> |
allFeatures()
Gets a list of features and their states
|
List<FeatureState> |
applyAll(List<FeatureState> body)
Sets a list of features and their states in a single request
|
Integer |
count()
count number of features.
|
List<String> |
disabledFeatures()
the features that are disabled.
|
FeatureState |
disableFeature(String name)
Disables feature
|
List<String> |
enabledFeatures()
the features that are enabled.
|
FeatureState |
enableFeature(String name)
Enables feature
|
List<FeatureState> |
ensureExists(List<String> body)
Ensures that this list of features exists in the feature service
|
FeatureState |
getFeature(String name)
Gets the details about the feature identified by the name
|
FeatureState |
lockFeature(String name)
Locks feature
|
String |
refresh()
refresh feature states
|
FeatureState |
unlockFeature(String name)
Unlocks feature
|
@GET @Produces(value="application/json") List<FeatureState> allFeatures()
@PUT @Consumes(value="application/json") @Produces(value="application/json") List<FeatureState> applyAll(List<FeatureState> body)
body - (required)@GET @Path(value="/count") @Produces(value="text/plain") Integer count()
@PUT
@Path(value="/disable/{name}")
@Produces(value="application/json")
FeatureState disableFeature(@PathParam(value="name")
String name)
name - the feature name (required)@GET @Path(value="/disabled") @Produces(value="application/json") List<String> disabledFeatures()
@PUT
@Path(value="/enable/{name}")
@Produces(value="application/json")
FeatureState enableFeature(@PathParam(value="name")
String name)
name - the feature name (required)@GET @Path(value="/enabled") @Produces(value="application/json") List<String> enabledFeatures()
@POST @Consumes(value="application/json") @Produces(value="application/json") List<FeatureState> ensureExists(List<String> body)
body - (required)@GET
@Path(value="/feature/{name}")
@Produces(value="application/json")
FeatureState getFeature(@PathParam(value="name")
String name)
name - the feature name (required)@PUT
@Path(value="/lock/{name}")
@Produces(value="application/json")
FeatureState lockFeature(@PathParam(value="name")
String name)
name - the feature name (required)@PUT @Path(value="/refresh") @Produces(value="application/json") String refresh()
@PUT
@Path(value="/unlock/{name}")
@Produces(value="application/json")
FeatureState unlockFeature(@PathParam(value="name")
String name)
name - the feature name (required)Copyright © 2019. All rights reserved.