Service Mapping Description
Le Service mapping description (SMD) est un schéma de description d'une structure d'un web service de type JSON.
Exemple
exemple de code
{
"transport": "POST",
"envelope": "URL",
"target": "/service/",
"additionalParameters": true,
"parameters": [
{
"name":"outputType",
"default": "json"
},
{
"name":"ignoreErrors",
"optional": true
}
],
"services": {
"foo": {
"transport": "GET",
"target": "executeFoo.php",
"parameters": [
{"name":"paramOne", "type": "string"},
{"name":"paramTwo", "type": "integer", "default": 5},
{"name":"paramThree", "type": "integer", "optional": true}
]
},
"add": {
"transport": "POST",
"envelope": "JSON-RPC-2.0",
"additionalParameters": {"type": "integer", "default": 0},
"parameters": [
{"type": "integer", "default": 0},
{"type": "integer", "default": 0}
]
}
}
}
Références
Cet article est issu de wikipedia. Text licence: CC BY-SA 4.0, Des conditions supplémentaires peuvent s’appliquer aux fichiers multimédias.