Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permalink leads to a 404 #3

Closed
lonkelle opened this issue May 13, 2016 · 3 comments
Closed

Permalink leads to a 404 #3

lonkelle opened this issue May 13, 2016 · 3 comments

Comments

@lonkelle
Copy link

example.com/index.php/apigenerate/swagger
translates to
example.com/apigenerate/swagger
and then 404s.

Attempted to generate the file on a single site install, and multisite. Same issue on both.

@starfishmod
Copy link
Owner

Yep sorry it should be /index.php/wp-json/apigenerate/swagger

@starfishmod
Copy link
Owner

@JoelStickney I haven't tested multisite - please let me know how that goes if you can?

@lonkelle
Copy link
Author

Perfect. :)

It also works (mostly) with multisite, unless it's a subdirectory install. Then the subdirectory of the sub-site should be placed in the 'basePath' rather than the 'host' section of the swagger file (like it is now). Adjusting that manually works perfectly - but it's something to consider for automating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants