Class SubpropertyController

java.lang.Object
gov.niem.tools.api.db.subproperty.SubpropertyController

@RestController @RequestMapping("stewards/{stewardKey}/models/{modelKey}/versions/{versionNumber}") public class SubpropertyController extends Object
REST controller for subproperties.
  • Constructor Details

    • SubpropertyController

      public SubpropertyController()
  • Method Details

    • getSubproperty

      @GetMapping("/types/{typeQname}/subproperties/{propertyQname}") public Subproperty getSubproperty(@PathVariable String stewardKey, @PathVariable String modelKey, @PathVariable String versionNumber, @PathVariable String typeQname, @PathVariable String propertyQname) throws Exception
      Gets a subproperty from the database with the type with the given type fields and the property with the given qualified name.
      Throws:
      Exception
    • getSubpropertyCmf

      @GetMapping("/types.cmf/{typeQname}/subproperties/{propertyQname}") public Object getSubpropertyCmf(@PathVariable String stewardKey, @PathVariable String modelKey, @PathVariable String versionNumber, @PathVariable String typeQname, @PathVariable String propertyQname, @RequestParam(required=false,defaultValue="json") Config.AppMediaType mediaType) throws Exception
      Gets a subproperty from the database with the type with the given type fields and the property with the given qualified name, converted to CMF.
      Throws:
      Exception
    • getAllSubproperties

      @GetMapping("/subproperties") public Set<Subproperty> getAllSubproperties(@PathVariable String stewardKey, @PathVariable String modelKey, @PathVariable String versionNumber) throws Exception
      Gets all subproperties from the database in the version with the given fields.
      Throws:
      Exception
    • getTypeSubproperties

      @GetMapping("/types/{typeQname}/subproperties") public Set<Subproperty> getTypeSubproperties(@PathVariable String stewardKey, @PathVariable String modelKey, @PathVariable String versionNumber, @PathVariable String typeQname) throws Exception
      Gets all subproperties from the database in the type with the give fields.
      Throws:
      Exception
    • getTypeSubpropertiesCmf

      @GetMapping("/types.cmf/{typeQname}/subproperties") public Object getTypeSubpropertiesCmf(@PathVariable String stewardKey, @PathVariable String modelKey, @PathVariable String versionNumber, @PathVariable String typeQname, @RequestParam(required=false,defaultValue="json") Config.AppMediaType mediaType) throws Exception
      Gets all subproperties from the database in the type with the given fields, in CMF.
      Throws:
      Exception
    • getPropertySubproperties

      @GetMapping("/properties/{propertyQname}/subproperties") public Set<Subproperty> getPropertySubproperties(@PathVariable String stewardKey, @PathVariable String modelKey, @PathVariable String versionNumber, @PathVariable String propertyQname) throws Exception
      Gets all subproperties from the database with the property with the given fields.
      Throws:
      Exception
    • getNamespaceSubproperties

      @GetMapping("/namespaces/{prefix}/subproperties") public Set<Subproperty> getNamespaceSubproperties(@PathVariable String stewardKey, @PathVariable String modelKey, @PathVariable String versionNumber, @PathVariable String prefix) throws Exception
      Gets all subproperties from the database in the given namespace fields.
      Throws:
      Exception