diff options
author | 2019-09-16 22:20:34 -0400 | |
---|---|---|
committer | 2019-09-16 22:26:07 -0400 | |
commit | 20390c6ed94e2082cb688d76aacabe5366d908fe (patch) | |
tree | b5904fc70141b2ce05c24a6fadb959f282c27c0a /main/src/main | |
parent | eeb2aa12f0445829d0aedb91d729f61102c070d8 (diff) |
Add changes to support application/yaml in api
Issue-ID: POLICY-2101
Change-Id: I0860ff11231b6a649f52355d8d9333eec7d78826
Signed-off-by: Chenfei Gao <cgao@research.att.com>
Diffstat (limited to 'main/src/main')
-rw-r--r-- | main/src/main/java/org/onap/policy/api/main/rest/LegacyApiRestController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/main/java/org/onap/policy/api/main/rest/LegacyApiRestController.java b/main/src/main/java/org/onap/policy/api/main/rest/LegacyApiRestController.java index 89ca042b..6a4e39d3 100644 --- a/main/src/main/java/org/onap/policy/api/main/rest/LegacyApiRestController.java +++ b/main/src/main/java/org/onap/policy/api/main/rest/LegacyApiRestController.java @@ -64,8 +64,8 @@ import org.slf4j.LoggerFactory; */ @Path("/policy/api/v1") @Api(value = "Legacy Policy Design API") -@Produces("application/json") -@Consumes("application/json") +@Produces({"application/json", "application/yaml"}) +@Consumes({"application/json", "application/yaml"}) public class LegacyApiRestController extends CommonRestController { private static final Logger LOGGER = LoggerFactory.getLogger(LegacyApiRestController.class); |