agussuroyo
Forum Replies Created
-
Forum: Plugins
In reply to: [WP API SwaggerUI] Properties of objects are not shownHello @waqashassan98
Thanks for contacting me, and sorry I think I don’t get it
could you please give me detailed information about
doesn’t show the parameters of objects
Thanks
Forum: Plugins
In reply to: [WP API SwaggerUI] Complete example for register_rest_routeHi @gerital
Thanks for the info about this, could you please update the plugin to the latest version, it should be can put your
summary
,description
, andproduces
parameters into Swagger UI display (produces
parameter should be in Array format)those custom parameter is not mandatory, since it’s not correct format for parameter that supported by WordPress API, it’s for Swagger UI display only
Sorry I can’t give you full example since it’s not correct format to build rest api in WordPress and just for Swagger UI display purpose only,
but this is few line sample about how to use
summary
,description
andproduces
parameter in Array:'summary' => 'Summary of current endpoint', 'description' => 'Description of current endpoint', 'produces' => ['application/vnd.geo+json']
basically your code is almost correct, just change
produces
parameter into Array formatThanks
Forum: Plugins
In reply to: [WP API SwaggerUI] Schema validation error when installing in subdirectoryHi @gerital
Thanks for updating me about this, you can update your plugin to the latest version to fix this issue
Thanks
Forum: Plugins
In reply to: [WP API SwaggerUI] General Direction on Getting StartedHi @calcazar and @historicalwork
thanks for discussing about this,
and for you information, this plugin purpose is used to display WordPress REST API into Swagger UI interface, so API that created internally for WordPress can be seen easilySorry, this plugin is not used to display API docs outside of WordPress installation, currently this plugin is not supported and basically it’s not used for it
Thanks
Forum: Plugins
In reply to: [WP API SwaggerUI] How to disable Swagger?Hi @sinocgtchen
By default WordPress core doesn’t have Swagger UI on it, so you don’t need to worry how to disable/remove it, just don’t use this plugin if you don’t want to use it
or I missing something here?
Thanks
Forum: Plugins
In reply to: [WP API SwaggerUI] How do you change the default API URL it displays?Hi @ckingsbu
Sorry, I think I missed something here, I thought you want to change the base url, but now I notice you want to add more than 1 schema right?
and once again sorry, this plugin is not in that purpose, it’s only display Swagger API Docs for WordPress itself only, and not support for schema come from outside of WordPress installation it self
I know as long as it’s has swagger ui 2.0 schema it should be work, but I’m not covered something like that, the only way to use it is just put schema url on the top bar of Swagger UI
Thanks
Forum: Plugins
In reply to: [WP API SwaggerUI] How do you change the default API URL it displays?Hi @ckingsbu
Thanks for your feedback, and I’m sorry if I didn’t understand with your queries ??
did you want to change the /rest-api/schema to /something-else/schema ?
you can use this filter
add_filter('swagger_api_rewrite_api_base', function($uri){ // change to other URI here // $uri = 'something-else'; return $uri; });
Thanks
- This reply was modified 5 years, 1 month ago by agussuroyo.
Forum: Plugins
In reply to: [WP API SwaggerUI] Changing default ‘rest_url_prefix’ breaks pluginAlright @ouija
Thanks
Forum: Plugins
In reply to: [WP API SwaggerUI] Support for Bearer / JWT AuthenticationHi @ouija
Thanks for your feedback, actually you can use this filter to add more “Available authorizations” fields without edit the plugin directly:
swagger_api_security_definitions
it’s accept 1 parameter which is the list of authorizations method in Array format
Thanks
Forum: Plugins
In reply to: [WP API SwaggerUI] Basic Auth enforced for allHi @ouija
I’m really appreciate for your help, I’ve made some changes but little bit different with yours, but it should be ok.
Please let me know if you found something weird or anything else
Thanks
Forum: Plugins
In reply to: [WP API SwaggerUI] Auth Bug in PHP 7.3Hi @wprudi
Thanks for you feedback, I’ve change the priority as per your note, I hope it working well ??
anyway, I change it to 14
Thanks
Forum: Plugins
In reply to: [WP API SwaggerUI] Swagger docs break on some themesHi @nmagathan
Thanks for the feedback, I’ve change the priority as per your note, I hope it will works
Thanks
Forum: Reviews
In reply to: [WP API SwaggerUI] Very Good!Your welcome @clh21126com, I’m glad hear about that ??
Forum: Reviews
In reply to: [WP API SwaggerUI] Great ideaYour welcome @averta ??
Forum: Plugins
In reply to: [WP API SwaggerUI] Basic Auth enforced for allHi Brian
The SwaggerUI (https://swagger.io/tools/swagger-ui/) is visualize OpenAPI 3.0.
Actually my plugin is just doing one process, that’s generate json schema for SwaggerUI, so SwaggerUI can render itThanks