I am building a REST API using IBM i Integrated Web Services (IWS).
Currently, the API works correctly when I pass a single path parameter (customer number) and returns the expected record.
For example, the following URL returns a valid response when I pass customer number 01010:
Now I would like to pass multiple path parameters, such as customer number and area code, to retrieve a record using both values.
I tried calling the API with an additional path parameter (area code 02) as shown below, but this results in a 404 Not Found error:
The parameters in IWS are configured as path parameters.
My questions are:
-
Is it supported to specify multiple path parameters in an IWS REST service?
-
If so, what configuration is required on the IWS side to handle multiple path parameters?
-
Are there common causes of a 404 error in this scenario (IWS service definition, parameter mapping, ILE program interface, URL format, etc.)?
Any guidance or examples would be greatly appreciated...
Thank you
------------------------------
SAKURA KOGA
------------------------------