Wouter Spies
08/28/2023, 7:28 PMOrders.cfc - restpath: /{lookupKey}/{key}
ClassAddresses.cfc - restpath: /{class}/{lookupKey}/{classId}/addresses
When I call the endpoint in Orders.cfc like this: GET <basepath>/orders/id/35, it works fine. However, when I call GET <basepath>/orders/id/35/addresses, which is located in ClassAddresses.cfc, I encounter an error: "no rest service for [/orders/id/35/addresses] found." I'm sure that the restpath in ClassAddresses.cfc is correct because when I rename the CFCs to, for example, 1_Orders.cfc and 2_ClassAddresses.cfc, I get results for both endpoints. It seems that the alphabetical order of the files matters.
Is this the expected behavior when specifying similar/overlapping restpaths in different files?gavinbaumanis
08/28/2023, 11:33 PMWouter Spies
08/30/2023, 6:30 PMWouter Spies
08/30/2023, 6:47 PMzackster
08/31/2023, 12:00 PM