Hey Akshitha!
The error 404 occurs when the resource is not found, but usually it gets fixed by checking the syntax of the request you are sending
Here are the possible reasons listed.
https://docs.mendix.com/refguide/published-rest-routing/
However to test, you can set the log level from the console tab of the REST consume to trace.
What this will do is give you a list of all requests and responses that were made for this call.
That will in turn help you debug your issue.
You can use the console request information and test the same in postman.
Hope this helps!
Regards