wp-api-swaggerui
wp-api-swaggerui copied to clipboard
Support for OpenAPI version 3.0
Hi, could you please develop a new version that is compatible with openapi version 3?
Or at least share how we could do it.
Also I can see some minified JS files, I suppose you're using a gulp or webpack to build the assets, can you commit these files so we might be able to fork the plugin and implement some changes please?
Hi @Mahjouba91
Thanks for making attention on this, I've made an update but not add the openapi v3, just change the js and structure to be more easy to edit
currently the process is look like this:
- php code generate the json response through this line
- and code that used to generate the url (using wp_localize_script) is on this line
- once all completed, finally it's called on the SwaggerUI script via this line
based on that process, the another way to generate openapi v3 json (in my mind) is create another php module/file, once the module created, we can pass the v3 url to js script, and we need setting to choose which openapi format that will be used
currently that's my idea, if you have another opinion, I'm very welcome to hear about that
Thanks