/** * Allows to retrieve feature by its id. * * @param featId * target feature identifier * @return feature is exist */ @GET @ApiOperation( value= "Display information regarding to <b>Features</b>", notes= "other sub resources to be displayed", response=FeatureStoreApiBean.class) @ApiResponses(@ApiResponse(code = 200, message= "status of current ff4j bean")) @Produces(MediaType.APPLICATION_JSON) public FeatureStoreApiBean get() { return new FeatureStoreApiBean(ff4j.getFeatureStore()); }
@POST @Path("/" + STORE_CREATESCHEMA) @ApiOperation(value= "Create underlying DB schema for store") @ApiResponses(@ApiResponse(code = 200, message= "status of current ff4j bean", response=PropertyStoreApiBean.class)) @Produces(MediaType.APPLICATION_JSON) public FeatureStoreApiBean createSchema() { getFeatureStore().createSchema(); return new FeatureStoreApiBean(ff4j.getFeatureStore()); }
@POST @Path("/" + STORE_CLEAR) @ApiOperation(value= "Delete all <b>Features</b> in store") @ApiResponses(@ApiResponse(code = 200, message= "status of current ff4j bean", response=FeatureStoreApiBean.class)) @Produces(MediaType.APPLICATION_JSON) public FeatureStoreApiBean clearFeatures() { getFeatureStore().clear(); return new FeatureStoreApiBean(ff4j.getFeatureStore()); }
version = ff4j.getVersion(); if (null != ff4j.getFeatureStore()) { featuresStore = new FeatureStoreApiBean(ff4j.getFeatureStore());