use of io.apiman.manager.api.beans.apis.KeyValueTag in project apiman by apiman.
the class ApiService method addTag.
/**
* Tag an API
*/
public void addTag(@NotNull String orgId, @NotNull String apiId, @NotNull KeyValueTagDto tagDto) {
var kvTag = new KeyValueTag().setKey(tagDto.getKey()).setValue(tagDto.getValue());
ApiBean api = tryAction(() -> storage.getApi(orgId, apiId));
api.addTag(kvTag);
tryAction(() -> storage.updateApi(api));
}
Aggregations