agussuroyo / wp-api-swaggerui Goto Github PK
View Code? Open in Web Editor NEWSwaggerUI for WordPress REST API v2
SwaggerUI for WordPress REST API v2
As soon as the plugin gets activated it breaks editing within Elementor and access to the Rest API
Might be related to colliding Basic Auth, as the website is secured that way.
We are using Bedrock as boilerplates of WordPress sites. This plugin is very useful but unfortunately it does not work correctly because API endpoints become wrong.
When using bedrock, the WordPress address and the site address are not the same. For example, on typical Bedrock site the WordPress address is http://example.com/wp
and the site address is http://example.com
, then the API endpoints are kind of http://example.com/wp-json/<namespace>/...
. Since wp-api-swaggerui tries to find endpoint using WordPress address via site_url
API, it fails to get correct endpoints.
Although I know that using Bedrock is not general WordPress installation, for your information, I had to replace all usage of site_url
with home_url
to get it work with Bedrock.
Hi, whenever I request an endpoint that takes longer to load the data, it crashes the browser.
Any ideas about what may be causing this? It seems like after 3 seconds the loading animation freezes and then the browser crashes. I have tried in various browsers and all have the same issue. This occurs when I'm on the API docs page and I do a simple GET request Authorized.
Is it possible to change authorizations option to use Bearer token via Authorization header?
If not, I would love to see this option added.
Thanks!
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?
PHP Notice: Undefined index: type in /usr/local/wordpress/wp-content/plugins/wp-api-swaggerui/wp-api-swaggerui.php on line 327
if (isset($detail['items'])) {
$params['items'] = array(
'type' => $detail['items']['type']
);
}
Hi,
The SwaggerTemplate::removeQueuedScritps()
method removes all scripts and styles, except admin-bar
and dashicons
.
As a result, the output of the QueryMonitor plugin is broken. I guess it might also break every plugin that needs to hook into the admin bar and load custom scripts/styles.
wp-api-swaggerui/wp-api-swaggerui.php
Line 237 in 9339576
need 'tags' => isset($arg['tags']) ? $arg['tags'] : $tags,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.