Passing Primitive Parameters

Subsequent levels of the path are converted into parameters that are validated, converted to the correct type, and then passed to the method.

Primitive parameters for the called method must be in the URL path in the order that they appear in the method signature. For example, if the signature of the method was getCustomer(pId: Integer; pTime: Time), a GET request for the resource /customer/123/12:45 would result in a call to getCustomer(123, "12:45".Time).

JADE accepts dates in both of the following formats.

Format Example

/Date(value[+time-zone-offset])

/Date(148824000000+1200)

yyyy-mm-dd

2017-03-25

A date of 0001/1/1 is treated as null values.

A ParamListType parameter can be used in the method signature to receive multiple path parameters from the URL, but it must be the last parameter of the JADE method. All parameters passed for a ParamListType parameter are assumed to be strings.