Account REST API: Add a new endpoint to delete external IDs

The REST endpoint is added as:
'POST /accounts/{account-id}/external.ids:delete'
The target external ids must be provided in the request body.

Change-Id: Ieef322d6bddc1f3659536081b3f3514474b7162a
This commit is contained in:
Changcheng Xiao
2017-01-16 11:38:03 +01:00
parent de5dd7a2ef
commit 402c249b4a
6 changed files with 211 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ public interface AccountApi {
void index() throws RestApiException;
List<AccountExternalIdInfo> getExternalIds() throws RestApiException;
void deleteExternalIds(List<String> externalIds) throws RestApiException;
/**
* A default implementation which allows source compatibility
@@ -233,5 +234,10 @@ public interface AccountApi {
public List<AccountExternalIdInfo> getExternalIds() {
throw new NotImplementedException();
}
@Override
public void deleteExternalIds(List<String> externalIds) {
throw new NotImplementedException();
}
}
}