Class KeyValNameSpaceController

java.lang.Object
com.tccc.kos.commons.core.service.keyval.KeyValNameSpaceController

@ApiController(base="/keyVal", title="Key / val storage service", desc="Key/value storage service.") public final class KeyValNameSpaceController extends Object
Controller that can wrap a KeyValNameSpace and make it accessible via endpoints. This is a convenience class for applications where an external system just needs key/val access to a custom name space. The standard key/val endpoints can also be used by specifying the name space in each request, but this allows a custom set of endpoints for a given name space.
Version:
2022-09-15
  • Constructor Details

    • KeyValNameSpaceController

      public KeyValNameSpaceController(KeyValNameSpace storageNameSpace)
      Create the controller with the specified name space.
      Parameters:
      storageNameSpace - the storage name space to use
  • Method Details