tarekmed / gbif-ecat

Automatically exported from code.google.com/p/gbif-ecat
0 stars 0 forks source link

Add standard json wrapper to all webservices #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Adding a single object wrapper allows to transport paging information, 
success/error messages, 
execution time and more to come.

Suggested envelope object:

{
  "success": true,
  "error": {
      "message": "in case success=false some error message text"
  },
  "executionTime": 1.22,
  "nextPage": 2,
  "total": 87,
  "data": [] or {}
}

Original issue reported on code.google.com by wixner@gmail.com on 18 Feb 2010 at 2:06

GoogleCodeExporter commented 8 years ago
done and deployed on ecat-dev. See API docs on dev site for details:
http://ecat-dev.gbif.org/api/clb.php#global

Original comment by wixner@gmail.com on 26 Feb 2010 at 12:29