我遇到了restler的问题,虽然我注册了以下格式:
$r->setSupportedFormats('JsonFormat','XmlFormat','YamlFormat','PlistFormat','AmfFormat');
除JSON或xml之外的格式不能使用后缀
进行路由 /path/call.{suffix}
除了.xml和.json以外什么都没有用?
使用Restler v3 RC3
答案 0 :(得分:0)
只有JsonFormat和XmlFormat可以开箱即用,其余格式具有外部依赖性,并且要求您按照安装中的http://restler3.luracast.com中的说明运行make composer-install