Uploaded image for project: 'Traffic Control'
  1. Traffic Control
  2. TC-102

API changes to reflect true datatypes

    XMLWordPrintableJSON

Details

    Description

      With the move from MySQL to Postgres, the API will reflect the true data types of each value as represented in the database. For example, the Postgres version of the TO database now has boolean columns (rather than using smallint). These values should be represented in the API as booleans (true|false) as opposed to "0"|"1" as before.

      Also, in the old MySQL TO, ints or numbers were represented as "age":"23" in the API. That should change to "age":23

      These are the datatypes available in json and they should be taken advantage of when possible:

      Boolean: true|false
      String: double-quoted Unicode with backslash escaping
      Number: double- precision floating-point format
      Array: an ordered sequence of values
      Object: an unordered collection of key:value pairs
      Null

      I'm creating this issue as a catch-all for any changes required to reflect the true data types in the api.

      Attachments

        Issue Links

          Activity

            People

              mitchell852@apache.org Jeremy Mitchell
              mitchell852@apache.org Jeremy Mitchell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: