简体   繁体   English

在Domino Data Service(REST API)中创建文档

[英]Creating a document in Domino Data Service(REST api)

I am trying to create a document in Reservation form using Domino Data Service(REST api), response is showing document is created but when i am trying to access that reservation(xyz's) using Notes client it is not showing up. 我正在尝试使用Domino数据服务(REST api)在“保留”表单中创建文档,响应显示文档已创建,但是当我尝试使用Notes客户端访问该保留(xyz)时,它没有显示。

URL : http://server/Conf.nsf/api/data/documents?form=Reservation Payload: { "@authors": ["server","" ], "@form":"Reservation", "From":"xyz", "AltFrom":"xyz", "Chair":"xyz", "AltChair":"xyz", "Principal":"xyz", "SequenceNum":1, "ORGState":"5", "ResourceType":"1", "ResourceName":"BELLA VISTA/Building15", "Room":"BELLA VISTA/Building15", "Capacity":2, "_ViewIcon":133, "AppointmentType":"3", "StartTimeZone":"Z=-3005$DO=0$ZN=India", "EndTimeZone":"Z=-3005$DO=0$ZN=India", "Topic":"Test Meeting", "SendTo":"CN=BELLA VISTA/O=Building15", "Encrypt":"0", "Categories":"", "RouteServers":"server", "StartDate":"2015-03-28T06:30:00Z", "StartTime":"2015-03-28T07:30:00Z", "StartDateTime":"2015-03-28T06:30:00Z", "EndDate":"2015-03-28T07:30:00Z", "EndTime":"2015-03-28T07:30:00Z", "EndDateTime":"2015-03-28T07:30:00Z", "UpdateSeq":1, "Author":"xyz", "ResourceOwner":"", "ReservedFor":"xyz", "ReservedBy":"xyz", "RQStatus":"A", "Purpose":"Test from REST", "NoticeType":"A", "Step":3, "Site":"Building15", "Rese URL: http://server/Conf.nsf/api/data/documents?form =预定有效载荷:{“ @authors”:[“服务器”,“”],“ @form”:“预定”,“发件人” :“ xyz”,“ AltFrom”:“ xyz”,“ Chair”:“ xyz”,“ AltChair”:“ xyz”,“ Principal”:“ xyz”,“ SequenceNum”:1,“ ORGState”:“ 5” ,“ ResourceType”:“ 1”,“ ResourceName”:“ BELLA VISTA / Building15”,“房间”:“ BELLA VISTA / Building15”,“容量”:2,“ _ ViewIcon”:133,“ AppointmentType”:“ 3” ,“ StartTimeZone”:“ Z = -3005 $ DO = 0 $ ZN = India”,“ EndTimeZone”:“ Z = -3005 $ DO = 0 $ ZN = India”,“主题”:“测试会议”,“ SendTo “:” CN = BELLA VISTA / O = Building15“,”加密“:” 0“,”类别“:”“,” RouteServers“:”服务器“,” StartDate“:” 2015-03-28T06:30:00Z “,” StartTime“:” 2015-03-28T07:30:00Z“,” StartDateTime“:” 2015-03-28T06:30:00Z“,” EndDate“:” 2015-03-28T07:30:00Z“, “ EndTime”:“ 2015-03-28T07:30:00Z”,“ EndDateTime”:“ 2015-03-28T07:30:00Z”,“ UpdateSeq”:1,“ Author”:“ xyz”,“ ResourceOwner”: “”,“ ReservedFor”:“ xyz”,“ ReservedBy”:“ xyz”,“ RQStatus”:“ A”,“ Purpose”:“从REST测试”,“ NoticeType”:“ A”,“ Step”:3 ,“网站”:“ Building15”,“ Rese rveDate":"2015-03-28T06:30:00Z" } rveDate“:”“ 2015-03-28T06:30:00Z”}

If you're successfully creating the document but unable to see it, that suggests that you have a problem with a Reader Names or Author Names field that is denying you access to the document. 如果您成功创建了文档但看不到它,则表明您的“读者姓名”或“作者姓名”字段存在问题,导致您无法访问该文档。

Do you have Manager access to the conf.nsf database, and Full Access Administrator rights on the server? 您是否拥有对conf.nsf数据库的管理员访问权限以及服务器上的“完全访问管理员”权限? If so, activate your full access rights via Domino Administrator, before opening conf.nsf and see if you can find your document, then check the document properties and examine all fields with SUMMARY READ-ACCESS NAMES or SUMMARY READ/WRITE-ACCESS NAMES types to determine what you've put there. 如果是这样,请在打开conf.nsf之前,通过Domino Administrator激活您的完全访问权限,然后查看是否可以找到您的文档,然后检查文档属性并检查具有摘要读取权限名或摘要读取/写入权限名类型的所有字段。确定您放置在这里的东西。 Compare to manually created documents to see what should be there. 与手动创建的文档进行比较,看那里应该有什么。

(If you lack the necessary permissions for this, either work with an administrator who has the rights, or set up a test server as AFAIK, there's no way to test the Domino Data Service with a local replica.) (如果您对此没有必要的权限,或者与有权的管理员一起工作,或者将测试服务器设置为AFAIK,则无法使用本地副本来测试Domino数据服务。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM