Convert yanglib to new web API