Hi,
I am building a custom module and I’d like to add the “Define API Schema” button just like Wappler has for API Actions.
Do we have any library to include it in custom modules?
Hi,
I am building a custom module and I’d like to add the “Define API Schema” button just like Wappler has for API Actions.
Do we have any library to include it in custom modules?
Alternatively, it would be nice to have an export button for schemas.
That way I can just put my file url, export the schema, and add it to the module hjson file.
The problem with dataScheme in hjson is it’s not dynamic, so if I’m pulling different kinds of files with different schemas it wouldn’t work.
Someone correct me if I’m missing something or if you have any ideas.
Good idea about the schema export.
It is always best to have predefined schema for your custom modules.
Having the users go through define schema each time while you already know the schema, is bad user experience.
You could btw generate a dummy action file, add an API action in it, generate the schema, save the action, open in in the editor and copy the generated schema. Then paste it in your hjson file under the dataSchema key
Thank you @George nice tip to quickly get my hjson set up!
Let’s say I have a Read JSON File module, and those JSON files each have their own different schemas.
I’m looking for a way for the module to be flexible.
Having an option to have schemas generated dynamically would be very usefull when working with MongoDB as we can’t create a new module for every schema.