Use new filter to add content-type header 80/114780/1
authorDan Timoney <dtimoney@att.com>
Tue, 10 Nov 2020 21:52:46 +0000 (16:52 -0500)
committerDan Timoney <dtimoney@att.com>
Tue, 10 Nov 2020 21:52:46 +0000 (16:52 -0500)
Updated to include filters from ccsdk/apps, including new
filter to insert content type header if none provided

Change-Id: I20b1f99410d9c1133bafdf9b8292a84824eeadb5
Issue-ID: CCSDK-2977
Signed-off-by: Dan Timoney <dtimoney@att.com>
ms/generic-resource-api/pom.xml
ms/generic-resource-api/src/main/java/org/onap/sdnc/apps/ms/gra/GenericResourceMsApp.java

index e71c350..88a6305 100644 (file)
                 <version>2.3.1</version>
                 <executions>
                     <execution>
+                        <phase>generate-sources</phase>
                         <goals>
                             <goal>generate</goal>
                         </goals>
index 9501f99..a0e9595 100644 (file)
@@ -25,6 +25,7 @@ import org.apache.shiro.realm.text.PropertiesRealm;
 import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
 import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
 import org.onap.aaf.cadi.shiro.AAFRealm;
+import org.onap.ccsdk.apps.ms.sliboot.controllers.RestconfApiController;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.boot.SpringApplication;
@@ -34,13 +35,12 @@ import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Import;
 import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
 import org.springframework.transaction.annotation.EnableTransactionManagement;
-import org.onap.ccsdk.apps.ms.sliboot.controllers.RestconfApiController;
 
 import springfox.documentation.swagger2.annotations.EnableSwagger2;
 
-@SpringBootApplication(scanBasePackages={ "org.onap.sdnc.apps.ms.gra", "org.onap.ccsdk.apps.services"})
-@EnableJpaRepositories(basePackages={"org.onap.sdnc.apps.ms.gra", "org.onap.ccsdk.apps.ms.sliboot"})
-@EntityScan(basePackages={"org.onap.sdnc.apps.ms.gra", "org.onap.ccsdk.apps.ms.sliboot"})
+@SpringBootApplication(scanBasePackages = { "org.onap.sdnc.apps.ms.gra", "org.onap.ccsdk.apps.services", "org.onap.ccsdk.apps.filters" })
+@EnableJpaRepositories(basePackages = { "org.onap.sdnc.apps.ms.gra", "org.onap.ccsdk.apps.ms.sliboot" })
+@EntityScan(basePackages = { "org.onap.sdnc.apps.ms.gra", "org.onap.ccsdk.apps.ms.sliboot" })
 @EnableTransactionManagement
 @Import(RestconfApiController.class)
 @EnableSwagger2