aboutsummaryrefslogtreecommitdiffstats
path: root/cps-tbdmt-rest/src/main
diff options
context:
space:
mode:
authorNiranjana <niranjana.y60@wipro.com>2021-07-23 05:27:44 +0000
committerNiranjana Y <niranjana.y60@wipro.com>2021-07-30 11:33:18 +0000
commit3e5957464b6b4fa18bcae18bcfdce5fc9bace787 (patch)
tree398c1115de5f66b60d12d98f4106245ab7f64c9b /cps-tbdmt-rest/src/main
parente1216505db39f033c8460ca835eb352e27737b9f (diff)
Support for Multiple xpath queries in single api query
Issue-ID: CPS-510 Signed-off-by: Niranjana <niranjana.y60@wipro.com> Change-Id: I79c41d8028355a205d6d1e7808f64447dd94a28b
Diffstat (limited to 'cps-tbdmt-rest/src/main')
-rw-r--r--cps-tbdmt-rest/src/main/java/org/onap/cps/tbdmt/rest/TemplateController.java19
1 files changed, 8 insertions, 11 deletions
diff --git a/cps-tbdmt-rest/src/main/java/org/onap/cps/tbdmt/rest/TemplateController.java b/cps-tbdmt-rest/src/main/java/org/onap/cps/tbdmt/rest/TemplateController.java
index 15efdc5..a17130f 100644
--- a/cps-tbdmt-rest/src/main/java/org/onap/cps/tbdmt/rest/TemplateController.java
+++ b/cps-tbdmt-rest/src/main/java/org/onap/cps/tbdmt/rest/TemplateController.java
@@ -64,29 +64,26 @@ public class TemplateController {
}
/**
- * Get Template by model and templateId.
+ * Get Template by templateId.
*
* @param templateId Id to find the template
- * @param model schema set to find the template
* @return template
*/
- @GetMapping(path = "/templates/{model}/{templateId}")
- public ResponseEntity<Template> getTemplate(@PathVariable final String templateId,
- @PathVariable final String model) {
+ @GetMapping(path = "/templates/{templateId}")
+ public ResponseEntity<Template> getTemplate(@PathVariable final String templateId) {
return new ResponseEntity<>(
- templateBusinessLogic.getTemplate(new TemplateKey(templateId, model)),
+ templateBusinessLogic.getTemplate(new TemplateKey(templateId)),
HttpStatus.OK);
}
/**
- * Delete Template by model and templateId.
+ * Delete Template by templateId.
*
* @param templateId Id to find the template
- * @param model schema set to find the template
*/
- @DeleteMapping(path = "/templates/{model}/{templateId}")
- public void deleteTemplate(@PathVariable final String templateId, @PathVariable final String model) {
- templateBusinessLogic.deleteTemplate(new TemplateKey(templateId, model));
+ @DeleteMapping(path = "/templates/{templateId}")
+ public void deleteTemplate(@PathVariable final String templateId) {
+ templateBusinessLogic.deleteTemplate(new TemplateKey(templateId));
}
}