[nim] Improved web api design ideas