Auto Schema for datasets through API

If I for an example would post to my WIX through your new API from Zapier. It would be awesome of you could automap incoming JSON data to datasets without that much of coding.

I setup up an TOKEN KEY inside Backend/zapierone.js like this zapierZap1 = “mysecrettoken” and then in Zapier or other services I just add that token to the chunk of JSON sent to WIX. I also setup which dataset is to be used like dataSet = “newsItems”. Here I could also if the fieldnames don’t match map them manually like:

Title = headline;
Description = shortBrief;
DatePublished = pubDate;
Image = Enclosure[“0”];

The first ones is names inside my WIX dataset and the second one is the fieldname inside the JSON POST.

There should also be two more settings that can be done.

  1. Check for duplicates inside WIX Dataset automatically
    duplicateChecker = Title, DatePublished;

That row will check before insert so that there is not any more records with the same combination of title and datepublished.

  1. Download images to WIX Media Storage
    downloadImages = true or false;

That row will determine if images found in urls in JSON POST should be downloaded into the WIX Media Storage Servers or not. If they are to be downloaded they will be downloaded to your dataset and can be connected as true image source.

After this is done you can POST JSON to the url below:

https://mysite.com/api/zapierone/

That url is calling my sites public API and then zapierone is telling the system to search for settings inside backend/zapierone.js and setup things from there.

All this can of course be coded using javascript and the soon to be released API but I believe most of WIX users are not hard core coders so this function will benefit and open up a new world to non-coders so that designers can benefit from coding without it.

Thanks for a great roadmap! I never believed my wife would be right 4 years ago when she told me WIX is the future, I do now!

Your wife sounds like a very smart person :wink:

anyway, sometime down the line we will implement a plugin marketplace.
you could then create something like that and contribute to the community…

until then - keep on coding!

Ok, just make sure you have like Apple Appstore, very good quality control, otherwise you will be like WordPress Plugin Marketplace in the end and that will not benefit your business.