如何使用速度模板语言调用外部API
我正在使用速度模板语言。 我想调用REST API以使用VTL获取响应。 如何使用速度模板语言调用外部REST API以获取数据?
I am working with Velocity Template Language.
I want to invoke a rest api to get the response using VTL.
How can I call an external rest api to get the data using Velocity Template Language?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的上下文中有速度工具,则可以使用
jsontool
或xmltool
(取决于API返回格式)。If you have the Velocity Tools in your context, you can use the
JsonTool
or theXmlTool
(depending on the API return format).