-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrest.xsp
24 lines (21 loc) · 899 Bytes
/
rest.xsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex">
<xe:restService pathInfo="backlog">
<xe:this.service>
<xe:viewJsonService viewName="all" defaultColumns="true"
count="100">
<xe:this.databaseName><![CDATA[#{javascript:database.getServer() + "!!" + database.getFilePath()}]]></xe:this.databaseName>
</xe:viewJsonService>
</xe:this.service>
</xe:restService>
<xe:restService id="restService1" pathInfo="updateStatus">
<xe:this.service>
<xe:customRestService>
<xe:this.doPost><![CDATA[#{javascript:var doc:NotesDocument = database.getDocumentByUNID(context.getUrlParameter("docid"));
doc.replaceItemValue("status",context.getUrlParameter("status"));
doc.save(true, false);
return "success"}]]></xe:this.doPost>
</xe:customRestService>
</xe:this.service>
</xe:restService></xp:view>