summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2022-02-14 16:43:49 +0000
committerGerrit Code Review <gerrit@onap.org>2022-02-14 16:43:49 +0000
commit61dd78b3d3ecae1797ffccf0644c5b62469a4e1d (patch)
tree0f54f9d1bb69dc696e00669c34d99322ababc153
parentb40cc09d5184b83da124b82e761edbfa9c44baeb (diff)
parent46b907c37466c5a016743a30e9c41ce04b08cf52 (diff)
Merge "Fix content-type for model download in Apex Editor"
-rw-r--r--gui-editors/gui-editor-apex/src/main/java/org/onap/policy/gui/editors/apex/rest/handling/ApexEditorRestResource.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/java/org/onap/policy/gui/editors/apex/rest/handling/ApexEditorRestResource.java b/gui-editors/gui-editor-apex/src/main/java/org/onap/policy/gui/editors/apex/rest/handling/ApexEditorRestResource.java
index b86df28..009a570 100644
--- a/gui-editors/gui-editor-apex/src/main/java/org/onap/policy/gui/editors/apex/rest/handling/ApexEditorRestResource.java
+++ b/gui-editors/gui-editor-apex/src/main/java/org/onap/policy/gui/editors/apex/rest/handling/ApexEditorRestResource.java
@@ -215,9 +215,10 @@ public class ApexEditorRestResource implements RestCommandHandler {
/**
* Download the model for this session as a String.
*
- * @return the model represented as a JSON string. See {@code AxPolicyModel}
+ * @return the model represented as a YAML string. See {@code AxPolicyModel}
*/
@GET
+ @Produces(MediaType.TEXT_PLAIN)
@Path("Model/Download")
public String downloadModel() {
ApexApiResult result = processRestCommand(RestCommandType.MODEL, RestCommand.DOWNLOAD);