Package gov.niem.tools.api.db.model
Class ModelController
java.lang.Object
gov.niem.tools.api.db.model.ModelController
REST controller for models.
-
Constructor Summary
Constructors -
Method Summary
-
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
-