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