Skip to content

Commit b901bab

Browse files
committed
update Example1Local for rest endpoint style approach
1 parent a93f1ba commit b901bab

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

data/ExampleZzzDemoData.xml

+5-3
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ along with this software (see the LICENSE.md file). If not, see
5858
<moqui.service.message.SystemMessageType systemMessageTypeId="ExampleMessage" description="Example Message"
5959
produceServiceName="moqui.example.ExampleServices.produce#ExampleMessage"
6060
consumeServiceName="moqui.example.ExampleServices.consume#ExampleMessage"
61-
sendServiceName="org.moqui.impl.SystemMessageServices.send#SystemMessageJsonRpc"
61+
sendServiceName="org.moqui.impl.SystemMessageServices.send#SystemMessageRest"
6262
receiveServiceName=""/>
6363
<moqui.service.message.SystemMessageRemote systemMessageRemoteId="Example1Local" description="Example Local"
64-
sendUrl="http://localhost:8080/rpc/json"
65-
username="john.doe" password="moqui"/>
64+
sendUrl="http://localhost:8080/rest/sm/${systemMessageTypeId}/Example1Local/${remoteMessageId}"
65+
messageAuthEnumId="SmatLogin" username="john.doe" password="moqui"/>
66+
<!-- old approach: <moqui.service.message.SystemMessageRemote systemMessageRemoteId="Example1Local" description="Example Local"
67+
sendUrl="http://localhost:8080/rpc/json" username="john.doe" password="moqui"/> -->
6668
<moqui.service.message.SystemMessageRemote systemMessageRemoteId="Example1Direct" description="Example Direct"
6769
sendServiceName="org.moqui.impl.SystemMessageServices.send#SystemMessageDirectLocal"/>
6870

src/test/groovy/SystemScreenRenderTests.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class SystemScreenRenderTests extends Specification {
9292
"Test Example Name" | "EXST_IN_DESIGN"
9393
"SystemMessage/Remote/MessageRemoteList" | "Example Local" | "john.doe"
9494
"SystemMessage/Remote/MessageRemoteDetail?systemMessageRemoteId=Example1Local" |
95-
"Example Local" | "http://localhost:8080/rpc/json"
95+
"Example Local" | "http://localhost:8080/rest/sm"
9696
"SystemMessage/Type/MessageTypeList" | "Example Message" |
9797
"moqui.example.ExampleServices.consume#ExampleMessage"
9898
"SystemMessage/Type/MessageTypeDetail?systemMessageTypeId=ExampleMessage" |

0 commit comments

Comments
 (0)