Services/Parameters as Keys/Values

3 views
Skip to first unread message

Nick Vidal

unread,
Dec 2, 2009, 5:43:26 AM12/2/09
to JSON Schema
Hi Kris,

What are the dis/advantages of having services/parameters as keys/
values?

I ask you this because a discussion came up on Drupal:

http://drupal.org/node/388236

This is the situation:

services/parameters:
Drupal Services Currently: value/value
Drupal Services Proposed: key/key
Your Proposal: key/value

"services": {
"foo": {
"transport": "GET",
"target": "executeFoo.php",
"parameters": [
{"name":"paramOne", "type": "string"},
{"name":"paramTwo", "type": "integer", "default": 5},
{"name":"paramThree", "type": "integer", "optional":
true}
]
},

Thanks,
Nick
Reply all
Reply to author
Forward
0 new messages