Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


JSONXML
Format{
"model": "<model name>",
"id": <id value>,
"uri":
http://<ip>/<plural-model
-name>/<id>,
"<model name>": { … }
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<model>model name</model>
<id>id value</id>
<uri>
http://<ip>/<plural-model-name>/<id>.xm
l
</uri>
<model name> … </model name>
</response>
Example{
"model": "script",
"id": 45,
"uri":
"http://10.1.1.1/scripts/
45"
"script": { "id":45, … }
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<model>script</model>
<id>45</id>
<uri>
http://10.1.1.1/scripts/45.xml
</uri>
<script>
<id type="int">45</id>
...
</script>
</response>

...