Change SO API to v3 11/88211/1
authorguochuyicmri <guochuyi@chinamobile.com>
Tue, 21 May 2019 10:26:51 +0000 (18:26 +0800)
committerguochuyicmri <guochuyi@chinamobile.com>
Wed, 22 May 2019 02:23:23 +0000 (10:23 +0800)
Change-Id: Id693ec88b064edd9c55ae4d357e7a5d22496be19
Issue-ID: USECASEUI-270
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
server/src/main/java/org/onap/usecaseui/server/controller/AlarmController.java
server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java
server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/so/SOService.java

index 63bce43..0897869 100755 (executable)
@@ -276,7 +276,7 @@ public class AlarmController
         return string;\r
     }\r
     \r
-    @RequestMapping(value="/listSortMasters",method=RequestMethod.GET,produces = "application/json")\r
+    @RequestMapping(value="/listSortMasters",method=RequestMethod.GET,produces = "application/json;charset=utf8")\r
     public String getSortMasterInfo() throws JsonProcessingException{\r
        Map<String,List<SortMaster>> map = new HashMap<>();\r
        List<SortMaster> operationTypes = alarmsHeaderService.listSortMasters("operationType");\r
index fce94ba..0164036 100644 (file)
@@ -141,7 +141,7 @@ public interface AAIService {
         "Accept: application/json"
        })
        //@GET("/api/aai-business/v11/customers/customer/{global-customer-id}/service-subscriptions")
-       @PUT("/api/aai-business/v11/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}")
+       @DELETE("/api/aai-business/v11/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}")
        Call<ResponseBody> deleteServiceType(@Path("global-customer-id") String customerId,@Path("service-type") String serviceType,@Query("resource-version") String resourceVersion);
     
     @Headers({
index 323329b..494647a 100644 (file)
@@ -29,14 +29,14 @@ public interface SOService {
             "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
             "Accept: application/json"
     })
-    @POST("/api/so-serviceInstances/v5")
+    @POST("/api/so-serviceInstances/v3")
     Call<ServiceOperation> instantiateService(@Body RequestBody body);
 
     @Headers({
             "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
             "Accept: application/json"
     })
-    @GET("/api/so-serviceInstances/v5/{serviceId}/operations/{operationId}")
+    @GET("/api/so-serviceInstances/v3/{serviceId}/operations/{operationId}")
     Call<OperationProgressInformation> queryOperationProgress(@Path("serviceId") String serviceId, @Path("operationId") String operationId);
 
     @Headers({
@@ -44,20 +44,20 @@ public interface SOService {
             "Accept: application/json"
     })
 //    @DELETE("/ecomp/mso/infra/e2eServiceInstances/v3/{serviceId}")
-    @HTTP(method="DELETE", path="/api/so-serviceInstances/v5/{serviceId}", hasBody = true)
+    @HTTP(method="DELETE", path="/api/so-serviceInstances/v3/{serviceId}", hasBody = true)
     Call<DeleteOperationRsp> terminateService(@Path("serviceId") String serviceId, @Body RequestBody body);
     
     @Headers({
         "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
         "Accept: application/json"
     })
-       @POST("/api/so-serviceInstances/v5/{serviceId}/scale")
+       @POST("/api/so-serviceInstances/v3/{serviceId}/scale")
        Call<SaveOrUpdateOperationRsp> scaleService(@Path("serviceId") String serviceId, @Body RequestBody body);
     
     @Headers({
         "Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
         "Accept: application/json"
     })
-       @PUT("/api/so-serviceInstances/v5/{serviceId}")
+       @PUT("/api/so-serviceInstances/v3/{serviceId}")
        Call<SaveOrUpdateOperationRsp> updateService(@Path("serviceId") String serviceId, @Body RequestBody body);
 }