我正在尝试通过以下方式向我们的Sitecore9
实例发出请求Postman
:
方法:
POST
网址:
https://{{sitecorehost}}/sitecore/api/ssc/auth/login
标题:
Content-Type:application/json
身体:
{
"domain": "sitecore",
"username": "{{sitecoreusername}}",
"password": "{{sitecorepassword}}"
}
虽然我可以使用环境变量中提供的 URL轻松登录到实例,但在Postman
此返回一个。403
Sitecore
Postman
apikey
站点管理员已向我提供了一个,但身份验证文档似乎没有指定应该如何使用它,或者我是否需要将它与身份验证值一起传递。
确实描述了使用 apikey的文档还描述了使用它的 GUID 检索项目,但是当我这样请求时Postman
:
方法:
GET
网址:
https://{{sitecorehost}}/sitecore/api/ssc/aggregate/content/Items('{5AB4C9A0-5889-4F50-9D7F-D960A1015FA7}')?sc_apikey={{sitecoreapikey}}
标题:
Content-Type:application/json
我得到的只是响应500 Internal Server Error
中的一个:body
"message": "Object reference not set to an instance of an object.",