Debian Codegraph @

dojox/rpc/tests/resources/test.smd

raw
1 (window["http://localhost/dojox/rpc/tests/resources/test.smd"]||function(val){return val}) (
2 {
3 transport: "POST",
4 envelope: "URL",
5 strictParameters: false,
6 parameters: {
7 appId: {},
8 outputType: {
9 "default": "json"
10 },
11
12 ignoreErrors: {
13 optional: true
14 }
15 },
16
17 services: {
18 postEcho: {
19 target: "echo.php",
20 parameters: [
21 {name: "message", type: "string", optional: true}
22 ]
23 },
24
25 getEcho: {
26 transport: "GET",
27 target: "echo.php",
28
29 parameters: [
30 {name: "message", type: "string", optional: true}
31 ]
32 },
33 "namespace.getEcho": {
34 transport: "GET",
35 target: "echo.php",
36
37 parameters: [
38 {name: "message", type: "string", optional: true}
39 ]
40 },
41 getEchoJson: {
42 transport: "GET",
43 target: "echoJson.php",
44 contentType:"application/json",
45 parameters: [
46 {name: "message", type: "string", optional: true}
47 ]
48 },
49 getPathEcho: {
50 transport: "GET",
51 envelope: "PATH",
52 target: "echo.php?message=",
53
54 parameters: [
55 {name: "message", type: "string", optional: true}
56 ]
57 },
58 restStore: {
59 transport: "REST",
60 contentType:"text/plain",
61 preventCache: true,
62 target: "fakestore.php",
63 parameters: [
64 {name: "location", type: "string", optional: true}
65 ]
66 },
67 jsonRestStore: {
68 transport: "REST",
69 target: "fakestore.php",
70 contentType:"application/json",
71 parameters: [
72 {name: "location", type: "string", optional: true}
73 ],
74 returns: {
75 properties:{
76 name:{
77 type:"string",
78 minLength:3
79 }
80 }
81 }
82 },
83
84
85
86 postJsonEcho: {
87 transport: "POST",
88 envelope: "JSON",
89 target: "rawEcho.php",
90
91 parameters: [
92 {name: "message", type: "string", optional: true}
93 ]
94 },
95
96 jsonpEcho: {
97 transport: "JSONP",
98 target: "jsonpEcho.php",
99 callbackParamName: "testCallbackParam",
100
101 parameters: [
102 {name: "message", type: "string", optional: true}
103 ]
104 },
105
106 postJsonRpc10Echo: {
107 transport: "POST",
108 envelope: "JSON-RPC-1.0",
109 target: "jsonRpc10.php",
110
111 parameters: [
112 {type: "string", optional: true}
113 ]
114 },
115
116 postJsonRpc10EchoNamed: {
117 transport: "POST",
118 envelope: "JSON-RPC-1.0",
119 target: "jsonRpc10.php",
120
121 parameters: [
122 {type: "string", optional: true}
123 ]
124 },
125
126 jsonpJsonRpc12Echo: {
127 transport: "JSONP",
128 envelope: "JSON-RPC-2.0",
129 target: "jsonpJsonRpcEcho.php",
130
131 parameters: [
132 {type: "string", optional: true}
133 ]
134 },
135
136 jsonpJsonRpc12EchoNamed: {
137 transport: "JSONP",
138 envelope: "JSON-RPC-2.0",
139 target: "jsonpJsonRpcEcho.php",
140
141 parameters: [
142 {name: "message", type: "string", optional: true}
143 ]
144 },
145
146 postJsonRpc10ForcedError: {
147 envelope: "JSON-RPC-1.0",
148 transport: "POST",
149 target: "jsonRpc10.php",
150
151 parameters: [
152 {type: "string", optional: true}
153 ]
154 },
155
156 postJsonRpc12Echo: {
157 transport: "POST",
158 envelope: "JSON-RPC-2.0",
159 target: "jsonRpc12.php",
160
161 parameters: [
162 {name: "message", type: "string", optional: true}
163 ]
164 },
165
166 getJsonRpc12Echo: {
167 transport: "GET",
168 envelope: "JSON-RPC-2.0",
169 target: "jsonRpcPostGetEcho.php",
170
171 parameters: [
172 {type: "string", optional: true}
173 ]
174 },
175
176 postJsonRpc12EchoNamed: {
177 transport: "POST",
178 envelope: "JSON-RPC-2.0",
179 target: "jsonRpcPostGetEcho.php",
180
181 parameters: [
182 {type: "string", optional: true}
183 ]
184 },
185
186 getJsonRpc12EchoNamed: {
187 transport: "GET",
188 envelope: "JSON-RPC-2.0",
189 target: "jsonRpcPostGetEcho.php",
190
191 parameters: [
192 {type: "string", optional: true}
193 ]
194 },
195
196
197 postJsonRpc12ForcedError: {
198 envelope: "JSON-RPC-2.0",
199 transport: "POST",
200 target: "jsonRpc12.php",
201
202 parameters: [
203 {type: "string", optional: true}
204 ]
205 }
206 }
207 })