Versions Compared

Key

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

...

The base url for the REST controller (on the test server) is [https://www.test.hawaii.edu/its/ws/holiday/rest]

...

The name of the method is followed by a '?' and then the parameters separated by '&'.

Ex. https://www.test.hawaii.edu/its/ws/holiday/rest/closest?date=2012-01-01&isObserved=true

...

exists(date, isObserved, type) - Returns whether the given date is a holiday or not.
Ex. https://www.test.hawaii.edu/its/ws/holiday/rest/exists?date=2012-01-02&isObserved=true&type=Federal

closest(date, searchForward, isObserved, type) - Returns the closest holiday to the given date.
Ex. https://www.test.hawaii.edu/its/ws/holiday/rest/closest?date=2012-01-10&searchForward=true

inMonth(month, year, isObserved, type) - Returns all holidays within the given month. The year parameter is optional and will default to the current year if not specified.
Ex. https://www.test.hawaii.edu/its/ws/holiday/rest/inMonth?month=03&type=state

inYear(year, isObserved, type) - Returns all holidays within the given year.
Ex. https://www.test.hawaii.edu/its/ws/holiday/rest/inYear?year=2012

inRange(beginDate, endDate, includeStartAndEnd, isObserved, type) - Returns all holidays within the range.
Ex. https://www.test.hawaii.edu/its/ws/holiday/rest/inRange?beginDate=2012-01-27&endDate=2012-06-29&includeStartAndEnd=true