@Consumes(value="application/json")
@Path(value="/features")
public interface FeatureService
| Modifier and Type | Method and Description |
|---|---|
List<FeatureState> |
all_features() |
List<FeatureState> |
applyAll(List<FeatureState> entries)
Apply enabled state from all the supplied entries and then
return all current entries.
|
int |
count()
total number of features
|
String |
disable(String name)
Disable the feature.
|
String |
enable(String name)
Enable the feature.
|
List<String> |
enableAll(LocalDateTime when)
Enable all the unlocked features.
|
List<String> |
enabled()
Return the count of entries.
|
FeatureState |
getFeature(String feature_name) |
String |
lock(String name)
Lock the feature.
|
void |
refresh()
reload state from db and republish to all clients
|
String |
unlock(String name)
Unlock the feature.
|
@GET
@Path(value="/{name}")
@Produces(value="application/json")
FeatureState getFeature(@PathParam(value="name")
String feature_name)
@GET @Produces(value="application/json") List<FeatureState> all_features()
@PUT @Produces(value="application/json") List<FeatureState> applyAll(List<FeatureState> entries)
@PUT @Path(value="refresh") @Produces(value="application/json") void refresh()
@GET @Path(value="count") int count()
@GET @Path(value="enabled-count") @Produces(value="application/json") List<String> enabled()
@PUT @Path(value="enable-all") @Produces(value="application/json") List<String> enableAll(LocalDateTime when)
@PUT
@Path(value="enable/{name}")
String enable(@PathParam(value="name")
String name)
@PUT
@Path(value="disable/{name}")
String disable(@PathParam(value="name")
String name)
@PUT
@Path(value="lock/{name}")
String lock(@PathParam(value="name")
String name)
Copyright © 2018. All rights reserved.