Dear Community,
Please help me out - I am trying to call the WIX API using GET and I keep having 404.
I am trying to follow this tutorial on HTTP functions: https://www.wix.com/code/reference/wix-http-functions.html ; I have created http-functions.js file in the backend section of the website and added the code that you have in the example, I also adjusted the Dataset information to match the one I have; You can see the Collection name, fields and content in the screenshot. Now the problem I have is that if I try to call this URL: https://www.clever-license.eu/_functions/myFunction with GET - I receive 404.
The database fields are these:
The database name is TestData.
What am I missing in that call? Is it an authorization problem?
Hi,
It appears that you haven’t synced your items to the live collection yet.
To test the http function while in the testing environment use:
https://www.clever-license.eu/_functions -dev /myFunction/john/doe
@Indo Inbar - thanks for the suggestion. And how do I output the values of the sandbox Collection in this example? What does john/doe represent - values in db?
Hi,
In this example the collection is being searched for ‘john’ in the ‘firstName’ column and ‘doe’ in the ‘lastName’ column and returns OK if found.
Did you ever solve this issue? I am having the same problem and would love to see the code, thanks!
I have the same problem too.
I have the same proble, have you managed to resolve it?
This post is old and is being closed. If you have further questions please open up a new thread instead of bumping up old threads.
Bumping up old threads is against the Community Guidelines .