Babel service is returning a text/plain content type header with a json response 10/137710/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 18 Apr 2024 12:43:07 +0000 (14:43 +0200)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 18 Apr 2024 12:46:43 +0000 (14:46 +0200)
- return a Content-Type: application/json header for the generate artifacts endpoint

Issue-ID: AAI-3828
Change-Id: Ic5ab0f40e23a5efedb71c4b3d98aff6e523329b8
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
pom.xml
src/main/java/org/onap/aai/babel/service/GenerateArtifactsServiceImpl.java

diff --git a/pom.xml b/pom.xml
index 01a0268..a390f8a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -33,7 +33,7 @@
 
        <groupId>org.onap.aai</groupId>
        <artifactId>babel</artifactId>
-       <version>1.12.3-SNAPSHOT</version>
+       <version>1.13.0-SNAPSHOT</version>
        <packaging>jar</packaging>
 
        <name>aai-babel</name>
index 4fac909..544d782 100644 (file)
@@ -207,6 +207,6 @@ public class GenerateArtifactsServiceImpl implements GenerateArtifactsService {
      * @return
      */
     private Response buildResponse(Status status, String entity) {
-        return Response.status(status).entity(entity).type(MediaType.TEXT_PLAIN).build();
+        return Response.status(status).entity(entity).type(MediaType.APPLICATION_JSON).build();
     }
 }