fix api.json.example urls, and optimize gulp