How do I Fix A 404 Error Messsage When I try to Execute My REST API?

0
Hello everyone, I've built a REST API in Mendix to retrieve all users from my app. I've deployed the app and am trying to test the API, but I'm running into a 404 "Resource Not Found" error. Here's what I've done: I created a Published REST Service named "collections." I deployed the app and then, while in my local Mendix interface, I navigated to the "Published REST Service" page. I clicked the link next to the "Location" field. This opened a new browser tab with my API documentation page, which seemed correct. However, when I clicked "Execute" on that page, I received a 404 error. I also tried to manually construct the full URL by combining the "Location" URL with the Resource Name, but this didn't work either. Could someone please advise on what I might be missing or doing wrong? Any help would be appreciated. Thank you!
asked
1 answers
0

Hi Iman,

It looks like your published REST Service is shown on the rest-doc page, correct?

Did you restart your app after you published the service? Did you setup authentication for the service? If you put a breakpoint in the microflow, do you see it breaking there?

Kind regards,

Johan

answered