sitemule / ILEastic

Embedded application server for ILE on IBM i
Apache License 2.0
58 stars 29 forks source link

added getting path segment to il_getPathParameter by index #100

Closed m1h43l closed 3 years ago

m1h43l commented 3 years ago

The function il_getRequestSegmentByIndex is now obsolete. Path segments can now be retrieve by name and by index with the function il_getPathParameter.

The target release parameter has been added to the creation of the jwt and cors plugin.

NielsLiisberg commented 3 years ago

Super work M!!

m1h43l commented 3 years ago

Perfect - Are you sure about the change from NOPASS to OMIT will not conflict with previous *NOPASS where the parameter is left out?

Do you mean the default parameter for il_getPathParameter? Now it has omit and nopass. So that should work fine.

But il_getRequestSegmentByIndex didn't support a default value. The following call ignores the default value:

il_getPathParameter(request : *null : 'value' : 2);

I think that should be fixed.