@ResponseBody
@RequestMapping(value={"/uui-lcm/customers/{customerId}/service-subscriptions/{serviceType}"},method = RequestMethod.PUT,produces="application/json")
- public JSONObject createOrUpdateServiceType(HttpServletRequest request,@PathVariable String serviceType){
- return customerService.createOrUpdateServiceType(request, serviceType);
+ public JSONObject createOrUpdateServiceType(HttpServletRequest request,@PathVariable String serviceType,@PathVariable String customerId){
+ return customerService.createOrUpdateServiceType(request, serviceType,customerId);
}
@ResponseBody
List<AAIServiceSubscription> listServiceSubscriptions(String customerId);
- JSONObject createOrUpdateServiceType(HttpServletRequest request,String serviceType);
+ JSONObject createOrUpdateServiceType(HttpServletRequest request,String serviceType,String customerId);
JSONObject deleteServiceType(String customerId,String serviceType,String resourceVersion);
})
//@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}")
- Call<ResponseBody> createOrUpdateServiceType(@Path("global-customer-id") String customerId,@Path("service-type") String serviceType);
+ Call<ResponseBody> createOrUpdateServiceType(@Path("global-customer-id") String customerId,@Path("service-type") String serviceType,@Body RequestBody body);
@Headers({
"X-TransactionId: 7777",
}
@Override
- public JSONObject createOrUpdateServiceType(HttpServletRequest request,String serviceType){
+ public JSONObject createOrUpdateServiceType(HttpServletRequest request,String serviceType,String customerId){
JSONObject result = new JSONObject();
try {
logger.info("aai createOrUpdateServiceType is starting!");
RequestBody requestBody = extractBody(request);
- Response<ResponseBody> response = this.aaiService.createOrUpdateCustomer(serviceType,requestBody).execute();
+ Response<ResponseBody> response = this.aaiService.createOrUpdateServiceType(customerId,serviceType,requestBody).execute();
logger.info("aai createOrUpdateServiceType is finished!");
if(response.isSuccessful()){
result.put("status", "SUCCESS");