I know this question already posted many times in the forum. I need some clarification from the experts. I have setup a project to read data from external API. Few methods in the API are
Return list of clients - URL https://www.payrollapi.dev/api/v1/clients.
Return list of employees - URL https://www.payrollapi.dev/api/v1/clients/1/employees
Here is the route setup
I was able to read the data from first URL. I am having problem reading data from second URL, I see this “www.payrollapi.dev//api/v1//clients/1” URL in the developer console, with 404 not found error. I know the URL is wrong, it is missing /employees at the end.
Is my route definition is correct, if not, please tell me what is the right route definition. Also the folder structure within the route folder and template folder.