diff options
author | Jim Hahn <jrh3@att.com> | 2019-09-09 16:51:32 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-09-11 15:32:01 -0400 |
commit | 173c4dbea9a1175a6f18031a221bb701deeecaa7 (patch) | |
tree | cff8d6fc46b6096b551b075e489b406c50b61531 /policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestEchoService.java | |
parent | 216b2beaf25eba50e948374d07e92b6c0a02b7c9 (diff) |
Create StandardYamlCoder
Created StandardYamlCoder which is like a StandardCoder, except that
the original converts to/from JSON, while the new class converts to/from
YAML. Also added YamlMessageBodyHandler and incorporated it into the
http server so that it supports a media type of */yaml.
Change-Id: Ibd83a9f6d355a330f63e435f2bb41affcf1947c2
Issue-ID: POLICY-2065
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestEchoService.java')
-rw-r--r-- | policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestEchoService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestEchoService.java b/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestEchoService.java index 9db1053f..27ce300c 100644 --- a/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestEchoService.java +++ b/policy-endpoints/src/test/java/org/onap/policy/common/endpoints/http/server/test/RestEchoService.java @@ -56,7 +56,7 @@ public class RestEchoService { @POST @Path("/full/request") - @Produces(MediaType.APPLICATION_JSON) + @Produces({MediaType.APPLICATION_JSON, "application/yaml"}) @ApiOperation(value = "echoes back the request structure", response = RestEchoReqResp.class) public Response echoFullyPost(RestEchoReqResp reqResp) { return Response.status(Status.OK).entity(reqResp).build(); |