if (LOG.isDebugEnabled())
LOG.debug("Update API ID: {}", apiId);
// check API ID same in Pay-load/URL
if (api == null || api.getId() == null)
throw new WebApplicationException(new ProvisionException(ApplicationCodeConstants.API_ID_NOT_PROVIDED, "API ID missing in the body for Update operation"));
if (!api.getId().equals(apiId))
throw new WebApplicationException(new ProvisionException(ApplicationCodeConstants.API_ID_MISMATCH, "API ID not the same in URL vs Body for Update operation: +" + apiId + "/" + apiId));
Action action = new Action() {
protected Object doAction(Object... params) {
try {
apiService.update(api);