Import data from JSON

Hello @sedatio
I am not sure if you are still looking for a solution, but I am posting it here for any other users who might be looking for a solution to a similar import issue.
In the project RC4Community, we are doing something similar, importing the JSON data from the cms/config/initialData and then writing it into the Strapi Collections.

The part of the code which creates the collections is here,

And the updated Stapiv4 Bootstrap link below, where the starting lines of code sets the Public Role for find, and findOne routes of API.

Please feel free to ask anything by tagging me @Dnouv
Thank you!

1 Like