Update bulkadd to return 201 05/1605/1
authorVenkata Harish K Kajur <vk250x@att.com>
Thu, 2 Mar 2017 20:51:55 +0000 (20:51 +0000)
committerVenkata Harish K Kajur <vk250x@att.com>
Thu, 2 Mar 2017 20:54:08 +0000 (20:54 +0000)
Change-Id: I8ed5077fea87a100e0f7cd3a198d28c954ed5148
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
ajsc-aai/src/main/java/org/openecomp/aai/rest/BulkAddConsumer.java

index 3d19f87..2ba69cf 100644 (file)
@@ -188,7 +188,7 @@ public class BulkAddConsumer extends RESTAPI {
                        
                        //unless a top level error gets thrown, we want to 201 bc the client wanted a "fire and forget" kind of setup
                        response = Response
-                                       .status(Status.OK)
+                                       .status(Status.CREATED)
                                        .entity(returnPayload)
                                        .build();
                } catch (AAIException e) { //these catches needed for handling top level errors in payload parsing where the whole request must fail out