-
- All Implemented Interfaces:
@RestController()@RequestMapping(value = {"${ff4j.api.context-path:/api/ff4j}/store"}) public final class FeatureStoreResourceCreated by Paul
-
-
Field Summary
Fields Modifier and Type Field Description private final FeatureStoreServicesfeatureStoreService
-
Constructor Summary
Constructors Constructor Description FeatureStoreResource(FeatureStoreServices featureStoreService)
-
Method Summary
Modifier and Type Method Description final FeatureStoreServicesgetFeatureStoreService()final FeatureStoreApiBeangetFeatureStore()final Collection<FeatureApiBean>getAllFeatures()final Collection<GroupDescApiBean>getAllGroups()final CacheApiBeangetFeaturesFromCache()final ResponseEntity<Void>deleteAllFeatures()final ResponseEntity<Void>clearCachedFeatureStore()-
-
Method Detail
-
getFeatureStoreService
final FeatureStoreServices getFeatureStoreService()
-
getFeatureStore
@GetMapping(produces = {"application/json"}) final FeatureStoreApiBean getFeatureStore()
-
getAllFeatures
@GetMapping(value = {"/features"}, produces = {"application/json"}) final Collection<FeatureApiBean> getAllFeatures()
-
getAllGroups
@GetMapping(value = {"/groups"}, produces = {"application/json"}) final Collection<GroupDescApiBean> getAllGroups()
-
getFeaturesFromCache
@GetMapping(value = {"/cache"}, produces = {"application/json"}) final CacheApiBean getFeaturesFromCache()
-
deleteAllFeatures
@DeleteMapping(value = {"/clear"}) final ResponseEntity<Void> deleteAllFeatures()
-
clearCachedFeatureStore
@DeleteMapping(value = {"/clearCache"}) final ResponseEntity<Void> clearCachedFeatureStore()
-
-
-
-