我将Sitecore Item Web API用于Sitecore 7.5和Sitecore 8。在这两个版本中,我在返回的JSON中得到了一个空的字段列表。
请求示例:
GET http://sitecore8/-/item/v1/?sc_database=web&sc_itemversion=1&language=default&payload=Content&scope=s&sc_itemid=%7b11111111-1111-1111-1111-111111111111%7d HTTP/1.1
X-Scitemwebapi-Username: sitecore\admin
X-Scitemwebapi-Password: b
Host: sitecore8
Connection: Close响应:
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET
Date: Mon, 18 May 2015 17:54:53 GMT
Connection: close
Content-Length: 597
{"statusCode":200,"result":{"totalCount":1,"resultCount":1,"items":[{"Database":"web","DisplayName":"sitecore","HasChildren":true,"Icon":"/temp/IconCache/Applications/32x32/Document.png","ID":"{11111111-1111-1111-1111-111111111111}","Language":"en","LongID":"/{11111111-1111-1111-1111-111111111111}","MediaUrl":"/temp/IconCache/Applications/48x48/Document.png","Name":"sitecore","Path":"/sitecore","Template":"System/Root","TemplateId":"{C6576836-910C-4A3D-BA03-C277DBD3B827}","TemplateName":"Root","Url":"~/link.aspx?_id=11111111111111111111111111111111\u0026amp;_z=z","Version":1,"Fields":{}}]}}有人知道我错过了什么吗?
Tks很多..
发布于 2015-05-19 20:04:41
该死..。获取字段的处理器在我的配置文件中被注释掉了。
<itemWebApiGetFields>
<!--<processor type="Sitecore.ItemWebApi.Pipelines.GetFields.GetFields, Sitecore.ItemWebApi" />-->
</itemWebApiGetFields>https://stackoverflow.com/questions/30309999
复制相似问题