9
我对这个网址上运行的服务:http://localhost:8888
如何消耗的API在Grails应用
我通过调用它像这样得到这种服务的结果:
http://localhost:8888/colors?colorname=red&shade=dark
,我得到的结果早在JSON是这样的:
{
"request#": 55,
"colorname": "red",
"shade": "dark",
"available": "No"
}
问题
我可以在我的grails应用程序中使用此服务的一些方法是什么?
[REST客户端生成器](HTTP: //grails.org/plugin/rest-client-builder)插件是圆滑的IMO。 – dmahapatro
更好的答案可以在http://stackoverflow.com/questions/25470866/grails-2-4-3-consume-a-rest-service找到。 –