-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
(Auto)generate documentation #71
Comments
This commit introduces an automatically generated Swagger-based REST client on /plugins/restapi/docs/index.html Note that this can't be used 'offline'. We still need to replace the static documentation (in readme.html) with something that's generated during compilation/packaging (issue igniterealtime#71)
This commit introduces an automatically generated Swagger-based REST client on /plugins/restapi/docs/index.html Note that this can't be used 'offline'. We still need to replace the static documentation (in readme.html) with something that's generated during compilation/packaging (issue igniterealtime#71)
This commit introduces an automatically generated Swagger-based REST client on /plugins/restapi/docs/index.html Note that this can't be used 'offline'. We still need to replace the static documentation (in readme.html) with something that's generated during compilation/packaging (issue igniterealtime#71)
* fixes #67: Migrate to Jersey 2 This updates the Jersey dependency from 1.x to 2.x. This commit requires OF-2352 / igniterealtime/Openfire#1945 which means that this PR will _not_ work with 4.7.0 beta (but hopefully will with 4.7.0 non-beta). * fixes #1: Migrate to Swagger This commit introduces an automatically generated Swagger-based REST client on /plugins/restapi/docs/index.html Note that this can't be used 'offline'. We still need to replace the static documentation (in readme.html) with something that's generated during compilation/packaging (issue #71) * Add Swagger annotations to document endpoints By adding certain annotations, the documentation as generated by Swagger becomes enriched. * Add JsonProperty matching XmlElementWrapper name * Add JsonProperty annotation for a user's groupnames Co-authored-by: Dan Caseley <[email protected]>
Hi what's the URL to get the Swagger Documentation? |
Based on the AuthFilter, looks to be at /plugins/restapi/v1/openapi.yaml |
Im missing something.. PS -It does work if I open the |
Thanks @Fishbowler . The only thing that could be improved is that the swagger URL by default is `http://localhost:9090/plugins/restapi/v1/openapi.yaml' It should have gotten the current location and port, in Javascript |
FWIW, a relative URL may well work, e.g. |
Thanks @GregDThomas but it does not work, it suggests downloading the file |
The location linked to from the settings page? If so, I'll raise an issue. (btw, you blanked your domain from the address bar, but not from your image, but these posts are editable if you care about keeping it unknown) |
Solution: Edit the index file and change to:
Originaly it was:
|
Ah yep. Got it.
|
Thanks... it's fixed then :) |
Hi PS -Sorry but I don't know how the GitHub works. |
Hi @guusdk. what I mean is if the
To: |
The documentation that's provided with this plugin seems to be generated from the code. We should document how this is done. Ideally, it's automatically re-generated when the plugin is build (
mvn clean package
).The text was updated successfully, but these errors were encountered: