Package 

Class PropertyResource

  • All Implemented Interfaces:

    @RestController()@RequestMapping(value = {"${ff4j.api.context-path:/api/ff4j}/propertyStore/properties/{name}"}) 
    public final class PropertyResource
    
                        

    Created by Paul

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final PropertyServices propertyServices
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyResource(PropertyServices propertyServices)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final PropertyServices getPropertyServices()
      final PropertyApiBean getProperty(@PathVariable(value = "name") String propertyName)
      final ResponseEntity<?> createOrUpdateProperty(@PathVariable(value = "name") String propertyName, @RequestBody() PropertyApiBean propertyApiBean)
      final ResponseEntity<Void> deleteProperty(@PathVariable(value = "name") String propertyName)
      final ResponseEntity<Void> updatePropertyName(@PathVariable(value = "name") String propertyName, @PathVariable(value = "value") String newPropertyName)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertyResource

        PropertyResource(PropertyServices propertyServices)
    • Method Detail

      • getProperty

        @GetMapping(produces = {"application/json"}) final PropertyApiBean getProperty(@PathVariable(value = "name") String propertyName)
      • createOrUpdateProperty

        @PutMapping(produces = {"application/json"}) final ResponseEntity<?> createOrUpdateProperty(@PathVariable(value = "name") String propertyName, @RequestBody() PropertyApiBean propertyApiBean)
      • deleteProperty

        @DeleteMapping(produces = {"application/json"}) final ResponseEntity<Void> deleteProperty(@PathVariable(value = "name") String propertyName)
      • updatePropertyName

        @PostMapping(value = {"/update/{value}"}, produces = {"application/json"}) final ResponseEntity<Void> updatePropertyName(@PathVariable(value = "name") String propertyName, @PathVariable(value = "value") String newPropertyName)