Child pages
  • Components

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated some of the text

...

BigSense is a RESTful web service. To this end, the individual components that get called can often been seen in the URL itself. Take for example the following request:

http://example.org/bigsense/api/Aggregate/AvgTempSum/DateRange/20120501/20120502/60.txt?Timezone=America/New_York&Units=Standard

From this URL we can see the AggergateAction class is called. All the other path elements of the URL such as AvgTemp Sum, DateRange, 20120501, 20120502 and 60 are placed in an ActionRequest object and sent to that action. Everything after the first period indicates the FormateTrait to be used. In this case it's the tab delimited format (txt). Then, two additional ConverterTraits are applied: TimezoneConverter and UnitsConverter. There are other components that are used behind the scene such as ValidatorTraits and the DatabaseHandler.

...