【发布时间】:2019-10-18 05:34:13
【问题描述】:
我尝试使用 silverstripe 4 的 Restfulapi 插件,我的配置是:
integre\About:
api_access: true
integre\Home:
api_access: true
Image:
api_access: true
File:
api_access: true
integre\Theatre:
api_access: true
# RestfulAPI config
Colymba\RESTfulAPI\RESTfulAPI:
authentication_policy: false
access_control_policy: 'ACL_CHECK_CONFIG_AND_MODEL'
cors:
Enabled: true
Allow-Origin: '*'
Allow-Headers: '*'
Allow-Methods: 'OPTIONS, POST, GET, PUT, DELETE'
Max-Age: 86400
但是当我尝试http://localhost/integre/api/Theatre/1 时,我收到了 { “代码”:400, “消息”:“模型不存在。收到‘剧院’。” }
如何解决这个问题?
【问题讨论】:
标签: silverstripe silverstripe-4