Format Option


The format option allows you to specify what response you will receive with the API request. Currently the two options are XML and JSON.

API URL Structure

http://www.reefware.com/api/request/v1/tank/format/json

http://www.reefware.com/api/requestBase Urlv1VersiontankMethodformatOptionjsonFormat Type

JSON Format

  1. [
  2. [
  3. {
  4. "id": 7,
  5. "name": "Basement Aquarium",
  6. "size": 150,
  7. "sizeUnits": "gallons",
  8. "start": 2009-05-01 12:00:00,
  9. "length": 72,
  10. "lengthUnits": "in",
  11. "width": 18,
  12. "widthUnits": "in",
  13. "height": 24,
  14. "heightUnits": "in",
  15. "type": "salt",
  16. "material": "glass",
  17. "updated": 2013-09-20 19:01:42,
  18. "public": "jf890dDfsd",
  19. "token": "11297ba7838875",
  20. "priority": 1
  21. }
  22. ]
  23. ]

XML Format

  1. <item>
  2. <id>7</id>
  3. <name>Basement Aquarium</name>
  4. <size>150</size>
  5. <sizeunits>gallons</sizeunits>
  6. <start>2009-05-01 12:00:00</start>
  7. <length>72</length>
  8. <lengthunits>in</lengthunits>
  9. <width>18</width>
  10. <widthunits>in</widthunits>
  11. <height>24</height>
  12. <heightunits>in</heightunits>
  13. <type>salt</type>
  14. <material>glass</material>
  15. <updated>2013-09-20 19:01:42</updated>
  16. <public>jf890dDfsd</public>
  17. <token>11297ba7838875</token>
  18. <priority>1</priority>
  19. </item>