Class ModelController

java.lang.Object
gov.niem.tools.api.db.model.ModelController

@Validated @RestController public class ModelController extends Object
REST controller for models.
  • Constructor Details

    • ModelController

      public ModelController()
  • Method Details

    • getModel

      @GetMapping("/stewards/{stewardKey}/models/{modelKey}") @ResponseStatus(code=OK) public Model getModel(@PathVariable String stewardKey, @PathVariable String modelKey) throws Exception
      Gets a model with the given criteria.
      Throws:
      Exception
    • getStewardModels

      @GetMapping("/stewards/{stewardKey}/models") @ResponseStatus(code=OK) public List<Model> getStewardModels(@PathVariable String stewardKey) throws Exception
      Gets all models from the steward with the given key.
      Throws:
      Exception